changeset 10999:7cfb7bb6e554 libavcodec

Branchless setting of MB_TYPE_8x8DCT. Not benchmarked as i failed to find a sample that uses this one. But it should be faster.
author michael
date Sun, 24 Jan 2010 20:54:09 +0000
parents b2e1b3baef0a
children 6d22c964c601
files h264_cavlc.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/h264_cavlc.c	Sun Jan 24 20:52:49 2010 +0000
+++ b/h264_cavlc.c	Sun Jan 24 20:54:09 2010 +0000
@@ -904,9 +904,7 @@
     }
 
     if(dct8x8_allowed && (cbp&15) && !IS_INTRA(mb_type)){
-        if(get_bits1(&s->gb)){
-            mb_type |= MB_TYPE_8x8DCT;
-        }
+        mb_type |= MB_TYPE_8x8DCT*get_bits1(&s->gb);
     }
     h->cbp=
     h->cbp_table[mb_xy]= cbp;