[x265] [PATCH] TComRdCost::setDistParam overloaded version clenup

Steve Borho steve at borho.org
Fri Jul 12 08:29:03 CEST 2013


On Fri, Jul 12, 2013 at 1:25 AM, <praveen at multicorewareinc.com> wrote:

> # HG changeset patch
> # User praveentiwari
> # Date 1373610300 -19800
> # Node ID f44c7225d49acc5d3421e4312e24f7618fdeb155
> # Parent  e4eafcb35d23cd00f049b3e6ed72e9b313427213
> TComRdCost::setDistParam overloaded version clenup
>

pushed with the other commits


> diff -r e4eafcb35d23 -r f44c7225d49a source/Lib/TLibCommon/TComRdCost.cpp
> --- a/source/Lib/TLibCommon/TComRdCost.cpp      Fri Jul 12 11:14:06 2013
> +0530
> +++ b/source/Lib/TLibCommon/TComRdCost.cpp      Fri Jul 12 11:55:00 2013
> +0530
> @@ -148,47 +148,47 @@
>  }
>
>  // Setting the Distortion Parameter for Inter (subpel ME with step)
> -Void TComRdCost::setDistParam(TComPattern* patternKey, Pel* piRefY, Int
> iRefStride, Int iStep, DistParam& rcDistParam, Bool bHADME)
> +Void TComRdCost::setDistParam(TComPattern* patternKey, Pel* refY, Int
> refStride, Int step, DistParam& distParam, Bool hadMe)
>  {
>      // set Original & Curr Pointer / Stride
> -    rcDistParam.fenc = patternKey->getROIY();
> -    rcDistParam.fref = piRefY;
> +    distParam.fenc = patternKey->getROIY();
> +    distParam.fref = refY;
>
> -    rcDistParam.fencstride = patternKey->getPatternLStride();
> -    rcDistParam.frefstride = iRefStride * iStep;
> +    distParam.fencstride = patternKey->getPatternLStride();
> +    distParam.frefstride = refStride * step;
>
>      // set Step for interpolated buffer
> -    rcDistParam.step = iStep;
> +    distParam.step = step;
>
>      // set Block Width / Height
> -    rcDistParam.cols    = patternKey->getROIYWidth();
> -    rcDistParam.rows    = patternKey->getROIYHeight();
> +    distParam.cols = patternKey->getROIYWidth();
> +    distParam.rows = patternKey->getROIYHeight();
>
>      // set distortion function
> -    if (!bHADME)
> +    if (!hadMe)
>      {
> -        rcDistParam.distFunc = m_distortionFunctions[DF_SADS +
> g_convertToBit[rcDistParam.cols] + 1];
> +        distParam.distFunc = m_distortionFunctions[DF_SADS +
> g_convertToBit[distParam.cols] + 1];
>
> -        if (rcDistParam.cols == 12)
> +        if (distParam.cols == 12)
>          {
> -            rcDistParam.distFunc = m_distortionFunctions[46];
> +            distParam.distFunc = m_distortionFunctions[46];
>          }
> -        else if (rcDistParam.cols == 24)
> +        else if (distParam.cols == 24)
>          {
> -            rcDistParam.distFunc = m_distortionFunctions[47];
> +            distParam.distFunc = m_distortionFunctions[47];
>          }
> -        else if (rcDistParam.cols == 48)
> +        else if (distParam.cols == 48)
>          {
> -            rcDistParam.distFunc = m_distortionFunctions[48];
> +            distParam.distFunc = m_distortionFunctions[48];
>          }
>      }
>      else
>      {
> -        rcDistParam.distFunc = m_distortionFunctions[DF_HADS +
> g_convertToBit[rcDistParam.cols] + 1];
> +        distParam.distFunc = m_distortionFunctions[DF_HADS +
> g_convertToBit[distParam.cols] + 1];
>      }
>
>      // initialize
> -    rcDistParam.subShift  = 0;
> +    distParam.subShift = 0;
>  }
>
>  //
> ====================================================================================================================
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> http://mailman.videolan.org/listinfo/x265-devel
>



-- 
Steve Borho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20130712/a4bd3e59/attachment.html>


More information about the x265-devel mailing list