[x265] [PATCH] Add param options to bitstream when info is enabled
Divya Manivannan
divya at multicorewareinc.com
Fri Nov 11 11:43:34 CET 2016
# HG changeset patch
# User Divya Manivannan <divya at multicorewareinc.com>
# Date 1478860402 -19800
# Fri Nov 11 16:03:22 2016 +0530
# Node ID ee0730643d795663682c24ea30ade5566ab3ab5b
# Parent a378efc939e37f13ec1673fda055b1c3d0632e68
Add param options to bitstream when info is enabled
diff -r a378efc939e3 -r ee0730643d79 source/common/param.cpp
--- a/source/common/param.cpp Sun Nov 06 23:24:16 2016 +0100
+++ b/source/common/param.cpp Fri Nov 11 16:03:22 2016 +0530
@@ -1442,6 +1442,9 @@
s += sprintf(s, "%dx%d", p->sourceWidth,p->sourceHeight);
s += sprintf(s, " fps=%u/%u", p->fpsNum, p->fpsDenom);
s += sprintf(s, " bitdepth=%d", p->internalBitDepth);
+ s += sprintf(s, " frame-threads=%d", p->frameNumThreads);
+ s += sprintf(s, " level-idc=%d", p->levelIdc);
+ s += sprintf(s, " numa-pools=%s", p->numaPools);
BOOL(p->bEnableWavefront, "wpp");
s += sprintf(s, " ctu=%d", p->maxCUSize);
s += sprintf(s, " min-cu-size=%d", p->minCUSize);
@@ -1519,10 +1522,10 @@
p->rc.complexityBlur, p->rc.qblur);
if (p->rc.vbvBufferSize)
{
- s += sprintf(s, " vbv-maxrate=%d vbv-bufsize=%d",
- p->rc.vbvMaxBitrate, p->rc.vbvBufferSize);
+ s += sprintf(s, " vbv-maxrate=%d vbv-bufsize=%d vbv-init=%.1f",
+ p->rc.vbvMaxBitrate, p->rc.vbvBufferSize, p->rc.vbvBufferInit);
if (p->rc.rateControlMode == X265_RC_CRF)
- s += sprintf(s, " crf-max=%.1f", p->rc.rfConstantMax);
+ s += sprintf(s, " crf-max=%.1f crf-min=%.1f", p->rc.rfConstantMax, p->rc.rfConstantMin);
}
}
else if (p->rc.rateControlMode == X265_RC_CQP)
@@ -1538,6 +1541,8 @@
BOOL(p->bMultiPassOptRPS, "multi-pass-opt-rps");
BOOL(p->bRepeatHeaders, "repeat-headers");
}
+ s += sprintf(s, " uhd-bd=%d", p->uhdBluray);
+ s += sprintf(s, " slices=%d", p->maxSlices);
#undef BOOL
return buf;
}
More information about the x265-devel
mailing list