<div dir="ltr"><div dir="ltr"><div># HG changeset patch</div><div># User kirithika <<a href="mailto:kirithika@multicorewareinc.com">kirithika@multicorewareinc.com</a>></div><div># Date 1545834797 -19800</div><div>#      Wed Dec 26 20:03:17 2018 +0530</div><div># Node ID 3d4bb3024608303d9dacd0ff177916dbfc5ddfc9</div><div># Parent  d757a721369b0fc576fa43adf166e7488c4046bf</div><div>Add support for Dolby Vision profile 8.2</div><div><br></div><div>diff -r d757a721369b -r 3d4bb3024608 doc/reST/cli.rst</div><div>--- a/doc/reST/cli.rst<span style="white-space:pre">   </span>Wed Dec 26 18:47:10 2018 +0530</div><div>+++ b/doc/reST/cli.rst<span style="white-space:pre">  </span>Wed Dec 26 20:03:17 2018 +0530</div><div>@@ -2236,7 +2236,7 @@</div><div>     The value is specified as a float or as an integer with the profile times 10,</div><div>     for example profile 5 is specified as "5" or "5.0" or "50".</div><div>     </div><div>-    Currently only profile 5 and profile 8.1 enabled, Default 0 (disabled)</div><div>+    Currently only profile 5, profile 8.1 and profile 8.2 enabled, Default 0 (disabled)</div><div> </div><div> .. option:: --dolby-vision-rpu <filename></div><div> </div><div>diff -r d757a721369b -r 3d4bb3024608 source/common/param.cpp</div><div>--- a/source/common/param.cpp<span style="white-space:pre">  </span>Wed Dec 26 18:47:10 2018 +0530</div><div>+++ b/source/common/param.cpp<span style="white-space:pre">   </span>Wed Dec 26 20:03:17 2018 +0530</div><div>@@ -1545,13 +1545,13 @@</div><div>         "Invalid refine-ctu-distortion value, must be either 0 or 1");</div><div>     CHECK(param->maxAUSizeFactor < 0.5 || param->maxAUSizeFactor > 1.0,</div><div>         "Supported factor for controlling max AU size is from 0.5 to 1");</div><div>-    CHECK((param->dolbyProfile != 0) && (param->dolbyProfile != 50) && (param->dolbyProfile != 81),</div><div>-        "Unsupported Dolby Vision profile, only profile 5 and profile 8.1 enabled");</div><div>+    CHECK((param->dolbyProfile != 0) && (param->dolbyProfile != 50) && (param->dolbyProfile != 81) && (param->dolbyProfile != 82),</div><div>+        "Unsupported Dolby Vision profile, only profile 5, profile 8.1 and profile 8.2 enabled");</div><div>     if (param->dolbyProfile)</div><div>     {</div><div>         CHECK((param->rc.vbvMaxBitrate <= 0 || param->rc.vbvBufferSize <= 0), "Dolby Vision requires VBV settings to enable HRD.\n");</div><div>-        CHECK((param->internalBitDepth != 10), "Dolby Vision profile - 5 and profile - 8.1 is Main10 only\n");</div><div>-        CHECK((param->internalCsp != X265_CSP_I420), "Dolby Vision profile - 5 and profile - 8.1 requires YCbCr 4:2:0 color space\n");</div><div>+        CHECK((param->internalBitDepth != 10), "Dolby Vision profile - 5, profile - 8.1 and profile - 8.2 is Main10 only\n");</div><div>+        CHECK((param->internalCsp != X265_CSP_I420), "Dolby Vision profile - 5, profile - 8.1 and profile - 8.2 requires YCbCr 4:2:0 color space\n");</div><div> </div><div>         if (param->dolbyProfile == 81)</div><div>             CHECK(!(param->masteringDisplayColorVolume), "Dolby Vision profile - 8.1 requires Mastering display color volume information\n");</div><div>diff -r d757a721369b -r 3d4bb3024608 source/encoder/encoder.cpp</div><div>--- a/source/encoder/encoder.cpp<span style="white-space:pre">      </span>Wed Dec 26 18:47:10 2018 +0530</div><div>+++ b/source/encoder/encoder.cpp<span style="white-space:pre">        </span>Wed Dec 26 20:03:17 2018 +0530</div><div>@@ -73,6 +73,7 @@</div><div> {</div><div>     { 1, 1, 1, 1, 1, 5, 1,  2, 2, 2, 50 },</div><div>     { 1, 1, 1, 1, 1, 5, 0, 16, 9, 9, 81 },</div><div>+    { 1, 1, 1, 1, 1, 5, 0,  1, 1, 1, 82 }</div><div> };</div><div> /* Threshold for motion vection, based on expermental result.</div><div>  * TODO: come up an algorithm for adoptive threshold */</div><div>diff -r d757a721369b -r 3d4bb3024608 source/x265cli.h</div><div>--- a/source/x265cli.h<span style="white-space:pre">    </span>Wed Dec 26 18:47:10 2018 +0530</div><div>+++ b/source/x265cli.h<span style="white-space:pre">  </span>Wed Dec 26 20:03:17 2018 +0530</div><div>@@ -361,7 +361,7 @@</div><div>     H0("   --dhdr10-info <filename>      JSON file containing the Creative Intent Metadata to be encoded as Dynamic Tone Mapping\n");</div><div>     H0("   --[no-]dhdr10-opt             Insert tone mapping SEI only for IDR frames and when the tone mapping information changes. Default disabled\n");</div><div> #endif</div><div>-    H0("   --dolby-vision-profile <float|integer> Specifies Dolby Vision profile ID. Currently only profile 5 and profile 8.1 enabled. Specified as '5' or '50'. Default 0 (disabled).\n");</div><div>+    H0("   --dolby-vision-profile <float|integer> Specifies Dolby Vision profile ID. Currently only profile 5, profile 8.1 and profile 8.2 enabled. Specified as '5' or '50'. Default 0 (disabled).\n");</div><div>     H0("   --dolby-vision-rpu <filename> File containing Dolby Vision RPU metadata.\n"</div><div>        "                                 If given, x265's Dolby Vision metadata parser will fill the RPU field of input pictures with the metadata read from the file. Default NULL(disabled).\n");</div><div>     H0("   --nalu-file <filename>        Text file containing SEI messages in the following format : <POC><space><PREFIX><space><NAL UNIT TYPE>/<SEI TYPE><space><SEI Payload>\n");</div><div><br></div></div></div>