[FFmpeg-devel] [PATCH 1/2] huffyuvdec: implement trick

Michael Niedermayer michaelni at gmx.at
Tue Jun 3 23:19:38 CEST 2014


On Tue, Jun 03, 2014 at 09:58:26PM +0200, Christophe Gisquet wrote:
> 2014-06-03 21:51 GMT+02:00 Christophe Gisquet <christophe.gisquet at gmail.com>:
> > After:
> > 346800 decicycles in 422, 262079 runs, 65 skips
> > 168197 decicycles in g, 262077 runs, 67 skips
> > Object size: 23188
> > Overall time: 7.878
> 
> Fixed commit message.
> 
> -- 
> Christophe

>  huffyuvdec.c |   71 +++++++++++++++++++++++++++++++++++++++++++++++------------
>  1 file changed, 57 insertions(+), 14 deletions(-)
> 28dab540fab4579ea1f7ebdb5c6e6315799e96e7  0001-huffyuvdec-implement-trick.patch
> From 410ee0fd78409e27490cc88dcee09553fd72a2e7 Mon Sep 17 00:00:00 2001
> From: Christophe Gisquet <christophe.gisquet at gmail.com>
> Date: Tue, 3 Jun 2014 16:38:36 +0200
> Subject: [PATCH 1/2] huffyuvdec: implement trick
> 
> When the joint table does not contain a valid entry, the decoding restarts
> from scratch. By implementing the trick of jumping to the 2nd level of the
> individual table (and inlining the whole), a speed improvement of 5-10%
> is possible.
> 

> On a 1000-frames YUV4:2:0 video, before:
> 362851 decicycles in 422, 262094 runs, 50 skips
> 346800 decicycles in 422, 262079 runs, 65 skips
> Object size: 23584
> Overall time: 8.377
> 
> After:
> 182488 decicycles in gray, 262087 runs, 57 skips
> 168197 decicycles in gray, 262077 runs, 67 skips
> Object size: 23188
> Overall time: 7.878

you write YUV420 but the "Before" scores say "in 422" and the after
"in gray"
iam confused
can you confirm these are the correct scores ?

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140603/93326f40/attachment.asc>


More information about the ffmpeg-devel mailing list