Lines Matching refs:ps_seq
479 dec_seq_params_t *ps_seq = NULL; in ih264d_parse_sps() local
568 ps_seq = ps_dec->pv_scratch_sps_pps; in ih264d_parse_sps()
569 *ps_seq = ps_dec->ps_sps[u1_seq_parameter_set_id]; in ih264d_parse_sps()
572 ps_dec->ps_cur_sps = ps_seq; in ih264d_parse_sps()
574 if((3 == ps_dec->i4_header_decoded) && (ps_seq->u1_profile_idc != u1_profile_idc)) in ih264d_parse_sps()
580 if((3 == ps_dec->i4_header_decoded) && (ps_seq->u1_level_idc != u1_level_idc)) in ih264d_parse_sps()
586 ps_seq->u1_profile_idc = u1_profile_idc; in ih264d_parse_sps()
587 ps_seq->u1_level_idc = u1_level_idc; in ih264d_parse_sps()
588 ps_seq->u1_seq_parameter_set_id = u1_seq_parameter_set_id; in ih264d_parse_sps()
593 ps_seq->i4_chroma_format_idc = 1; in ih264d_parse_sps()
594 ps_seq->i4_bit_depth_luma_minus8 = 0; in ih264d_parse_sps()
595 ps_seq->i4_bit_depth_chroma_minus8 = 0; in ih264d_parse_sps()
596 ps_seq->i4_qpprime_y_zero_transform_bypass_flag = 0; in ih264d_parse_sps()
597 ps_seq->i4_seq_scaling_matrix_present_flag = 0; in ih264d_parse_sps()
602 ps_seq->i4_chroma_format_idc = ih264d_uev(pu4_bitstrm_ofst, in ih264d_parse_sps()
606 if(ps_seq->i4_chroma_format_idc != 1) in ih264d_parse_sps()
612 ps_seq->i4_bit_depth_luma_minus8 = ih264d_uev(pu4_bitstrm_ofst, in ih264d_parse_sps()
615 if(ps_seq->i4_bit_depth_luma_minus8 != 0) in ih264d_parse_sps()
621 ps_seq->i4_bit_depth_chroma_minus8 = ih264d_uev(pu4_bitstrm_ofst, in ih264d_parse_sps()
624 if(ps_seq->i4_bit_depth_chroma_minus8 != 0) in ih264d_parse_sps()
630 ps_seq->i4_qpprime_y_zero_transform_bypass_flag = in ih264d_parse_sps()
633 if(ps_seq->i4_qpprime_y_zero_transform_bypass_flag != 0) in ih264d_parse_sps()
639 ps_seq->i4_seq_scaling_matrix_present_flag = in ih264d_parse_sps()
642 if(ps_seq->i4_seq_scaling_matrix_present_flag) in ih264d_parse_sps()
646 ps_seq->u1_seq_scaling_list_present_flag[i4_i] = in ih264d_parse_sps()
651 ps_seq->u1_use_default_scaling_matrix_flag[i4_i] = 0; in ih264d_parse_sps()
653 if(ps_seq->u1_seq_scaling_list_present_flag[i4_i]) in ih264d_parse_sps()
658 ps_seq->i2_scalinglist4x4[i4_i], in ih264d_parse_sps()
660 &ps_seq->u1_use_default_scaling_matrix_flag[i4_i], in ih264d_parse_sps()
666 ps_seq->i2_scalinglist8x8[i4_i - 6], in ih264d_parse_sps()
668 &ps_seq->u1_use_default_scaling_matrix_flag[i4_i], in ih264d_parse_sps()
683 ps_seq->u1_bits_in_frm_num = u4_temp; in ih264d_parse_sps()
685 (ps_seq->u1_bits_in_frm_num - 4)); in ih264d_parse_sps()
687 i2_max_frm_num = (1 << (ps_seq->u1_bits_in_frm_num)); in ih264d_parse_sps()
688 ps_seq->u2_u4_max_pic_num_minus1 = i2_max_frm_num - 1; in ih264d_parse_sps()
698 ps_seq->u1_pic_order_cnt_type = u4_temp; in ih264d_parse_sps()
699 COPYTHECONTEXT("SPS: pic_order_cnt_type",ps_seq->u1_pic_order_cnt_type); in ih264d_parse_sps()
701 ps_seq->u1_num_ref_frames_in_pic_order_cnt_cycle = 1; in ih264d_parse_sps()
702 if(ps_seq->u1_pic_order_cnt_type == 0) in ih264d_parse_sps()
709 ps_seq->u1_log2_max_pic_order_cnt_lsb_minus = u4_temp; in ih264d_parse_sps()
710 ps_seq->i4_max_pic_order_cntLsb = (1 << u4_temp); in ih264d_parse_sps()
713 else if(ps_seq->u1_pic_order_cnt_type == 1) in ih264d_parse_sps()
715 ps_seq->u1_delta_pic_order_always_zero_flag = ih264d_get_bit_h264( in ih264d_parse_sps()
718 ps_seq->u1_delta_pic_order_always_zero_flag); in ih264d_parse_sps()
720 ps_seq->i4_ofst_for_non_ref_pic = ih264d_sev(pu4_bitstrm_ofst, in ih264d_parse_sps()
723 ps_seq->i4_ofst_for_non_ref_pic); in ih264d_parse_sps()
725 ps_seq->i4_ofst_for_top_to_bottom_field = ih264d_sev( in ih264d_parse_sps()
728 ps_seq->i4_ofst_for_top_to_bottom_field); in ih264d_parse_sps()
733 ps_seq->u1_num_ref_frames_in_pic_order_cnt_cycle = u4_temp; in ih264d_parse_sps()
735 ps_seq->u1_num_ref_frames_in_pic_order_cnt_cycle); in ih264d_parse_sps()
737 for(i = 0; i < ps_seq->u1_num_ref_frames_in_pic_order_cnt_cycle; i++) in ih264d_parse_sps()
739 ps_seq->i4_ofst_for_ref_frame[i] = ih264d_sev( in ih264d_parse_sps()
742 ps_seq->i4_ofst_for_ref_frame[i]); in ih264d_parse_sps()
754 if((3 == ps_dec->i4_header_decoded) && (ps_seq->u1_num_ref_frames != u4_temp)) in ih264d_parse_sps()
760 ps_seq->u1_num_ref_frames = u4_temp; in ih264d_parse_sps()
761 COPYTHECONTEXT("SPS: num_ref_frames",ps_seq->u1_num_ref_frames); in ih264d_parse_sps()
763 ps_seq->u1_gaps_in_frame_num_value_allowed_flag = ih264d_get_bit_h264( in ih264d_parse_sps()
766 ps_seq->u1_gaps_in_frame_num_value_allowed_flag); in ih264d_parse_sps()
771 ps_seq->u2_frm_wd_in_mbs = 1 in ih264d_parse_sps()
774 ps_seq->u2_frm_wd_in_mbs - 1); in ih264d_parse_sps()
775 u2_pic_wd = (ps_seq->u2_frm_wd_in_mbs << 4); in ih264d_parse_sps()
779 ps_seq->u2_frm_ht_in_mbs = 1 + pic_height_in_map_units_minus1; in ih264d_parse_sps()
781 u2_pic_ht = (ps_seq->u2_frm_ht_in_mbs << 4); in ih264d_parse_sps()
786 ps_seq->u2_max_mb_addr = (ps_seq->u2_frm_wd_in_mbs in ih264d_parse_sps()
787 * ps_seq->u2_frm_ht_in_mbs) - 1; in ih264d_parse_sps()
789 ps_seq->u2_total_num_of_mbs = ps_seq->u2_max_mb_addr + 1; in ih264d_parse_sps()
791 ps_seq->u1_level_idc = ih264d_correct_level_idc( in ih264d_parse_sps()
792 u1_level_idc, ps_seq->u2_total_num_of_mbs); in ih264d_parse_sps()
795 ps_seq->u1_frame_mbs_only_flag = u1_frm; in ih264d_parse_sps()
802 ps_seq->u1_mb_aff_flag = ih264d_get_bit_h264(ps_bitstrm); in ih264d_parse_sps()
804 ps_seq->u1_mb_aff_flag); in ih264d_parse_sps()
808 ps_seq->u1_mb_aff_flag = 0; in ih264d_parse_sps()
810 ps_seq->u1_direct_8x8_inference_flag = ih264d_get_bit_h264(ps_bitstrm); in ih264d_parse_sps()
813 ps_seq->u1_direct_8x8_inference_flag); in ih264d_parse_sps()
840 ps_seq->u1_vui_parameters_present_flag = ih264d_get_bit_h264(ps_bitstrm); in ih264d_parse_sps()
842 ps_seq->u1_vui_parameters_present_flag); in ih264d_parse_sps()
877 u1_frm_mbs_flag = (1 == ps_seq->u1_frame_mbs_only_flag); in ih264d_parse_sps()
929 (1 == ps_seq->u1_vui_parameters_present_flag) && in ih264d_parse_sps()
930 (1 == ps_seq->s_vui.u1_bitstream_restriction_flag)) in ih264d_parse_sps()
932 u4_num_reorder_frames = ps_seq->s_vui.u4_num_reorder_frames; in ih264d_parse_sps()
938 if(1 == ps_seq->u1_vui_parameters_present_flag) in ih264d_parse_sps()
940 ret = ih264d_parse_vui_parametres(&ps_seq->s_vui, ps_bitstrm); in ih264d_parse_sps()
948 (1 == ps_seq->u1_vui_parameters_present_flag) && in ih264d_parse_sps()
949 (1 == ps_seq->s_vui.u1_bitstream_restriction_flag) && in ih264d_parse_sps()
950 (ps_seq->s_vui.u4_num_reorder_frames != u4_num_reorder_frames)) in ih264d_parse_sps()
968 ps_dec->u2_frm_wd_in_mbs = ps_seq->u2_frm_wd_in_mbs; in ih264d_parse_sps()
969 ps_dec->u2_frm_ht_in_mbs = ps_seq->u2_frm_ht_in_mbs; in ih264d_parse_sps()
980 ps_seq->u1_is_valid = TRUE; in ih264d_parse_sps()
981 ps_dec->ps_sps[u1_seq_parameter_set_id] = *ps_seq; in ih264d_parse_sps()