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