Lines Matching refs:bitdepth
113 static int dnxhd_init_vlc(DNXHDContext *ctx, uint32_t cid, int bitdepth) in dnxhd_init_vlc() argument
123 if (cid_table->bit_depth != bitdepth && in dnxhd_init_vlc()
126 cid_table->bit_depth, bitdepth); in dnxhd_init_vlc()
140 if ((ret = init_vlc(&ctx->dc_vlc, DNXHD_DC_VLC_BITS, bitdepth > 8 ? 14 : 12, in dnxhd_init_vlc()
180 int old_bit_depth = ctx->bit_depth, bitdepth; in dnxhd_decode_header() local
214 case 1: bitdepth = 8; break; in dnxhd_decode_header()
215 case 2: bitdepth = 10; break; in dnxhd_decode_header()
216 case 3: bitdepth = 12; break; in dnxhd_decode_header()
227 if ((ret = dnxhd_init_vlc(ctx, cid, bitdepth)) < 0) in dnxhd_decode_header()
247 if (bitdepth == 8) { in dnxhd_decode_header()
250 } else if (bitdepth == 10) { in dnxhd_decode_header()
259 } else if (bitdepth == 12) { in dnxhd_decode_header()
262 } else if (bitdepth == 10) { in dnxhd_decode_header()
273 ctx->avctx->bits_per_raw_sample = ctx->bit_depth = bitdepth; in dnxhd_decode_header()