Commit 49c084a7 authored by Michael Niedermayer's avatar Michael Niedermayer

Skip non intra luma code when there is no coded luma.

0.7% speedup for the cathedral sample.

Originally committed as revision 16203 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 00794ed0
...@@ -2525,7 +2525,7 @@ static av_always_inline void hl_decode_mb_internal(H264Context *h, int simple){ ...@@ -2525,7 +2525,7 @@ static av_always_inline void hl_decode_mb_internal(H264Context *h, int simple){
idct_dc_add(dest_y + block_offset[i], h->mb + i*16, linesize); idct_dc_add(dest_y + block_offset[i], h->mb + i*16, linesize);
} }
} }
}else{ }else if(h->cbp&15){
const int di = IS_8x8DCT(mb_type) ? 4 : 1; const int di = IS_8x8DCT(mb_type) ? 4 : 1;
for(i=0; i<16; i+=di){ for(i=0; i<16; i+=di){
int nnz = h->non_zero_count_cache[ scan8[i] ]; int nnz = h->non_zero_count_cache[ scan8[i] ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment