Re: [x265] [PATCH 2 of 2] hdr: Replace --hdr with --hdr10
Pushed to default. On Tue, Jan 7, 2020 at 5:44 PM Aruna Matheswaran wrote: > # HG changeset patch > # User Aruna Matheswaran > # Date 1578389851 -19800 > # Tue Jan 07 15:07:31 2020 +0530 > # Node ID 2d8cff8781baa983a56aa5bc72219241122fffc7 > # Parent 542653f9c733c0b41d33e204497bed1126455d17 > hdr: Replace --hdr with --hdr10 > > This patch deprecates the existing option '--hdr' and replaces it with > '--hdr10' > as the feature signals SEI specific to HDR10. > > Note: '--hdr' will be removed in the upcoming major release of x265. > > diff -r 542653f9c733 -r 2d8cff8781ba doc/reST/cli.rst > --- a/doc/reST/cli.rst Mon Jan 06 10:44:13 2020 +0530 > +++ b/doc/reST/cli.rst Tue Jan 07 15:07:31 2020 +0530 > @@ -2252,9 +2252,9 @@ > is specified. When enabled, signals max-cll and max-fall as 0 if > :option:`max-cll` is unspecified. > Default enabled. > > -.. option:: --hdr, --no-hdr > - > - Force signalling of HDR parameters in SEI packets. Enabled > +.. option:: --hdr10, --no-hdr10 > + > + Force signaling of HDR10 parameters in SEI packets. Enabled > automatically when :option:`--master-display` or > :option:`--max-cll` is > specified. Useful when there is a desire to signal 0 values for > max-cll > and max-fall. Default disabled. > diff -r 542653f9c733 -r 2d8cff8781ba source/CMakeLists.txt > --- a/source/CMakeLists.txt Mon Jan 06 10:44:13 2020 +0530 > +++ b/source/CMakeLists.txt Tue Jan 07 15:07:31 2020 +0530 > @@ -29,7 +29,7 @@ > option(STATIC_LINK_CRT "Statically link C runtime for release builds" OFF) > mark_as_advanced(FPROFILE_USE FPROFILE_GENERATE NATIVE_BUILD) > # X265_BUILD must be incremented each time the public API is changed > -set(X265_BUILD 187) > +set(X265_BUILD 188) > configure_file("${PROJECT_SOURCE_DIR}/x265.def.in" > "${PROJECT_BINARY_DIR}/x265.def") > configure_file("${PROJECT_SOURCE_DIR}/x265_config.h.in" > diff -r 542653f9c733 -r 2d8cff8781ba source/common/param.cpp > --- a/source/common/param.cpp Mon Jan 06 10:44:13 2020 +0530 > +++ b/source/common/param.cpp Tue Jan 07 15:07:31 2020 +0530 > @@ -147,7 +147,8 @@ > param->bEnableAccessUnitDelimiters = 0; > param->bEmitHRDSEI = 0; > param->bEmitInfoSEI = 1; > -param->bEmitHDRSEI = 0; > +param->bEmitHDRSEI = 0; /*Deprecated*/ > +param->bEmitHDR10SEI = 0; > param->bEmitIDRRecoverySEI = 0; > > /* CU definitions */ > @@ -1244,7 +1245,8 @@ > p->bSsimRd = atobool(value); > } > } > -OPT("hdr") p->bEmitHDRSEI = atobool(value); > +OPT("hdr") p->bEmitHDR10SEI = atobool(value); /*DEPRECATED*/ > +OPT("hdr10") p->bEmitHDR10SEI = atobool(value); > OPT("hdr-opt") p->bHDR10Opt = atobool(value); /*DEPRECATED*/ > OPT("hdr10-opt") p->bHDR10Opt = atobool(value); > OPT("limit-sao") p->bLimitSAO = atobool(value); > @@ -1768,12 +1770,12 @@ > #endif > > if (param->masteringDisplayColorVolume || param->maxFALL || > param->maxCLL) > -param->bEmitHDRSEI = 1; > +param->bEmitHDR10SEI = 1; > > bool isSingleSEI = (param->bRepeatHeaders > || param->bEmitHRDSEI > || param->bEmitInfoSEI > - || param->bEmitHDRSEI > + || param->bEmitHDR10SEI > || param->bEmitIDRRecoverySEI > || !!param->interlaceMode > || param->preferredTransferCharacteristics > 1 > @@ -2170,7 +2172,7 @@ > s += sprintf(s, " hist-threshold=%.2f", p->edgeTransitionThreshold); > BOOL(p->bOptCUDeltaQP, "opt-cu-delta-qp"); > BOOL(p->bAQMotion, "aq-motion"); > -BOOL(p->bEmitHDRSEI, "hdr"); > +BOOL(p->bEmitHDR10SEI, "hdr10"); > BOOL(p->bHDR10Opt, "hdr10-opt"); > BOOL(p->bDhdr10opt, "dhdr10-opt"); > BOOL(p->bEmitIDRRecoverySEI, "idr-recovery-sei"); > @@ -2495,7 +2497,7 @@ > dst->bAQMotion = src->bAQMotion; > dst->bSsimRd = src->bSsimRd; > dst->dynamicRd = src->dynamicRd; > -dst->bEmitHDRSEI = src->bEmitHDRSEI; > +dst->bEmitHDR10SEI = src->bEmitHDR10SEI; > dst->bEmitHRDSEI = src->bEmitHRDSEI; > dst->bHDROpt = src->bHDROpt; /*DEPRECATED*/ > dst->bHDR10Opt = src->bHDR10Opt; > diff -r 542653f9c733 -r 2d8cff8781ba source/encoder/encoder.cpp > --- a/source/encoder/encoder.cppMon Jan 06 10:44:13 2020 +0530 > +++ b/source/encoder/encoder.cppTue Jan 07 15:07:31 2020 +0530 > @@ -3113,7 +3113,7 @@ > if (m_param->bSingleSeiNal) > bs.resetBits(); > > -if (m_param->bEmitHDRSEI) > +if (m_param->bEmitHDR10SEI) > { > if (m_param->bEmitCLL) > { > @@ -3370,7 +3370,7 @@ > p->vui.matrixCoeffs = dovi[doviProfile].matrixCoeffs; > > if (dovi[doviProfile].doviProfileId == 81) > -p->bEmitHDRSEI = p->bEmitCLL = 1; > +p->bEmitHDR10SEI = p->bEmitCLL = 1; > > if (dovi[doviProfile].doviProfileId == 50)
[x265] [PATCH 2 of 2] hdr: Replace --hdr with --hdr10
# HG changeset patch # User Aruna Matheswaran # Date 1578389851 -19800 # Tue Jan 07 15:07:31 2020 +0530 # Node ID 2d8cff8781baa983a56aa5bc72219241122fffc7 # Parent 542653f9c733c0b41d33e204497bed1126455d17 hdr: Replace --hdr with --hdr10 This patch deprecates the existing option '--hdr' and replaces it with '--hdr10' as the feature signals SEI specific to HDR10. Note: '--hdr' will be removed in the upcoming major release of x265. diff -r 542653f9c733 -r 2d8cff8781ba doc/reST/cli.rst --- a/doc/reST/cli.rst Mon Jan 06 10:44:13 2020 +0530 +++ b/doc/reST/cli.rst Tue Jan 07 15:07:31 2020 +0530 @@ -2252,9 +2252,9 @@ is specified. When enabled, signals max-cll and max-fall as 0 if :option:`max-cll` is unspecified. Default enabled. -.. option:: --hdr, --no-hdr - - Force signalling of HDR parameters in SEI packets. Enabled +.. option:: --hdr10, --no-hdr10 + + Force signaling of HDR10 parameters in SEI packets. Enabled automatically when :option:`--master-display` or :option:`--max-cll` is specified. Useful when there is a desire to signal 0 values for max-cll and max-fall. Default disabled. diff -r 542653f9c733 -r 2d8cff8781ba source/CMakeLists.txt --- a/source/CMakeLists.txt Mon Jan 06 10:44:13 2020 +0530 +++ b/source/CMakeLists.txt Tue Jan 07 15:07:31 2020 +0530 @@ -29,7 +29,7 @@ option(STATIC_LINK_CRT "Statically link C runtime for release builds" OFF) mark_as_advanced(FPROFILE_USE FPROFILE_GENERATE NATIVE_BUILD) # X265_BUILD must be incremented each time the public API is changed -set(X265_BUILD 187) +set(X265_BUILD 188) configure_file("${PROJECT_SOURCE_DIR}/x265.def.in" "${PROJECT_BINARY_DIR}/x265.def") configure_file("${PROJECT_SOURCE_DIR}/x265_config.h.in" diff -r 542653f9c733 -r 2d8cff8781ba source/common/param.cpp --- a/source/common/param.cpp Mon Jan 06 10:44:13 2020 +0530 +++ b/source/common/param.cpp Tue Jan 07 15:07:31 2020 +0530 @@ -147,7 +147,8 @@ param->bEnableAccessUnitDelimiters = 0; param->bEmitHRDSEI = 0; param->bEmitInfoSEI = 1; -param->bEmitHDRSEI = 0; +param->bEmitHDRSEI = 0; /*Deprecated*/ +param->bEmitHDR10SEI = 0; param->bEmitIDRRecoverySEI = 0; /* CU definitions */ @@ -1244,7 +1245,8 @@ p->bSsimRd = atobool(value); } } -OPT("hdr") p->bEmitHDRSEI = atobool(value); +OPT("hdr") p->bEmitHDR10SEI = atobool(value); /*DEPRECATED*/ +OPT("hdr10") p->bEmitHDR10SEI = atobool(value); OPT("hdr-opt") p->bHDR10Opt = atobool(value); /*DEPRECATED*/ OPT("hdr10-opt") p->bHDR10Opt = atobool(value); OPT("limit-sao") p->bLimitSAO = atobool(value); @@ -1768,12 +1770,12 @@ #endif if (param->masteringDisplayColorVolume || param->maxFALL || param->maxCLL) -param->bEmitHDRSEI = 1; +param->bEmitHDR10SEI = 1; bool isSingleSEI = (param->bRepeatHeaders || param->bEmitHRDSEI || param->bEmitInfoSEI - || param->bEmitHDRSEI + || param->bEmitHDR10SEI || param->bEmitIDRRecoverySEI || !!param->interlaceMode || param->preferredTransferCharacteristics > 1 @@ -2170,7 +2172,7 @@ s += sprintf(s, " hist-threshold=%.2f", p->edgeTransitionThreshold); BOOL(p->bOptCUDeltaQP, "opt-cu-delta-qp"); BOOL(p->bAQMotion, "aq-motion"); -BOOL(p->bEmitHDRSEI, "hdr"); +BOOL(p->bEmitHDR10SEI, "hdr10"); BOOL(p->bHDR10Opt, "hdr10-opt"); BOOL(p->bDhdr10opt, "dhdr10-opt"); BOOL(p->bEmitIDRRecoverySEI, "idr-recovery-sei"); @@ -2495,7 +2497,7 @@ dst->bAQMotion = src->bAQMotion; dst->bSsimRd = src->bSsimRd; dst->dynamicRd = src->dynamicRd; -dst->bEmitHDRSEI = src->bEmitHDRSEI; +dst->bEmitHDR10SEI = src->bEmitHDR10SEI; dst->bEmitHRDSEI = src->bEmitHRDSEI; dst->bHDROpt = src->bHDROpt; /*DEPRECATED*/ dst->bHDR10Opt = src->bHDR10Opt; diff -r 542653f9c733 -r 2d8cff8781ba source/encoder/encoder.cpp --- a/source/encoder/encoder.cppMon Jan 06 10:44:13 2020 +0530 +++ b/source/encoder/encoder.cppTue Jan 07 15:07:31 2020 +0530 @@ -3113,7 +3113,7 @@ if (m_param->bSingleSeiNal) bs.resetBits(); -if (m_param->bEmitHDRSEI) +if (m_param->bEmitHDR10SEI) { if (m_param->bEmitCLL) { @@ -3370,7 +3370,7 @@ p->vui.matrixCoeffs = dovi[doviProfile].matrixCoeffs; if (dovi[doviProfile].doviProfileId == 81) -p->bEmitHDRSEI = p->bEmitCLL = 1; +p->bEmitHDR10SEI = p->bEmitCLL = 1; if (dovi[doviProfile].doviProfileId == 50) p->crQpOffset = 3; @@ -4086,7 +4086,7 @@ } } -if (m_param->toneMapFile || p->bHDR10Opt || p->bEmitHDRSEI) +if (m_param->toneMapFile || p->bHDR10Opt || p->bEmitHDR10SEI) { if (!p->bRepeatHeaders) { diff -r 542653f9c733 -r 2d8cff8781ba source/x265.h