[x265] [PATCH] weightp: pass struct to tryCommonDenom() to cache motion compensated reference planes for reuse

Kavitha Sampath kavitha at multicorewareinc.com
Sun Feb 23 08:45:09 CET 2014


> > -                uint32_t origscore = weightCost(orig, origstride, fref,
> frefstride, weightTemp, width, height, NULL);
> > -                if (!origscore)
> > -                    continue;
> > +                if (origscore == 0)
> > +                {
> > +                    origscore = weightCost(orig, origstride, fref,
> frefstride, cacheData.weightTemp, width, height, NULL);
> > +                    if (!origscore)
> > +                        continue;
> > +                }
>
> So now it will cache the unweighted cost unless it was zero, then it
> will measure it every time?  it seems a bit odd.
>

It will measure the unweighted cost when origscore is zero (ie., when no
cost is cached) . When origscore is  non-zero, it will use the available
cached inweighted cost.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20140223/3cdff10e/attachment.html>


More information about the x265-devel mailing list