Lines Matching defs:cat
1534 static av_always_inline int get_cabac_cbf_ctx( H264Context *h, int cat, int idx, int max_coeff, int is_dc ) {
1540 if( cat == 3 ) {
1560 return base_ctx[cat] + ctx;
1572 int cat, int n, const uint8_t *scantable,
1638 + significant_coeff_flag_offset[MB_FIELD][cat];
1640 + last_coeff_flag_offset[MB_FIELD][cat];
1642 + coeff_abs_level_m1_offset[cat];
1684 if( cat == 3 )
1693 assert( cat == 1 || cat == 2 || cat == 4 || cat == 7 || cat == 8 || cat == 11 || cat == 12 );
1754 static void decode_cabac_residual_dc_internal( H264Context *h, DCTELEM *block, int cat, int n, const uint8_t *scantable, int max_coeff ) {
1755 decode_cabac_residual_internal(h, block, cat, n, scantable, NULL, max_coeff, 1, 0);
1759 int cat, int n, const uint8_t *scantable,
1762 decode_cabac_residual_internal(h, block, cat, n, scantable, NULL, max_coeff, 1, 1);
1765 static void decode_cabac_residual_nondc_internal( H264Context *h, DCTELEM *block, int cat, int n, const uint8_t *scantable, const uint32_t *qmul, int max_coeff ) {
1766 decode_cabac_residual_internal(h, block, cat, n, scantable, qmul, max_coeff, 0, 0);
1769 /* cat: 0-> DC 16x16 n = 0
1781 static av_always_inline void decode_cabac_residual_dc( H264Context *h, DCTELEM *block, int cat, int n, const uint8_t *scantable, int max_coeff ) {
1783 if( get_cabac( &h->cabac, &h->cabac_state[get_cabac_cbf_ctx( h, cat, n, max_coeff, 1 ) ] ) == 0 ) {
1787 decode_cabac_residual_dc_internal( h, block, cat, n, scantable, max_coeff );
1792 int cat, int n, const uint8_t *scantable,
1796 if (get_cabac(&h->cabac, &h->cabac_state[get_cabac_cbf_ctx(h, cat, n, max_coeff, 1)]) == 0) {
1800 decode_cabac_residual_dc_internal_422(h, block, cat, n, scantable, max_coeff);
1803 static av_always_inline void decode_cabac_residual_nondc( H264Context *h, DCTELEM *block, int cat, int n, const uint8_t *scantable, const uint32_t *qmul, int max_coeff ) {
1805 if( (cat != 5 || CHROMA444) && get_cabac( &h->cabac, &h->cabac_state[get_cabac_cbf_ctx( h, cat, n, max_coeff, 0 ) ] ) == 0 ) {
1813 decode_cabac_residual_nondc_internal( h, block, cat, n, scantable, qmul, max_coeff );