Lines Matching refs:dctx
37 static int dnxhd_find_frame_end(DNXHDParserContext *dctx, in dnxhd_find_frame_end() argument
40 ParseContext *pc = &dctx->pc; in dnxhd_find_frame_end()
51 dctx->cur_byte = 0; in dnxhd_find_frame_end()
52 dctx->remaining = 0; in dnxhd_find_frame_end()
58 if (pic_found && !dctx->remaining) { in dnxhd_find_frame_end()
62 dctx->cur_byte++; in dnxhd_find_frame_end()
65 if (dctx->cur_byte == 24) { in dnxhd_find_frame_end()
66 dctx->h = (state >> 32) & 0xFFFF; in dnxhd_find_frame_end()
67 } else if (dctx->cur_byte == 26) { in dnxhd_find_frame_end()
68 dctx->w = (state >> 32) & 0xFFFF; in dnxhd_find_frame_end()
69 } else if (dctx->cur_byte == 42) { in dnxhd_find_frame_end()
78 remaining = avpriv_dnxhd_get_hr_frame_size(cid, dctx->w, dctx->h); in dnxhd_find_frame_end()
83 dctx->remaining = remaining; in dnxhd_find_frame_end()
84 if (buf_size >= dctx->remaining) { in dnxhd_find_frame_end()
87 dctx->cur_byte = 0; in dnxhd_find_frame_end()
88 dctx->remaining = 0; in dnxhd_find_frame_end()
91 dctx->remaining -= buf_size; in dnxhd_find_frame_end()
94 dctx->cur_byte += buf_size - i; in dnxhd_find_frame_end()
100 if (dctx->remaining > buf_size) { in dnxhd_find_frame_end()
101 dctx->remaining -= buf_size; in dnxhd_find_frame_end()
103 int remaining = dctx->remaining; in dnxhd_find_frame_end()
107 dctx->cur_byte = 0; in dnxhd_find_frame_end()
108 dctx->remaining = 0; in dnxhd_find_frame_end()
122 DNXHDParserContext *dctx = s->priv_data; in dnxhd_parse() local
123 ParseContext *pc = &dctx->pc; in dnxhd_parse()
129 next = dnxhd_find_frame_end(dctx, buf, buf_size); in dnxhd_parse()