Mercurial > libavcodec.hg
comparison cabac.c @ 3956:0910f2844f9a libavcodec
branchless renormalization (1% faster get_cabac) old branchless renormalization wasnt faster because gcc was scared of the shift variable (missusing bit variable now)
author | michael |
---|---|
date | Sun, 08 Oct 2006 13:20:22 +0000 |
parents | 051a9c8b257f |
children | 162bea01a5d4 |
comparison
equal
deleted
inserted
replaced
3955:051a9c8b257f | 3956:0910f2844f9a |
---|---|
71 33,33,34,34,35,35,35,36, | 71 33,33,34,34,35,35,35,36, |
72 36,36,37,37,37,38,38,63, | 72 36,36,37,37,37,38,38,63, |
73 }; | 73 }; |
74 | 74 |
75 const uint8_t ff_h264_norm_shift[256]= { | 75 const uint8_t ff_h264_norm_shift[256]= { |
76 8,7,6,6,5,5,5,5,4,4,4,4,4,4,4,4, | 76 9,8,7,7,6,6,6,6,5,5,5,5,5,5,5,5, |
77 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, | |
77 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3, | 78 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3, |
78 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, | 79 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3, |
79 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, | 80 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, |
80 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, | 81 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, |
81 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, | 82 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, |
82 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, | 83 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, |
83 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, | 84 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, |
84 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | 85 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, |
85 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | 86 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, |
86 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | 87 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, |
87 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | 88 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, |
88 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | 89 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, |
89 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | 90 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, |
90 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | 91 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, |
91 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | |
92 }; | 92 }; |
93 | 93 |
94 /** | 94 /** |
95 * | 95 * |
96 * @param buf_size size of buf in bits | 96 * @param buf_size size of buf in bits |