|
|
@ -52,13 +52,6 @@ static const uint8_t cbp_tab[64][2] = { |
|
|
|
|
|
|
|
|
|
|
|
static const uint8_t scan3x3[4] = { 4, 5, 7, 8 }; |
|
|
|
static const uint8_t scan3x3[4] = { 4, 5, 7, 8 }; |
|
|
|
|
|
|
|
|
|
|
|
static const uint8_t cavs_chroma_qp[64] = { |
|
|
|
|
|
|
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, |
|
|
|
|
|
|
|
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, |
|
|
|
|
|
|
|
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 42, 43, 43, 44, 44, |
|
|
|
|
|
|
|
45, 45, 46, 46, 47, 47, 48, 48, 48, 49, 49, 49, 50, 50, 50, 51 |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const uint8_t dequant_shift[64] = { |
|
|
|
static const uint8_t dequant_shift[64] = { |
|
|
|
14, 14, 14, 14, 14, 14, 14, 14, |
|
|
|
14, 14, 14, 14, 14, 14, 14, 14, |
|
|
|
13, 13, 13, 13, 13, 13, 13, 13, |
|
|
|
13, 13, 13, 13, 13, 13, 13, 13, |
|
|
@ -598,10 +591,10 @@ static inline void decode_residual_chroma(AVSContext *h) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (h->cbp & (1 << 4)) |
|
|
|
if (h->cbp & (1 << 4)) |
|
|
|
decode_residual_block(h, &h->gb, chroma_dec, 0, |
|
|
|
decode_residual_block(h, &h->gb, chroma_dec, 0, |
|
|
|
cavs_chroma_qp[h->qp], h->cu, h->c_stride); |
|
|
|
ff_cavs_chroma_qp[h->qp], h->cu, h->c_stride); |
|
|
|
if (h->cbp & (1 << 5)) |
|
|
|
if (h->cbp & (1 << 5)) |
|
|
|
decode_residual_block(h, &h->gb, chroma_dec, 0, |
|
|
|
decode_residual_block(h, &h->gb, chroma_dec, 0, |
|
|
|
cavs_chroma_qp[h->qp], h->cv, h->c_stride); |
|
|
|
ff_cavs_chroma_qp[h->qp], h->cv, h->c_stride); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static inline int decode_residual_inter(AVSContext *h) |
|
|
|
static inline int decode_residual_inter(AVSContext *h) |
|
|
|