Lines Matching refs:seq_head
190 ctx->seq_head.pIntra_table = ctx->qp_tab_sw_buf; in m2vd_parser_init_ctx()
191 ctx->seq_head.pInter_table = ctx->seq_head.pIntra_table + 64; in m2vd_parser_init_ctx()
601 ctx->seq_head.bit_rate_value |= (ctx->seq_ext_head.bit_rate_extension << 18); in m2vd_decode_seq_ext_header()
602 ctx->seq_head.vbv_buffer_size += (ctx->seq_ext_head.vbv_buffer_size_extension << 10); in m2vd_decode_seq_ext_header()
638 ctx->seq_head.pIntra_table[scanOrder[0][i]] = (unsigned char)m2vd_read_bits(bx, 8); in m2vd_decode_matrix_ext_header()
644 ctx->seq_head.pInter_table[scanOrder[0][i]] = (unsigned char)m2vd_read_bits(bx, 8); in m2vd_decode_matrix_ext_header()
959 RK_S32 pre_frame_rate_code = ctx->seq_head.frame_rate_code; in m2vd_decode_seq_header()
970 if (ctx->seq_head.decode_width && ctx->seq_head.decode_height) { in m2vd_decode_seq_header()
971 if (width != ctx->seq_head.decode_width || in m2vd_decode_seq_header()
972 height != ctx->seq_head.decode_height) in m2vd_decode_seq_header()
976 ctx->seq_head.decode_width = width; in m2vd_decode_seq_header()
977 ctx->seq_head.decode_height = height; in m2vd_decode_seq_header()
978 ctx->seq_head.aspect_ratio_information = m2vd_read_bits(bx, 4); in m2vd_decode_seq_header()
979 ctx->seq_head.frame_rate_code = m2vd_read_bits(bx, 4); in m2vd_decode_seq_header()
980 if (!ctx->frame_period || pre_frame_rate_code != ctx->seq_head.frame_rate_code) in m2vd_decode_seq_header()
981 ctx->frame_period = frame_period_Table_27M[ctx->seq_head.frame_rate_code]; in m2vd_decode_seq_header()
982 ctx->seq_head.bit_rate_value = m2vd_read_bits(bx, 18); in m2vd_decode_seq_header()
984 ctx->seq_head.vbv_buffer_size = m2vd_read_bits(bx, 10); in m2vd_decode_seq_header()
985 ctx->seq_head.constrained_parameters_flag = m2vd_read_bits(bx, 1); in m2vd_decode_seq_header()
986 ctx->seq_head.load_intra_quantizer_matrix = m2vd_read_bits(bx, 1); in m2vd_decode_seq_header()
987 if (ctx->seq_head.load_intra_quantizer_matrix) { in m2vd_decode_seq_header()
989 ctx->seq_head.pIntra_table[scanOrder[0][i]] = (unsigned char)m2vd_read_bits(bx, 8); in m2vd_decode_seq_header()
992 ctx->seq_head.pIntra_table[i] = intraDefaultQMatrix[i]; in m2vd_decode_seq_header()
995 ctx->seq_head.load_non_intra_quantizer_matrix = m2vd_read_bits(bx, 1); in m2vd_decode_seq_header()
996 if (ctx->seq_head.load_non_intra_quantizer_matrix) { in m2vd_decode_seq_header()
998 ctx->seq_head.pInter_table[scanOrder[0][i]] = (unsigned char)m2vd_read_bits(bx, 8); in m2vd_decode_seq_header()
1001 ctx->seq_head.pInter_table[i] = 16; in m2vd_decode_seq_header()
1311 … if (ctx->seq_head.aspect_ratio_information >= 0 && ctx->seq_head.aspect_ratio_information < 16) in m2vd_alloc_frame()
1312 … mpp_frame_set_sar(ctx->frame_cur->f, mpeg2_aspect[ctx->seq_head.aspect_ratio_information]); in m2vd_alloc_frame()
1351 dst->seq.decode_width = p->seq_head.decode_width; in m2vd_convert_to_dxva()
1352 dst->seq.decode_height = p->seq_head.decode_height; in m2vd_convert_to_dxva()
1353 dst->seq.aspect_ratio_information = p->seq_head.aspect_ratio_information; in m2vd_convert_to_dxva()
1354 dst->seq.frame_rate_code = p->seq_head.frame_rate_code; in m2vd_convert_to_dxva()
1355 dst->seq.bit_rate_value = p->seq_head.bit_rate_value; in m2vd_convert_to_dxva()
1356 dst->seq.vbv_buffer_size = p->seq_head.vbv_buffer_size; in m2vd_convert_to_dxva()
1357 dst->seq.constrained_parameters_flag = p->seq_head.constrained_parameters_flag; in m2vd_convert_to_dxva()
1358 dst->seq.load_intra_quantizer_matrix = p->seq_head.load_intra_quantizer_matrix; in m2vd_convert_to_dxva()
1359 dst->seq.load_non_intra_quantizer_matrix = p->seq_head.load_non_intra_quantizer_matrix; in m2vd_convert_to_dxva()
1507 if (p->seq_head.decode_width > 1920 || p->seq_head.decode_height > 1088) { in m2vd_parser_parse()
1512 p->mb_width = (p->seq_head.decode_width + 15) >> 4; in m2vd_parser_parse()
1513 p->mb_height = (p->seq_head.decode_height + 15) >> 4; in m2vd_parser_parse()