<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 12, 2018 at 4:49 PM, Vittorio Giovara <span dir="ltr"><<a href="mailto:vittorio.giovara@gmail.com" target="_blank">vittorio.giovara@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><div dir="ltr"><div><div class="h5"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 12, 2018 at 1:44 PM, <span dir="ltr"><<a href="mailto:ashok@multicorewareinc.com" target="_blank">ashok@multicorewareinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Ashok Kumar Mishra <<a href="mailto:ashok@multicorewareinc.com" target="_blank">ashok@multicorewareinc.com</a>><br>
# Date 1523532439 -19800<br>
# Thu Apr 12 16:57:19 2018 +0530<br>
# Node ID ace55bce0e3c6e0beb52712fd71e01<wbr>025bd73a22<br>
# Parent 04a337abd70de269cef7d9655365f3<wbr>a3ebde02aa<br>
Support for HLG-graded content and pic_struct<br>
<br>
diff -r 04a337abd70d -r ace55bce0e3c source/common/param.cpp<br>
--- a/source/common/param.cpp Thu Apr 12 15:10:59 2018 +0530<br>
+++ b/source/common/param.cpp Thu Apr 12 16:57:19 2018 +0530<br>
@@ -134,7 +134,8 @@<br>
param->bEmitInfoSEI = 1;<br>
param->bEmitHDRSEI = 0;<br>
param->bEmitIDRRecoverySEI = 0;<br>
- /* CU definitions */<br>
+<br>
+ /* CU definitions */<br>
param->maxCUSize = 64;<br>
param->minCUSize = 8;<br>
param->tuQTMaxInterDepth = 1;<br>
@@ -192,7 +193,8 @@<br>
param->bEnableSAO = 1;<br>
param->bSaoNonDeblocked = 0;<br>
param->bLimitSAO = 0;<br>
- /* Coding Quality */<br>
+<br>
+ /* Coding Quality */<br>
param->cbQpOffset = 0;<br>
param->crQpOffset = 0;<br>
param->rdPenalty = 0;<br>
@@ -302,6 +304,10 @@<br>
param->bLowPassDct = 0;<br>
param->bMVType = 0;<br>
param->bSingleSeiNal = 0;<br>
+<br>
+ /* SEI messages */<br>
+ param->preferredTransferChara<wbr>cteristics = -1;<br>
+ param->pictureStructure = -1;<br>
}<br>
<br>
int x265_param_default_preset(x265<wbr>_param* param, const char* preset, const char* tune)<br>
@@ -1030,6 +1036,8 @@<br>
OPT("max-ausize-factor") p->maxAUSizeFactor = atof(value);<br>
OPT("dynamic-refine") p->bDynamicRefine = atobool(value);<br>
OPT("single-sei") p->bSingleSeiNal = atobool(value);<br>
+ OPT("atc-sei") p->preferredTransferCharacteri<wbr>stics = atoi(value);<br>
+ OPT("pic-struct") p->pictureStructure = atoi(value);<br>
else<br>
return X265_PARAM_BAD_NAME;<br>
}<br>
diff -r 04a337abd70d -r ace55bce0e3c source/encoder/encoder.cpp<br>
--- a/source/encoder/encoder.cpp Thu Apr 12 15:10:59 2018 +0530<br>
+++ b/source/encoder/encoder.cpp Thu Apr 12 16:57:19 2018 +0530<br>
@@ -338,10 +338,12 @@<br>
<br>
if (m_param->bEmitHRDSEI)<br>
m_rateControl->initHRD(m_sps)<wbr>;<br>
+<br>
if (!m_rateControl->init(m_sps))<br>
m_aborted = true;<br>
if (!m_lookahead->create())<br>
m_aborted = true;<br>
+<br>
initRefIdx();<br>
if (m_param->analysisSave && m_param->bUseAnalysisFile)<br>
{<br></blockquote></div><br clear="all"></div></div></div><div class="gmail_extra">For the future, could you please keep cosmetic changes (such as the ones above) in a separate patch?<br></div><div class="gmail_extra">It gets confusing really fast and makes reading history needlessly fast.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"></span><br></div></blockquote></div><br clear="all"></div><div class="gmail_extra">needlessy hard*<br></div><div class="gmail_extra">-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Vittorio</div>
</div></div>