mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avcodec/imm4: Make better use of symbols table
Also inline the VLC's number of bits while at it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
d9e6e9360d
commit
c14656c170
1 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ static const uint8_t inter_cb[] = {
|
|||
};
|
||||
|
||||
static const uint8_t cbplo_symbols[] = {
|
||||
3, 4, 19, 20, 35, 36, 51, 52
|
||||
0, 0, 1, 1, 2, 2, 3, 3
|
||||
};
|
||||
|
||||
static const uint8_t cbplo_bits[] = {
|
||||
|
|
@ -236,7 +236,7 @@ static int decode_intra(AVCodecContext *avctx, GetBitContext *gb, AVFrame *frame
|
|||
for (x = 0; x < avctx->width; x += 16) {
|
||||
unsigned flag, cbphi, cbplo;
|
||||
|
||||
cbplo = get_vlc2(gb, cbplo_tab.table, cbplo_tab.bits, 1) >> 4;
|
||||
cbplo = get_vlc2(gb, cbplo_tab.table, CBPLO_VLC_BITS, 1);
|
||||
flag = get_bits1(gb);
|
||||
|
||||
cbphi = get_cbphi(gb, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue