[x265] [PATCH] Turn on repeat-headers whenever HDR related options are enabled

gopi.satykrishna at multicorewareinc.com gopi.satykrishna at multicorewareinc.com
Mon Jun 26 14:26:23 CEST 2017


# HG changeset patch
# User Gopi Satykrishna Akisetty <gopi.satykrishna at multicorewareinc.com>
# Date 1498468860 -19800
#      Mon Jun 26 14:51:00 2017 +0530
# Node ID 81037290f79061cadb55bf59708e83fbb6069193
# Parent  5f2330bdb8fac45017b9ee643caa2edb3f49e097
Turn on repeat-headers whenever HDR related options are enabled

THe HDR SEI should always be repeated for every GOP. When it is repeated for
every GOP, the decoder can find the information even if starts with random access

diff -r 5f2330bdb8fa -r 81037290f790 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Fri Jun 23 14:49:50 2017 +0530
+++ b/source/encoder/encoder.cpp	Mon Jun 26 14:51:00 2017 +0530
@@ -2650,6 +2650,16 @@
             p->bHDROpt = 0;
         }
     }
+
+    if (m_param->toneMapFile || p->bHDROpt || p->bEmitHDRSEI)
+    {
+        if (!p->bRepeatHeaders)
+        {
+            p->bRepeatHeaders = 1;
+            x265_log(p, X265_LOG_WARNING, "Turning on repeat-headers for HDR compatibility\n");
+        }
+    }
+
     p->maxLog2CUSize = g_log2Size[p->maxCUSize];
     p->maxCUDepth    = p->maxLog2CUSize - g_log2Size[p->minCUSize];
     p->unitSizeDepth = p->maxLog2CUSize - LOG2_UNIT_SIZE;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265.patch
Type: text/x-patch
Size: 1193 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20170626/10687379/attachment.bin>


More information about the x265-devel mailing list