[Ffmpeg-devel] [PATCH] h264.c faster decode_residual

diane_cartman at gmx.de diane_cartman
Fri Sep 23 20:05:54 CEST 2005

Hi all,

this patch addresses two FIXMEs that are in the code for decoding of
residual blocks in CAVLC mode.
1. seperated code for first coefficient level (after the trailing ones) and
subsequent coefficient levels.
2. merged decode of runs with dequantisation

I timed the function from the handling of trailing ones down to the end with
STOP_TIMER. This showed an improvement of almost 20% for the Apple Trailer
"Batman Begins"
in 1080p for that function.
Overall, when decoding the clip with "mplayer batman_begins_1080p.mov -vo
null -ao dummy"
on my P4 with 3GHz I get
V: 144.3 3460/3460 100%  0%  0.0% 0 0
before applying the patch and
V: 144.3 3460/3460 97%  0%  0.0% 0 0
Maybe not that much of an improvement, but I guess it's worth it.

P.S. please cc me as I am not subscribed. And show some mercy, this is my
first patch :)

5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse f?r Mail, Message, More +++
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: h264diff.txt
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20050923/dfadb264/attachment.txt>

More information about the ffmpeg-devel mailing list