[x264-devel] Re: Difference in cost functions

Loren Merritt lorenm at u.washington.edu
Thu Jan 18 13:03:23 CET 2007


On Tue, 16 Jan 2007, Axel Gunter wrote:

> Can anyone explain what is the difference between COST_MV(), COST_MV_X3_DIR() 
> and COST_MV_X4 macros? All three appear in the me.c file.

COST_MV tries one MV and keeps it if it's better than the previous best 
MV. COST_MV_X4 is equivalent to 4 calls to COST_MV, but is faster due to 
some assembly optimizations. COST_MV_X3_DIR does 3 COST_MV()s, except it 
doesn't compare which MV is best, only computes the cost of each.

--Loren Merritt

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list