55 #define DNXHD_VLC_BITS 9 
   56 #define DNXHD_DC_VLC_BITS 7 
   72     if (cid != ctx->
cid) {
 
  108     static const uint8_t header_prefix[] = { 0x00, 0x00, 0x02, 0x80, 0x01 };
 
  111     if (buf_size < 0x280)
 
  114     if (memcmp(buf, header_prefix, 5)) {
 
  130     if (buf[0x21] & 0x40) {
 
  192     int i, j, index1, index2, 
len, 
flags;
 
  193     int level, component, sign;
 
  202         component = 1 + (n&1);
 
  217         level = (
NEG_USR32(sign ^ level, len) ^ sign) - sign;
 
  220     block[0] = ctx->
last_dc[component];
 
  228     while (index1 != eob_index) {
 
  229         level = ac_level[index1];
 
  230         flags = ac_flags[index1];
 
  254         if (level_bias < 32 || weight_matrix[i] != level_bias)
 
  256         level >>= level_shift;
 
  258         block[j] = (level^sign) - sign;
 
  283     int dct_linesize_luma   = frame->
linesize[0];
 
  284     int dct_linesize_chroma = frame->
linesize[1];
 
  285     uint8_t *dest_y, *dest_u, *dest_v;
 
  286     int dct_y_offset, dct_x_offset;
 
  293         for (i = 0; i < 64; i++) {
 
  300     for (i = 0; i < 8; i++) {
 
  306         dct_linesize_luma   <<= 1;
 
  307         dct_linesize_chroma <<= 1;
 
  310     dest_y = frame->
data[0] + ((y * dct_linesize_luma)   << 4) + (x << (4 + 
shift1));
 
  311     dest_u = frame->
data[1] + ((y * dct_linesize_chroma) << 4) + (x << (3 + 
shift1));
 
  312     dest_v = frame->
data[2] + ((y * dct_linesize_chroma) << 4) + (x << (3 + 
shift1));
 
  320     dct_y_offset = dct_linesize_luma << 3;
 
  321     dct_x_offset = 8 << 
shift1;
 
  325     ctx->
dsp.
idct_put(dest_y + dct_y_offset + dct_x_offset, dct_linesize_luma, ctx->
blocks[5]);
 
  328         dct_y_offset = dct_linesize_chroma << 3;
 
  347         for (x = 0; x < ctx->
mb_width; x++) {
 
  360     int buf_size = avpkt->
size;
 
  367     av_dlog(avctx, 
"frame size %d\n", buf_size);
 
  397         goto decode_coding_unit;