projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81afcf1
)
Branchless setting of MB_TYPE_8x8DCT.
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 24 Jan 2010 20:54:09 +0000
(20:54 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 24 Jan 2010 20:54:09 +0000
(20:54 +0000)
Not benchmarked as i failed to find a sample that uses this one. But it should be faster.
Originally committed as revision 21435 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264_cavlc.c
patch
|
blob
|
history
diff --git
a/libavcodec/h264_cavlc.c
b/libavcodec/h264_cavlc.c
index
0afabfc
..
d5a9f57
100644
(file)
--- a/
libavcodec/h264_cavlc.c
+++ b/
libavcodec/h264_cavlc.c
@@
-904,9
+904,7
@@
decode_intra_mb:
}
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;