[x265] fix m_initSliceContext (uninitialised m_sliceQp)

Steve Borho steve at borho.org
Tue Aug 26 18:56:21 CEST 2014


On 08/26, Satoshi Nakagawa wrote:
> # HG changeset patch
> # User Satoshi Nakagawa <nakagawa424 at oki.com>
> # Date 1409041357 -32400
> #      Tue Aug 26 17:22:37 2014 +0900
> # Node ID c18255467f12da1a780340ade55292c32d95bfdd
> # Parent  5acfb12ec5d17cc700e313fc99248e2408e5967b
> fix m_initSliceContext (uninitialised m_sliceQp)

Thanks, this explains why I couldn't use m_initSliceContext to
initialize the main entropy coder. This should change outputs a bit.

> diff -r 5acfb12ec5d1 -r c18255467f12 source/encoder/frameencoder.cpp
> --- a/source/encoder/frameencoder.cpp	Mon Aug 25 17:53:12 2014 +0900
> +++ b/source/encoder/frameencoder.cpp	Tue Aug 26 17:22:37 2014 +0900
> @@ -158,8 +158,6 @@
>      int64_t startCompressTime = x265_mdate();
>      Slice* slice = m_frame->m_picSym->m_slice;
>  
> -    m_initSliceContext.resetEntropy(slice);
> -
>      /* Emit access unit delimiter unless this is the first frame and the user is
>       * not repeating headers (since AUD is supposed to be the first NAL in the access
>       * unit) */
> @@ -225,12 +223,15 @@
>          m_frameFilter.m_sao.m_refDepth = 2 + !IS_REFERENCED(slice);
>          break;
>      }
> -    m_frameFilter.start(m_frame);
>  
>      // Clip slice QP to 0-51 spec range before encoding
>      qp = Clip3(-QP_BD_OFFSET, MAX_QP, qp);
>      slice->m_sliceQp = qp;
>  
> +    m_initSliceContext.resetEntropy(slice);
> +
> +    m_frameFilter.start(m_frame);
> +
>      if (m_frame->m_lowres.bKeyframe)
>      {
>          if (m_param->bEmitHRDSEI)
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel

-- 
Steve Borho


More information about the x265-devel mailing list