Lines Matching refs:cid_table
68 const CIDEntry *cid_table; member
117 const CIDEntry *cid_table = ff_dnxhd_get_cid_table(cid); in dnxhd_init_vlc() local
119 if (!cid_table) { in dnxhd_init_vlc()
123 if (cid_table->bit_depth != bitdepth && in dnxhd_init_vlc()
124 cid_table->bit_depth != DNXHD_VARIABLE) { in dnxhd_init_vlc()
126 cid_table->bit_depth, bitdepth); in dnxhd_init_vlc()
129 ctx->cid_table = cid_table; in dnxhd_init_vlc()
137 ctx->cid_table->ac_bits, 1, 1, in dnxhd_init_vlc()
138 ctx->cid_table->ac_codes, 2, 2, 0)) < 0) in dnxhd_init_vlc()
141 ctx->cid_table->dc_bits, 1, 1, in dnxhd_init_vlc()
142 ctx->cid_table->dc_codes, 1, 1, 0)) < 0) in dnxhd_init_vlc()
145 ctx->cid_table->run_bits, 1, 1, in dnxhd_init_vlc()
146 ctx->cid_table->run_codes, 2, 2, 0)) < 0) in dnxhd_init_vlc()
229 if (ctx->mbaff && ctx->cid_table->cid != 1260) in dnxhd_decode_header()
241 if (ctx->act && ctx->cid_table->cid != 1256 && ctx->cid_table->cid != 1270) in dnxhd_decode_header()
283 if (ctx->width != ctx->cid_table->width && in dnxhd_decode_header()
284 ctx->cid_table->width != DNXHD_VARIABLE) { in dnxhd_decode_header()
287 ctx->width, ctx->cid_table->width, 255); in dnxhd_decode_header()
288 ctx->width = ctx->cid_table->width; in dnxhd_decode_header()
291 if (buf_size < ctx->cid_table->coding_unit_size) { in dnxhd_decode_header()
293 buf_size, ctx->cid_table->coding_unit_size); in dnxhd_decode_header()
363 const uint8_t *ac_info = ctx->cid_table->ac_info; in dnxhd_decode_dct_block()
365 const int eob_index = ctx->cid_table->eob_index; in dnxhd_decode_dct_block()
375 weight_matrix = ctx->cid_table->chroma_weight; in dnxhd_decode_dct_block()
379 weight_matrix = ctx->cid_table->luma_weight; in dnxhd_decode_dct_block()
385 weight_matrix = ctx->cid_table->chroma_weight; in dnxhd_decode_dct_block()
388 weight_matrix = ctx->cid_table->luma_weight; in dnxhd_decode_dct_block()
429 i += ctx->cid_table->run[index2]; in dnxhd_decode_dct_block()
521 row->luma_scale[i] = qscale * ctx->cid_table->luma_weight[i]; in dnxhd_decode_macroblock()
522 row->chroma_scale[i] = qscale * ctx->cid_table->chroma_weight[i]; in dnxhd_decode_macroblock()
664 buf += ctx->cid_table->coding_unit_size; in dnxhd_decode_frame()
665 buf_size -= ctx->cid_table->coding_unit_size; in dnxhd_decode_frame()