> > - 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.
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel