Lines Matching refs:pic_head
180 ctx->pic_head.pre_temporal_reference = 0; in m2vd_parser_init_ctx()
181 ctx->pic_head.pre_picture_coding_type = 0; in m2vd_parser_init_ctx()
182 ctx->pic_head.picture_coding_type = 0; in m2vd_parser_init_ctx()
197 ctx->pic_head.pre_picture_coding_type = M2VD_CODING_TYPE_D; in m2vd_parser_init_ctx()
787 ctx->pic_head.full_pel_forward_vector = ctx->pic_code_ext_head.f_code[0][0]; in m2vd_decode_pic_ext_header()
788 ctx->pic_head.forward_f_code = ctx->pic_code_ext_head.f_code[0][1]; in m2vd_decode_pic_ext_header()
789 ctx->pic_head.full_pel_backward_vector = ctx->pic_code_ext_head.f_code[1][0]; in m2vd_decode_pic_ext_header()
790 ctx->pic_head.backward_f_code = ctx->pic_code_ext_head.f_code[1][1]; in m2vd_decode_pic_ext_header()
799 if ((ctx->pic_head.pre_picture_coding_type != ctx->pic_head.picture_coding_type) && in m2vd_decode_pic_ext_header()
800 (ctx->pic_head.pre_picture_coding_type != M2VD_CODING_TYPE_I)) { in m2vd_decode_pic_ext_header()
1019 ctx->pic_head.temporal_reference = m2vd_read_bits(bx, 10); in m2vd_decode_pic_header()
1020 ctx->pic_head.picture_coding_type = m2vd_read_bits(bx, 3); in m2vd_decode_pic_header()
1021 ctx->pic_head.vbv_delay = m2vd_read_bits(bx, 16); in m2vd_decode_pic_header()
1022 if (ctx->pic_head.temporal_reference > 50) { in m2vd_decode_pic_header()
1023 ctx->pic_head.temporal_reference = ctx->pretemporal_reference; in m2vd_decode_pic_header()
1027 …if (((RK_S32)ctx->maxFrame_inGOP < ctx->pic_head.temporal_reference) && (ctx->pic_head.temporal_re… in m2vd_decode_pic_header()
1028 ctx->maxFrame_inGOP = ctx->pic_head.temporal_reference; in m2vd_decode_pic_header()
1031 if (ctx->pic_head.picture_coding_type == M2VD_CODING_TYPE_P || in m2vd_decode_pic_header()
1032 ctx->pic_head.picture_coding_type == M2VD_CODING_TYPE_B) { in m2vd_decode_pic_header()
1033 ctx->pic_head.full_pel_forward_vector = m2vd_read_bits(bx, 1); in m2vd_decode_pic_header()
1034 ctx->pic_head.forward_f_code = m2vd_read_bits(bx, 3); in m2vd_decode_pic_header()
1036 if (ctx->pic_head.picture_coding_type == M2VD_CODING_TYPE_B) { in m2vd_decode_pic_header()
1037 ctx->pic_head.full_pel_backward_vector = m2vd_read_bits(bx, 1); in m2vd_decode_pic_header()
1038 ctx->pic_head.backward_f_code = m2vd_read_bits(bx, 3); in m2vd_decode_pic_header()
1142 M2VDHeadPic *pic_head = &ctx->pic_head; in m2vd_alloc_frame() local
1146 if (ctx->resetFlag && pic_head->picture_coding_type != M2VD_CODING_TYPE_I) { in m2vd_alloc_frame()
1147 …]: resetFlag[%d] && picture_coding_type[%d] != I_TYPE", ctx->resetFlag, pic_head->picture_coding_t… in m2vd_alloc_frame()
1153 if ((ctx->ref_frame_cnt < 2) && (pic_head->picture_coding_type == M2VD_CODING_TYPE_B)) { in m2vd_alloc_frame()
1155 ctx->ref_frame_cnt, pic_head->picture_coding_type); in m2vd_alloc_frame()
1181 … ctx->ref_frame_cnt, pic_head->picture_coding_type, pic_code_ext_head->top_field_first); in m2vd_alloc_frame()
1190 ctx->group_frm_cnt = ctx->group_frm_cnt + pic_head->temporal_reference; in m2vd_alloc_frame()
1191 } else if (pic_head->temporal_reference == (RK_S32)ctx->prechange_temporal_ref) in m2vd_alloc_frame()
1193 else if (pic_head->temporal_reference) in m2vd_alloc_frame()
1194 ctx->group_frm_cnt = pic_head->temporal_reference - ctx->prechange_temporal_ref; in m2vd_alloc_frame()
1201 && (pic_head->temporal_reference > (RK_S32)ctx->prechange_temporal_ref)) { in m2vd_alloc_frame()
1205 … (pic_head->temporal_reference - ctx->prechange_temporal_ref) * last_frame_period; in m2vd_alloc_frame()
1239 ctx->group_start_time_27M = pts_27M - pic_head->temporal_reference * ctx->frame_period; in m2vd_alloc_frame()
1243 ctx->prechange_temporal_ref = pic_head->temporal_reference; in m2vd_alloc_frame()
1245 } else if ((RK_S32)ctx->pretemporal_reference > pic_head->temporal_reference + 5) { in m2vd_alloc_frame()
1250 if ((RK_S32)ctx->pretemporal_reference > pic_head->temporal_reference + 5) in m2vd_alloc_frame()
1252 if (pic_head->temporal_reference > (RK_S32)ctx->max_temporal_reference) in m2vd_alloc_frame()
1253 ctx->max_temporal_reference = pic_head->temporal_reference; in m2vd_alloc_frame()
1254 ctx->pretemporal_reference = pic_head->temporal_reference; in m2vd_alloc_frame()
1256 frm_pts += pic_head->temporal_reference * ctx->frame_period; in m2vd_alloc_frame()
1274 if (pic_head->picture_coding_type != M2VD_CODING_TYPE_I in m2vd_alloc_frame()
1275 && pic_head->pre_picture_coding_type == pic_head->picture_coding_type) { in m2vd_alloc_frame()
1276 if ((pic_head->temporal_reference - pic_head->pre_temporal_reference > 3) in m2vd_alloc_frame()
1277 || (pic_head->temporal_reference - pic_head->pre_temporal_reference < -3)) { in m2vd_alloc_frame()
1283 pic_head->pre_temporal_reference = pic_head->temporal_reference; in m2vd_alloc_frame()
1284 pic_head->pre_picture_coding_type = pic_head->picture_coding_type; in m2vd_alloc_frame()
1285 ctx->frame_cur->picCodingType = pic_head->picture_coding_type; in m2vd_alloc_frame()
1378 dst->pic.temporal_reference = p->pic_head.temporal_reference; in m2vd_convert_to_dxva()
1379 dst->pic.picture_coding_type = p->pic_head.picture_coding_type; in m2vd_convert_to_dxva()
1380 dst->pic.pre_picture_coding_type = p->pic_head.pre_picture_coding_type; in m2vd_convert_to_dxva()
1381 dst->pic.vbv_delay = p->pic_head.vbv_delay; in m2vd_convert_to_dxva()
1382 dst->pic.full_pel_forward_vector = p->pic_head.full_pel_forward_vector; in m2vd_convert_to_dxva()
1383 dst->pic.forward_f_code = p->pic_head.forward_f_code; in m2vd_convert_to_dxva()
1384 dst->pic.full_pel_backward_vector = p->pic_head.full_pel_backward_vector; in m2vd_convert_to_dxva()
1385 dst->pic.backward_f_code = p->pic_head.backward_f_code; in m2vd_convert_to_dxva()
1386 dst->pic.pre_temporal_reference = p->pic_head.pre_temporal_reference; in m2vd_convert_to_dxva()
1432 if (p->pic_head.picture_coding_type == M2VD_CODING_TYPE_B) { in m2vd_convert_to_dxva()
1496 p->pic_head.picture_coding_type == M2VD_CODING_TYPE_I) { in m2vd_parser_parse()
1530 p->pic_head.pre_picture_coding_type = p->pic_head.picture_coding_type; in m2vd_parser_parse()
1545 mpp_frame_set_poc(frame, p->pic_head.temporal_reference); in m2vd_parser_parse()