[x265] [PATCH] Disable noise reduction when vbv is enabled

Ashok Kumar Mishra ashok at multicorewareinc.com
Thu Jul 19 08:27:13 CEST 2018


On Wed, Jul 4, 2018 at 11:27 AM, <aruna at multicorewareinc.com> wrote:

> # HG changeset patch
> # User Aruna_Matheswaran
> # Date 1527486192 -19800
> #      Mon May 28 11:13:12 2018 +0530
> # Node ID b1a656f172e0e2a4faee4e5755e1be5a760d5e11
> # Parent  33e50546b41f3bd157ccb83adba67704352bc5dd
> Disable noise reduction when vbv is enabled
>
> Currently, even when --nr-intra and --nr-inter are set to 0, noise
> reduction is
> being carried out if VBV is enabled. This patch completely disables noise
> reduction immaterial of VBV when --nr-intra and --nr-inter are set to 0.
>
> diff -r 33e50546b41f -r b1a656f172e0 source/encoder/frameencoder.cpp
> --- a/source/encoder/frameencoder.cpp   Fri Jun 29 12:15:34 2018 +0530
> +++ b/source/encoder/frameencoder.cpp   Mon May 28 11:13:12 2018 +0530
> @@ -179,7 +179,7 @@
>          ok &= m_rce.picTimingSEI && m_rce.hrdTiming;
>      }
>
> -    if (m_param->noiseReductionIntra || m_param->noiseReductionInter ||
> m_param->rc.vbvBufferSize)
> +    if (m_param->noiseReductionIntra || m_param->noiseReductionInter)
>          m_nr = X265_MALLOC(NoiseReduction, 1);
>      if (m_nr)
>          memset(m_nr, 0, sizeof(NoiseReduction));
> diff -r 33e50546b41f -r b1a656f172e0 source/encoder/search.cpp
> --- a/source/encoder/search.cpp Fri Jun 29 12:15:34 2018 +0530
> +++ b/source/encoder/search.cpp Mon May 28 11:13:12 2018 +0530
> @@ -82,7 +82,7 @@
>      m_me.init(param.internalCsp);
>
>      bool ok = m_quant.init(param.psyRdoq, scalingList, m_entropyCoder);
> -    if (m_param->noiseReductionIntra || m_param->noiseReductionInter ||
> m_param->rc.vbvBufferSize)
> +    if (m_param->noiseReductionIntra || m_param->noiseReductionInter )
>          ok &= m_quant.allocNoiseReduction(param);
>
>      ok &= Predict::allocBuffers(param.internalCsp); /* sets
> m_hChromaShift & m_vChromaShift */
>
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
>

Pushed to default.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20180719/4a685c2d/attachment.html>


More information about the x265-devel mailing list