Backport various speed tweak ideas from ffmpeg
authorFiona Glaser <fiona@x264.com>
Sat, 13 Feb 2010 05:15:12 +0000 (21:15 -0800)
committerFiona Glaser <fiona@x264.com>
Mon, 15 Feb 2010 08:59:56 +0000 (00:59 -0800)
commitb1c4cf9841beb88229da07ed60d7f1f394dfe341
tree9999715727ac078e1794034d9b50e70bc6c78621
parent0ee8e84ed0ccc302c74f2c20a68969cfaa8f6951
Backport various speed tweak ideas from ffmpeg
Add mv0 early termination to spatial direct calculation
Up to twice as fast direct mv calculation on near-motionless video.

Branchless CAVLC level code adjustment based on trailing ones.
A few clocks faster.

Check tc value before clipping in C version of deblock functions.
Much faster, but nobody uses those anyways.

Thanks to Michael Niedermayer for the ideas.
common/frame.c
common/macroblock.c
encoder/cavlc.c