[FFmpeg-devel] [PATCH] add ME_T/ESA to avcodec.h

Jason Garrett-Glaser darkshikari
Thu Jun 5 04:17:55 CEST 2008

> I dunno if it would be easy to have the same effect of setting me_method
> to full and setting cmp to satd I think.

That would probably be a bit misleading, since in lavc (as far as I
know) the cmp values do exactly as they say; e.g. if you specify cmp
satd it'll use SATD for every single comparison in that search.  Bu in
x264, TESA only runs SATD on the best few SADs; it uses a triple
threshold as follows (AFAIK):

Everything better than <some very tight threshold> is always checked
Then, the best <merange/2> values are checked
But if any fall below <some loose threshold>, they're not checked even
if they're within the best <merange/2> values.

While this is nearly as efficient as a full SATD search and obviously
vastly faster, its not *exactly* what one would expect -cmp satd -me
full to do.

Dark Shikari

More information about the ffmpeg-devel mailing list