[Ffmpeg-devel] [PATCH] h264 optimization: common case hl_decode_mb

Alexander Strange astrange
Fri Feb 23 08:21:21 CET 2007


On Feb 23, 2007, at 2:08 AM, Alexander Strange wrote:
>
> It has a very small, but significant speed gain on my test video,  
> which is 1080p and 1.2MBit with I/P frames:

That's the first 30 seconds of the video, I mean.

>
> hl_decode_mb_simple is 880 instructions vs. 2018 for the general one.

I checked with a gcc 4.3 build from SVN, and it's smart enough that  
it inlines both of the functions back into the original. I'll force  
this not to happen, but I have a style question - can I use  
__attribute((noinline)) directly or should it be a macro?





More information about the ffmpeg-devel mailing list