Lines Matching refs:vpc
64 VC1ParseContext *vpc = s->priv_data; in vc1_extract_header() local
67 vpc->v.s.avctx = avctx; in vc1_extract_header()
68 vpc->v.parse_only = 1; in vc1_extract_header()
70 switch (vpc->prev_start_code) { in vc1_extract_header()
72 ff_vc1_decode_sequence_header(avctx, &vpc->v, &gb); in vc1_extract_header()
75 ff_vc1_decode_entry_point(avctx, &vpc->v, &gb); in vc1_extract_header()
78 if(vpc->v.profile < PROFILE_ADVANCED) in vc1_extract_header()
79 ret = ff_vc1_parse_frame_header (&vpc->v, &gb); in vc1_extract_header()
81 ret = ff_vc1_parse_frame_header_adv(&vpc->v, &gb); in vc1_extract_header()
87 if (vpc->v.s.pict_type == AV_PICTURE_TYPE_BI) in vc1_extract_header()
90 s->pict_type = vpc->v.s.pict_type; in vc1_extract_header()
97 if (vpc->v.rff){ in vc1_extract_header()
100 }else if (vpc->v.rptfrm){ in vc1_extract_header()
102 s->repeat_pict = vpc->v.rptfrm * 2 + 1; in vc1_extract_header()
108 if (vpc->v.broadcast && vpc->v.interlace && !vpc->v.psf) in vc1_extract_header()
109 s->field_order = vpc->v.tff ? AV_FIELD_TT : AV_FIELD_BB; in vc1_extract_header()
117 s->format = vpc->v.chromaformat == 1 ? AV_PIX_FMT_YUV420P in vc1_extract_header()
135 VC1ParseContext *vpc = s->priv_data; in vc1_parse() local
136 int pic_found = vpc->pc.frame_start_found; in vc1_parse()
137 uint8_t *unesc_buffer = vpc->unesc_buffer; in vc1_parse()
138 size_t unesc_index = vpc->unesc_index; in vc1_parse()
139 VC1ParseSearchState search_state = vpc->search_state; in vc1_parse()
142 int i = vpc->bytes_to_skip; in vc1_parse()
176 vpc->prev_start_code == (VC1_CODE_FRAME & 0xFF)) in vc1_parse()
187 i += vpc->v.vc1dsp.startcode_find_candidate(buf + i, buf_size - i); in vc1_parse()
211 vpc->prev_start_code = b; in vc1_parse()
227 vpc->pc.frame_start_found = pic_found; in vc1_parse()
228 vpc->unesc_index = unesc_index; in vc1_parse()
229 vpc->search_state = search_state; in vc1_parse()
234 if (ff_combine_frame(&vpc->pc, next, &buf, &buf_size) < 0) { in vc1_parse()
235 vpc->bytes_to_skip = 0; in vc1_parse()
249 vpc->bytes_to_skip = 4; in vc1_parse()
251 vpc->bytes_to_skip += next; in vc1_parse()
260 VC1ParseContext *vpc = s->priv_data; in vc1_parse_init() local
261 vpc->v.s.slice_context_count = 1; in vc1_parse_init()
262 vpc->v.first_pic_header_flag = 1; in vc1_parse_init()
263 vpc->prev_start_code = 0; in vc1_parse_init()
264 vpc->bytes_to_skip = 0; in vc1_parse_init()
265 vpc->unesc_index = 0; in vc1_parse_init()
266 vpc->search_state = NO_MATCH; in vc1_parse_init()
267 ff_vc1_init_common(&vpc->v); in vc1_parse_init()