diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-10-13 14:21:25 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-10-13 14:21:25 +0000 |
commit | 68a205edef062ab8f583a40ab8607a28faedb3b2 (patch) | |
tree | 600fbde1c81f9d2d61a7401ae282741a9f8dce74 /libavcodec/cabac.h | |
parent | a991b1fecbd8c9e6f4fc31c191bd12e4be27dbf7 (diff) | |
download | ffmpeg-68a205edef062ab8f583a40ab8607a28faedb3b2.tar.gz |
dehack *ps_state indexing in the branchless decoder
Originally committed as revision 6683 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cabac.h')
-rw-r--r-- | libavcodec/cabac.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h index b1a4ae6cb2..c07d07bb02 100644 --- a/libavcodec/cabac.h +++ b/libavcodec/cabac.h @@ -47,6 +47,7 @@ typedef struct CABACContext{ PutBitContext pb; }CABACContext; +extern uint8_t ff_h264_mlps_state[4*64]; extern uint8_t ff_h264_lps_range[2*65][4]; ///< rangeTabLPS extern uint8_t ff_h264_mps_state[2*64]; ///< transIdxMPS extern uint8_t ff_h264_lps_state[2*64]; ///< transIdxLPS @@ -480,7 +481,7 @@ static int always_inline get_cabac_inline(CABACContext *c, uint8_t * const state #endif /* CMOV_IS_FAST */ //eax:state ebx:low edx:mask esi:range - "movzbl "MANGLE(ff_h264_mps_state)"(%%eax), %%ecx \n\t" + "movzbl "MANGLE(ff_h264_mlps_state)"+128(%%eax), %%ecx \n\t" "movb %%cl, (%1) \n\t" "movl %%esi, %%edx \n\t" @@ -550,7 +551,7 @@ static int always_inline get_cabac_inline(CABACContext *c, uint8_t * const state c->range += (RangeLPS - c->range) & lps_mask; s^=lps_mask; - *state= ff_h264_mps_state[s]; + *state= (ff_h264_mlps_state+128)[s]; bit= s&1; lps_mask= ff_h264_norm_shift[c->range>>(CABAC_BITS+3)]; |