[x265] [PATCH] TComRdCost::setDistParam cleanup

Steve Borho steve at borho.org
Fri Jul 12 08:13:51 CEST 2013


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

> # HG changeset patch
> # User praveentiwari
> # Date 1373607573 -19800
> # Node ID b518fa481bd4eef520dfa7d5f898ef32c753c88f
> # Parent  0efb77a7ccf599a73013cc7298625d1ff429f679
> TComRdCost::setDistParam cleanup
>

Looks good, queued


>
> diff -r 0efb77a7ccf5 -r b518fa481bd4 source/Lib/TLibCommon/TComRdCost.cpp
> --- a/source/Lib/TLibCommon/TComRdCost.cpp      Fri Jul 12 10:44:04 2013
> +0530
> +++ b/source/Lib/TLibCommon/TComRdCost.cpp      Fri Jul 12 11:09:33 2013
> +0530
> @@ -116,35 +116,35 @@
>  }
>
>  // Setting the Distortion Parameter for Inter (ME)
> -Void TComRdCost::setDistParam(TComPattern* patternKey, Pel* piRefY, Int
> iRefStride, DistParam& rcDistParam)
> +Void TComRdCost::setDistParam(TComPattern* patternKey, Pel* refY, Int
> refStride, DistParam& distParam)
>  {
>      // 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;
> +    distParam.fencstride = patternKey->getPatternLStride();
> +    distParam.frefstride = refStride;
>
>      // set Block Width / Height
> -    rcDistParam.cols    = patternKey->getROIYWidth();
> -    rcDistParam.rows    = patternKey->getROIYHeight();
> -    rcDistParam.distFunc = m_distortionFunctions[DF_SAD +
> g_convertToBit[rcDistParam.cols] + 1];
> +    distParam.cols    = patternKey->getROIYWidth();
> +    distParam.rows    = patternKey->getROIYHeight();
> +    distParam.distFunc = m_distortionFunctions[DF_SAD +
> g_convertToBit[distParam.cols] + 1];
>
> -    if (rcDistParam.cols == 12)
> +    if (distParam.cols == 12)
>      {
> -        rcDistParam.distFunc = m_distortionFunctions[43];
> +        distParam.distFunc = m_distortionFunctions[43];
>      }
> -    else if (rcDistParam.cols == 24)
> +    else if (distParam.cols == 24)
>      {
> -        rcDistParam.distFunc = m_distortionFunctions[44];
> +        distParam.distFunc = m_distortionFunctions[44];
>      }
> -    else if (rcDistParam.cols == 48)
> +    else if (distParam.cols == 48)
>      {
> -        rcDistParam.distFunc = m_distortionFunctions[45];
> +        distParam.distFunc = m_distortionFunctions[45];
>      }
>
>      // initialize
> -    rcDistParam.subShift  = 0;
> +    distParam.subShift  = 0;
>  }
>
>  // Setting the Distortion Parameter for Inter (subpel ME with step)
> _______________________________________________
> 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/c5f1a1b7/attachment.html>


More information about the x265-devel mailing list