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

Pradeep Ramachandran pradeep at multicorewareinc.com
Tue Jun 27 07:01:16 CEST 2017


On Mon, Jun 26, 2017 at 5:56 PM, <gopi.satykrishna at multicorewareinc.com>
wrote:

> # 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
>

Thanks. This enables our HDR streams to be compatible with the spec as SEI
messages show up for every keyint.
Pushed into default branch.


>
> 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;
>
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20170627/60156265/attachment.html>


More information about the x265-devel mailing list