[FFmpeg-cvslog] r16201 - trunk/libavcodec/h264.c

michael subversion
Thu Dec 18 01:46:54 CET 2008


Author: michael
Date: Thu Dec 18 01:46:54 2008
New Revision: 16201

Log:
Skip chroma handling when there is no coded chroma.
0.5% overall speedup for the cathedral sample.


Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	(original)
+++ trunk/libavcodec/h264.c	Thu Dec 18 01:46:54 2008
@@ -2547,7 +2547,7 @@ static av_always_inline void hl_decode_m
             }
         }
 
-        if(simple || !ENABLE_GRAY || !(s->flags&CODEC_FLAG_GRAY)){
+        if((simple || !ENABLE_GRAY || !(s->flags&CODEC_FLAG_GRAY)) && (h->cbp&0x30)){
             uint8_t *dest[2] = {dest_cb, dest_cr};
             if(transform_bypass){
                 idct_add = idct_dc_add = s->dsp.add_pixels4;




More information about the ffmpeg-cvslog mailing list