[SCM] libav/experimental: Optimize (amvd>2)+(amvd>32), about 1 cpu cycles faster. patch by Zhou Zongyi @ zhouzy () os punkt pku dot edu speck cn
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:01:57 UTC 2013
The following commit has been merged in the experimental branch:
commit 821fe7f3e60a23fc472b529c31e60ed4e30b2b96
Author: Zhou Zongyi <zhouzy at os.pku.edu.cn>
Date: Fri Feb 26 22:45:35 2010 +0000
Optimize (amvd>2)+(amvd>32), about 1 cpu cycles faster.
patch by Zhou Zongyi @ zhouzy () os punkt pku dot edu speck cn
Originally committed as revision 22084 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/h264_cabac.c b/libavcodec/h264_cabac.c
index 91df714..9ae695c 100644
--- a/libavcodec/h264_cabac.c
+++ b/libavcodec/h264_cabac.c
@@ -912,7 +912,8 @@ static int decode_cabac_mb_ref( H264Context *h, int list, int n ) {
static int decode_cabac_mb_mvd( H264Context *h, int ctxbase, int amvd, int *mvda) {
int mvd;
- if(!get_cabac(&h->cabac, &h->cabac_state[ctxbase+(amvd>2)+(amvd>32)])){
+ if(!get_cabac(&h->cabac, &h->cabac_state[ctxbase+((amvd-3)>>(INT_BIT-1))+((amvd-33)>>(INT_BIT-1))+2])){
+// if(!get_cabac(&h->cabac, &h->cabac_state[ctxbase+(amvd>2)+(amvd>32)])){
*mvda= 0;
return 0;
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list