Lines Matching refs:cid_table
105 int max_level = 1<<(ctx->cid_table->bit_depth+2);
125 if (ctx->cid_table->ac_level[j] == alevel &&
126 (!offset || (ctx->cid_table->ac_index_flag[j] && offset)) &&
127 (!run || (ctx->cid_table->ac_run_flag [j] && run))) {
130 ctx->vlc_codes[index] = (ctx->cid_table->ac_codes[j]<<1)|(sign&1);
131 ctx->vlc_bits [index] = ctx->cid_table->ac_bits[j]+1;
133 ctx->vlc_codes[index] = ctx->cid_table->ac_codes[j];
134 ctx->vlc_bits [index] = ctx->cid_table->ac_bits [j];
141 ctx->vlc_codes[index] = (ctx->vlc_codes[index]<<ctx->cid_table->index_bits)|offset;
142 ctx->vlc_bits [index]+= ctx->cid_table->index_bits;
147 int run = ctx->cid_table->run[i];
149 ctx->run_codes[run] = ctx->cid_table->run_codes[i];
150 ctx->run_bits [run] = ctx->cid_table->run_bits[i];
162 const uint8_t *luma_weight_table = ctx->cid_table->luma_weight;
163 const uint8_t *chroma_weight_table = ctx->cid_table->chroma_weight;
170 if (ctx->cid_table->bit_depth == 8) {
173 weight_matrix[j] = ctx->cid_table->luma_weight[i];
179 weight_matrix[j] = ctx->cid_table->chroma_weight[i];
222 ctx->frame_bits = (ctx->cid_table->coding_unit_size - 640 - 4 - ctx->min_padding) * 8;
255 ctx->cid_table = &ff_dnxhd_cid_table[index];
261 avctx->bits_per_raw_sample = ctx->cid_table->bit_depth;
268 if (ctx->cid_table->bit_depth == 10) {
345 buf[0x21] = ctx->cid_table->bit_depth == 10 ? 0x58 : 0x38;
370 put_bits(&ctx->m.pb, ctx->cid_table->dc_bits[nbits] + nbits,
371 (ctx->cid_table->dc_codes[nbits]<<nbits) + (diff & ((1 << nbits) - 1)));
403 weight_matrix = (n&2) ? ctx->cid_table->chroma_weight : ctx->cid_table->luma_weight;
411 if (ctx->cid_table->bit_depth == 10) {
423 if (ctx->cid_table->bit_depth == 10) {
521 ctx->m.last_dc[2] = 1 << (ctx->cid_table->bit_depth + 2);
545 assert(nbits < ctx->cid_table->bit_depth + 4);
546 dc_bits += ctx->cid_table->dc_bits[nbits] + nbits;
571 ctx->m.last_dc[2] = 1 << (ctx->cid_table->bit_depth + 2);
621 if (ctx->cid_table->bit_depth == 8) {
912 if (buf_size < ctx->cid_table->frame_size) {
949 assert(640 + offset + 4 <= ctx->cid_table->coding_unit_size);
950 memset(buf + 640 + offset, 0, ctx->cid_table->coding_unit_size - 4 - offset - 640);
952 AV_WB32(buf + ctx->cid_table->coding_unit_size - 4, 0x600DC0DE); // EOF
957 buf += ctx->cid_table->coding_unit_size;
958 buf_size -= ctx->cid_table->coding_unit_size;
964 return ctx->cid_table->frame_size;
970 int max_level = 1<<(ctx->cid_table->bit_depth+2);