Lines Matching refs:ps_bitstrm
146 WORD32 ihevcd_parse_pred_wt_ofst(bitstrm_t *ps_bitstrm, in ihevcd_parse_pred_wt_ofst() argument
158 UEV_PARSE("luma_log2_weight_denom", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
163 SEV_PARSE("delta_chroma_log2_weight_denom", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
169 BITS_PARSE("luma_weight_l0_flag[ i ]", value, ps_bitstrm, 1); in ihevcd_parse_pred_wt_ofst()
179 BITS_PARSE("chroma_weight_l0_flag[ i ]", value, ps_bitstrm, 1); in ihevcd_parse_pred_wt_ofst()
196 SEV_PARSE("delta_luma_weight_l0[ i ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
201 SEV_PARSE("luma_offset_l0[ i ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
214 SEV_PARSE("delta_chroma_weight_l0[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
218 SEV_PARSE("delta_chroma_offset_l0[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
224 SEV_PARSE("delta_chroma_weight_l0[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
228 SEV_PARSE("delta_chroma_offset_l0[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
248 BITS_PARSE("luma_weight_l1_flag[ i ]", value, ps_bitstrm, 1); in ihevcd_parse_pred_wt_ofst()
256 BITS_PARSE("chroma_weight_l1_flag[ i ]", value, ps_bitstrm, 1); in ihevcd_parse_pred_wt_ofst()
272 SEV_PARSE("delta_luma_weight_l1[ i ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
277 SEV_PARSE("luma_offset_l1[ i ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
291 SEV_PARSE("delta_chroma_weight_l1[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
295 SEV_PARSE("delta_chroma_offset_l1[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
301 SEV_PARSE("delta_chroma_weight_l1[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
305 SEV_PARSE("delta_chroma_offset_l1[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
354 IHEVCD_ERROR_T ihevcd_short_term_ref_pic_set(bitstrm_t *ps_bitstrm, in ihevcd_short_term_ref_pic_set() argument
369 BITS_PARSE("inter_ref_pic_set_prediction_flag", value, ps_bitstrm, 1); in ihevcd_short_term_ref_pic_set()
385 UEV_PARSE("delta_idx_minus1", value, ps_bitstrm); in ihevcd_short_term_ref_pic_set()
397 BITS_PARSE("delta_rps_sign", value, ps_bitstrm, 1); in ihevcd_short_term_ref_pic_set()
400 UEV_PARSE("abs_delta_rps_minus1", value, ps_bitstrm); in ihevcd_short_term_ref_pic_set()
417 BITS_PARSE("used_by_curr_pic_flag", value, ps_bitstrm, 1); in ihevcd_short_term_ref_pic_set()
423 BITS_PARSE("use_delta_flag", value, ps_bitstrm, 1); in ihevcd_short_term_ref_pic_set()
494 UEV_PARSE("num_negative_pics", value, ps_bitstrm); in ihevcd_short_term_ref_pic_set()
500 UEV_PARSE("num_positive_pics", value, ps_bitstrm); in ihevcd_short_term_ref_pic_set()
513 UEV_PARSE("delta_poc_s0_minus1", value, ps_bitstrm); in ihevcd_short_term_ref_pic_set()
518 BITS_PARSE("used_by_curr_pic_s0_flag", value, ps_bitstrm, 1); in ihevcd_short_term_ref_pic_set()
527 UEV_PARSE("delta_poc_s1_minus1", value, ps_bitstrm); in ihevcd_short_term_ref_pic_set()
532 BITS_PARSE("used_by_curr_pic_s1_flag", value, ps_bitstrm, 1); in ihevcd_short_term_ref_pic_set()
543 static WORD32 ihevcd_parse_sub_layer_hrd_parameters(bitstrm_t *ps_bitstrm, in ihevcd_parse_sub_layer_hrd_parameters() argument
553 …E("bit_rate_value_minus1[ i ]", ps_sub_layer_hrd_params->au4_bit_rate_value_minus1[i], ps_bitstrm); in ihevcd_parse_sub_layer_hrd_parameters()
554 …E("cpb_size_value_minus1[ i ]", ps_sub_layer_hrd_params->au4_cpb_size_value_minus1[i], ps_bitstrm); in ihevcd_parse_sub_layer_hrd_parameters()
558 …_size_du_value_minus1[ i ]", ps_sub_layer_hrd_params->au4_cpb_size_du_value_minus1[i], ps_bitstrm); in ihevcd_parse_sub_layer_hrd_parameters()
559 …_rate_du_value_minus1[ i ]", ps_sub_layer_hrd_params->au4_bit_rate_du_value_minus1[i], ps_bitstrm); in ihevcd_parse_sub_layer_hrd_parameters()
561 BITS_PARSE("cbr_flag[ i ]", ps_sub_layer_hrd_params->au1_cbr_flag[i], ps_bitstrm, 1); in ihevcd_parse_sub_layer_hrd_parameters()
568 static WORD32 ihevcd_parse_hrd_parameters(bitstrm_t *ps_bitstrm, in ihevcd_parse_hrd_parameters() argument
596 …ARSE("nal_hrd_parameters_present_flag", ps_hrd->u1_nal_hrd_parameters_present_flag, ps_bitstrm, 1); in ihevcd_parse_hrd_parameters()
597 …ARSE("vcl_hrd_parameters_present_flag", ps_hrd->u1_vcl_hrd_parameters_present_flag, ps_bitstrm, 1); in ihevcd_parse_hrd_parameters()
601 …ARSE("sub_pic_cpb_params_present_flag", ps_hrd->u1_sub_pic_cpb_params_present_flag, ps_bitstrm, 1); in ihevcd_parse_hrd_parameters()
604 BITS_PARSE("tick_divisor_minus2", ps_hrd->u1_tick_divisor_minus2, ps_bitstrm, 8); in ihevcd_parse_hrd_parameters()
605 …_increment_length_minus1", ps_hrd->u1_du_cpb_removal_delay_increment_length_minus1, ps_bitstrm, 5); in ihevcd_parse_hrd_parameters()
606 …rams_in_pic_timing_sei_flag", ps_hrd->u1_sub_pic_cpb_params_in_pic_timing_sei_flag, ps_bitstrm, 1); in ihevcd_parse_hrd_parameters()
607 …("dpb_output_delay_du_length_minus1", ps_hrd->u1_dpb_output_delay_du_length_minus1, ps_bitstrm, 5); in ihevcd_parse_hrd_parameters()
610 BITS_PARSE("bit_rate_scale", ps_hrd->u4_bit_rate_scale, ps_bitstrm, 4); in ihevcd_parse_hrd_parameters()
611 BITS_PARSE("cpb_size_scale", ps_hrd->u4_cpb_size_scale, ps_bitstrm, 4); in ihevcd_parse_hrd_parameters()
613 BITS_PARSE("cpb_size_du_scale", ps_hrd->u4_cpb_size_du_scale, ps_bitstrm, 4); in ihevcd_parse_hrd_parameters()
615 …b_removal_delay_length_minus1", ps_hrd->u1_initial_cpb_removal_delay_length_minus1, ps_bitstrm, 5); in ihevcd_parse_hrd_parameters()
616 …au_cpb_removal_delay_length_minus1", ps_hrd->u1_au_cpb_removal_delay_length_minus1, ps_bitstrm, 5); in ihevcd_parse_hrd_parameters()
617 …_PARSE("dpb_output_delay_length_minus1", ps_hrd->u1_dpb_output_delay_length_minus1, ps_bitstrm, 5); in ihevcd_parse_hrd_parameters()
624 …RSE("fixed_pic_rate_general_flag[ i ]", ps_hrd->au1_fixed_pic_rate_general_flag[i], ps_bitstrm, 1); in ihevcd_parse_hrd_parameters()
632 …ixed_pic_rate_within_cvs_flag[ i ]", ps_hrd->au1_fixed_pic_rate_within_cvs_flag[i], ps_bitstrm, 1); in ihevcd_parse_hrd_parameters()
636 …elemental_duration_in_tc_minus1[ i ]", ps_hrd->au1_elemental_duration_in_tc_minus1[i], ps_bitstrm); in ihevcd_parse_hrd_parameters()
640 BITS_PARSE("low_delay_hrd_flag[ i ]", ps_hrd->au1_low_delay_hrd_flag[i], ps_bitstrm, 1); in ihevcd_parse_hrd_parameters()
644 UEV_PARSE("cpb_cnt_minus1[ i ]", ps_hrd->au1_cpb_cnt_minus1[i], ps_bitstrm); in ihevcd_parse_hrd_parameters()
650 ihevcd_parse_sub_layer_hrd_parameters(ps_bitstrm, in ihevcd_parse_hrd_parameters()
656 ihevcd_parse_sub_layer_hrd_parameters(ps_bitstrm, in ihevcd_parse_hrd_parameters()
666 static WORD32 ihevcd_parse_vui_parameters(bitstrm_t *ps_bitstrm, in ihevcd_parse_vui_parameters() argument
674 …_PARSE("aspect_ratio_info_present_flag", ps_vui->u1_aspect_ratio_info_present_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
681 BITS_PARSE("aspect_ratio_idc", ps_vui->u1_aspect_ratio_idc, ps_bitstrm, 8); in ihevcd_parse_vui_parameters()
749 BITS_PARSE("sar_width", u2_sar_width, ps_bitstrm, 16); in ihevcd_parse_vui_parameters()
750 BITS_PARSE("sar_height", u2_sar_height, ps_bitstrm, 16); in ihevcd_parse_vui_parameters()
762 BITS_PARSE("overscan_info_present_flag", ps_vui->u1_overscan_info_present_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
765 … BITS_PARSE("overscan_appropriate_flag", ps_vui->u1_overscan_appropriate_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
767 …_PARSE("video_signal_type_present_flag", ps_vui->u1_video_signal_type_present_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
777 BITS_PARSE("video_format", ps_vui->u1_video_format, ps_bitstrm, 3); in ihevcd_parse_vui_parameters()
778 BITS_PARSE("video_full_range_flag", ps_vui->u1_video_full_range_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
779 …ARSE("colour_description_present_flag", ps_vui->u1_colour_description_present_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
782 BITS_PARSE("colour_primaries", ps_vui->u1_colour_primaries, ps_bitstrm, 8); in ihevcd_parse_vui_parameters()
783 … BITS_PARSE("transfer_characteristics", ps_vui->u1_transfer_characteristics, ps_bitstrm, 8); in ihevcd_parse_vui_parameters()
784 BITS_PARSE("matrix_coeffs", ps_vui->u1_matrix_coefficients, ps_bitstrm, 8); in ihevcd_parse_vui_parameters()
788 …BITS_PARSE("chroma_loc_info_present_flag", ps_vui->u1_chroma_loc_info_present_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
793 …PARSE("chroma_sample_loc_type_top_field", ps_vui->u1_chroma_sample_loc_type_top_field, ps_bitstrm); in ihevcd_parse_vui_parameters()
794 …"chroma_sample_loc_type_bottom_field", ps_vui->u1_chroma_sample_loc_type_bottom_field, ps_bitstrm); in ihevcd_parse_vui_parameters()
797 …_PARSE("neutral_chroma_indication_flag", ps_vui->u1_neutral_chroma_indication_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
798 BITS_PARSE("field_seq_flag", ps_vui->u1_field_seq_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
799 …TS_PARSE("frame_field_info_present_flag", ps_vui->u1_frame_field_info_present_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
800 … BITS_PARSE("default_display_window_flag", ps_vui->u1_default_display_window_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
807 UEV_PARSE("def_disp_win_left_offset", ps_vui->u4_def_disp_win_left_offset, ps_bitstrm); in ihevcd_parse_vui_parameters()
808 UEV_PARSE("def_disp_win_right_offset", ps_vui->u4_def_disp_win_right_offset, ps_bitstrm); in ihevcd_parse_vui_parameters()
809 UEV_PARSE("def_disp_win_top_offset", ps_vui->u4_def_disp_win_top_offset, ps_bitstrm); in ihevcd_parse_vui_parameters()
810 UEV_PARSE("def_disp_win_bottom_offset", ps_vui->u4_def_disp_win_bottom_offset, ps_bitstrm); in ihevcd_parse_vui_parameters()
813 …BITS_PARSE("vui_timing_info_present_flag", ps_vui->u1_vui_timing_info_present_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
816 BITS_PARSE("vui_num_units_in_tick", ps_vui->u4_vui_num_units_in_tick, ps_bitstrm, 32); in ihevcd_parse_vui_parameters()
817 BITS_PARSE("vui_time_scale", ps_vui->u4_vui_time_scale, ps_bitstrm, 32); in ihevcd_parse_vui_parameters()
818 …("vui_poc_proportional_to_timing_flag", ps_vui->u1_poc_proportional_to_timing_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
820 …V_PARSE("vui_num_ticks_poc_diff_one_minus1", ps_vui->u1_num_ticks_poc_diff_one_minus1, ps_bitstrm); in ihevcd_parse_vui_parameters()
822 …ARSE("vui_hrd_parameters_present_flag", ps_vui->u1_vui_hrd_parameters_present_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
825 …ret = ihevcd_parse_hrd_parameters(ps_bitstrm, &ps_vui->s_vui_hrd_parameters, 1, sps_max_sub_layers… in ihevcd_parse_vui_parameters()
830 BITS_PARSE("bitstream_restriction_flag", ps_vui->u1_bitstream_restriction_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
841 … BITS_PARSE("tiles_fixed_structure_flag", ps_vui->u1_tiles_fixed_structure_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
842 …tors_over_pic_boundaries_flag", ps_vui->u1_motion_vectors_over_pic_boundaries_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
843 …TS_PARSE("restricted_ref_pic_lists_flag", ps_vui->u1_restricted_ref_pic_lists_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
845 … UEV_PARSE("min_spatial_segmentation_idc", ps_vui->u4_min_spatial_segmentation_idc, ps_bitstrm); in ihevcd_parse_vui_parameters()
846 UEV_PARSE("max_bytes_per_pic_denom", ps_vui->u1_max_bytes_per_pic_denom, ps_bitstrm); in ihevcd_parse_vui_parameters()
847 UEV_PARSE("max_bits_per_min_cu_denom", ps_vui->u1_max_bits_per_mincu_denom, ps_bitstrm); in ihevcd_parse_vui_parameters()
848 … UEV_PARSE("log2_max_mv_length_horizontal", ps_vui->u1_log2_max_mv_length_horizontal, ps_bitstrm); in ihevcd_parse_vui_parameters()
849 … UEV_PARSE("log2_max_mv_length_vertical", ps_vui->u1_log2_max_mv_length_vertical, ps_bitstrm); in ihevcd_parse_vui_parameters()
882 static IHEVCD_ERROR_T ihevcd_parse_profile_tier_level_layer(bitstrm_t *ps_bitstrm, in ihevcd_parse_profile_tier_level_layer() argument
889 BITS_PARSE("XXX_profile_space[]", value, ps_bitstrm, 2); in ihevcd_parse_profile_tier_level_layer()
892 BITS_PARSE("XXX_tier_flag[]", value, ps_bitstrm, 1); in ihevcd_parse_profile_tier_level_layer()
895 BITS_PARSE("XXX_profile_idc[]", value, ps_bitstrm, 5); in ihevcd_parse_profile_tier_level_layer()
900 BITS_PARSE("XXX_profile_compatibility_flag[][j]", value, ps_bitstrm, 1); in ihevcd_parse_profile_tier_level_layer()
904 BITS_PARSE("general_progressive_source_flag", value, ps_bitstrm, 1); in ihevcd_parse_profile_tier_level_layer()
907 BITS_PARSE("general_interlaced_source_flag", value, ps_bitstrm, 1); in ihevcd_parse_profile_tier_level_layer()
910 BITS_PARSE("general_non_packed_constraint_flag", value, ps_bitstrm, 1); in ihevcd_parse_profile_tier_level_layer()
913 BITS_PARSE("general_frame_only_constraint_flag", value, ps_bitstrm, 1); in ihevcd_parse_profile_tier_level_layer()
916 BITS_PARSE("XXX_reserved_zero_44bits[0..15]", value, ps_bitstrm, 16); in ihevcd_parse_profile_tier_level_layer()
918 BITS_PARSE("XXX_reserved_zero_44bits[16..31]", value, ps_bitstrm, 16); in ihevcd_parse_profile_tier_level_layer()
920 BITS_PARSE("XXX_reserved_zero_44bits[32..43]", value, ps_bitstrm, 12); in ihevcd_parse_profile_tier_level_layer()
955 static IHEVCD_ERROR_T ihevcd_profile_tier_level(bitstrm_t *ps_bitstrm, in ihevcd_profile_tier_level() argument
966 ret = ihevcd_parse_profile_tier_level_layer(ps_bitstrm, &ps_ptl->s_ptl_gen); in ihevcd_profile_tier_level()
973 BITS_PARSE("general_level_idc", value, ps_bitstrm, 8); in ihevcd_profile_tier_level()
979 BITS_PARSE("sub_layer_profile_present_flag[i]", value, ps_bitstrm, 1); in ihevcd_profile_tier_level()
982 BITS_PARSE("sub_layer_level_present_flag[i]", value, ps_bitstrm, 1); in ihevcd_profile_tier_level()
990 BITS_PARSE("reserved_zero_2bits", value, ps_bitstrm, 2); in ihevcd_profile_tier_level()
998 ret = ihevcd_parse_profile_tier_level_layer(ps_bitstrm, in ihevcd_profile_tier_level()
1003 BITS_PARSE("sub_layer_level_idc[i]", value, ps_bitstrm, 8); in ihevcd_profile_tier_level()
1042 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm; in ihevcd_scaling_list_data() local
1053 BITS_PARSE("scaling_list_pred_mode_flag", scaling_list_pred_mode_flag, ps_bitstrm, 1); in ihevcd_scaling_list_data()
1062 ps_bitstrm); in ihevcd_scaling_list_data()
1077 ps_bitstrm); in ihevcd_scaling_list_data()
1089 scaling_list_delta_coef, ps_bitstrm); in ihevcd_scaling_list_data()
1102 scaling_list_delta_coef, ps_bitstrm); in ihevcd_scaling_list_data()
1122 scaling_list_delta_coef, ps_bitstrm); in ihevcd_scaling_list_data()
1175 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm; in ihevcd_parse_vps() local
1176 BITS_PARSE("vps_video_parameter_set_id", value, ps_bitstrm, 4); in ihevcd_parse_vps()
1190 BITS_PARSE("vps_reserved_three_2bits", value, ps_bitstrm, 2); in ihevcd_parse_vps()
1193 BITS_PARSE("vps_max_layers_minus1", value, ps_bitstrm, 6); in ihevcd_parse_vps()
1198 BITS_PARSE("vps_max_sub_layers_minus1", value, ps_bitstrm, 3); in ihevcd_parse_vps()
1203 BITS_PARSE("vps_temporal_id_nesting_flag", value, ps_bitstrm, 1); in ihevcd_parse_vps()
1206 BITS_PARSE("vps_reserved_ffff_16bits", value, ps_bitstrm, 16); in ihevcd_parse_vps()
1209 ret = ihevcd_profile_tier_level(ps_bitstrm, &(ps_vps->s_ptl), in ihevcd_parse_vps()
1212 BITS_PARSE("vps_sub_layer_ordering_info_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_vps()
1218 UEV_PARSE("vps_max_dec_pic_buffering[i]", value, ps_bitstrm); in ihevcd_parse_vps()
1222 UEV_PARSE("vps_num_reorder_pics[i]", value, ps_bitstrm); in ihevcd_parse_vps()
1225 UEV_PARSE("vps_max_latency_increase[i]", value, ps_bitstrm); in ihevcd_parse_vps()
1231 BITS_PARSE("vps_max_layer_id", value, ps_bitstrm, 6); in ihevcd_parse_vps()
1234 UEV_PARSE("vps_num_layer_sets_minus1", value, ps_bitstrm); in ihevcd_parse_vps()
1237 BITS_PARSE("vps_timing_info_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_vps()
1279 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm; in ihevcd_parse_sps() local
1283 BITS_PARSE("video_parameter_set_id", value, ps_bitstrm, 4); in ihevcd_parse_sps()
1287 BITS_PARSE("sps_max_sub_layers_minus1", value, ps_bitstrm, 3); in ihevcd_parse_sps()
1291 BITS_PARSE("sps_temporal_id_nesting_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1295 ret = ihevcd_profile_tier_level(ps_bitstrm, &(s_ptl), 1, in ihevcd_parse_sps()
1298 UEV_PARSE("seq_parameter_set_id", value, ps_bitstrm); in ihevcd_parse_sps()
1324 UEV_PARSE("chroma_format_idc", value, ps_bitstrm); in ihevcd_parse_sps()
1335 BITS_PARSE("separate_colour_plane_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1343 UEV_PARSE("pic_width_in_luma_samples", value, ps_bitstrm); in ihevcd_parse_sps()
1346 UEV_PARSE("pic_height_in_luma_samples", value, ps_bitstrm); in ihevcd_parse_sps()
1352 BITS_PARSE("pic_cropping_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1358 UEV_PARSE("pic_crop_left_offset", value, ps_bitstrm); in ihevcd_parse_sps()
1365 UEV_PARSE("pic_crop_right_offset", value, ps_bitstrm); in ihevcd_parse_sps()
1372 UEV_PARSE("pic_crop_top_offset", value, ps_bitstrm); in ihevcd_parse_sps()
1379 UEV_PARSE("pic_crop_bottom_offset", value, ps_bitstrm); in ihevcd_parse_sps()
1395 UEV_PARSE("bit_depth_luma_minus8", value, ps_bitstrm); in ihevcd_parse_sps()
1399 UEV_PARSE("bit_depth_chroma_minus8", value, ps_bitstrm); in ihevcd_parse_sps()
1403 UEV_PARSE("log2_max_pic_order_cnt_lsb_minus4", value, ps_bitstrm); in ihevcd_parse_sps()
1408 BITS_PARSE("sps_sub_layer_ordering_info_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1415 UEV_PARSE("max_dec_pic_buffering", value, ps_bitstrm); in ihevcd_parse_sps()
1422 UEV_PARSE("num_reorder_pics", value, ps_bitstrm); in ihevcd_parse_sps()
1429 UEV_PARSE("max_latency_increase", value, ps_bitstrm); in ihevcd_parse_sps()
1461 UEV_PARSE("log2_min_coding_block_size_minus3", value, ps_bitstrm); in ihevcd_parse_sps()
1468 UEV_PARSE("log2_diff_max_min_coding_block_size", value, ps_bitstrm); in ihevcd_parse_sps()
1489 UEV_PARSE("log2_min_transform_block_size_minus2", value, ps_bitstrm); in ihevcd_parse_sps()
1500 UEV_PARSE("log2_diff_max_min_transform_block_size", value, ps_bitstrm); in ihevcd_parse_sps()
1534 UEV_PARSE("max_transform_hierarchy_depth_inter", value, ps_bitstrm); in ihevcd_parse_sps()
1541 UEV_PARSE("max_transform_hierarchy_depth_intra", value, ps_bitstrm); in ihevcd_parse_sps()
1549 BITS_PARSE("scaling_list_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1555 BITS_PARSE("sps_scaling_list_data_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1566 BITS_PARSE("asymmetric_motion_partitions_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1569 BITS_PARSE("sample_adaptive_offset_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1572 BITS_PARSE("pcm_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1577 BITS_PARSE("pcm_sample_bit_depth_luma", value, ps_bitstrm, 4); in ihevcd_parse_sps()
1580 BITS_PARSE("pcm_sample_bit_depth_chroma", value, ps_bitstrm, 4); in ihevcd_parse_sps()
1583 UEV_PARSE("log2_min_pcm_coding_block_size_minus3", value, ps_bitstrm); in ihevcd_parse_sps()
1586 UEV_PARSE("log2_diff_max_min_pcm_coding_block_size", value, ps_bitstrm); in ihevcd_parse_sps()
1588 BITS_PARSE("pcm_loop_filter_disable_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1592 UEV_PARSE("num_short_term_ref_pic_sets", value, ps_bitstrm); in ihevcd_parse_sps()
1601 …ret = ihevcd_short_term_ref_pic_set(ps_bitstrm, &ps_sps->as_stref_picset[0], ps_sps->i1_num_short_… in ihevcd_parse_sps()
1608 BITS_PARSE("long_term_ref_pics_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1613 UEV_PARSE("num_long_term_ref_pics_sps", value, ps_bitstrm); in ihevcd_parse_sps()
1622 …BITS_PARSE("lt_ref_pic_poc_lsb_sps[ i ]", value, ps_bitstrm, ps_sps->i1_log2_max_pic_order_cnt_lsb… in ihevcd_parse_sps()
1625 BITS_PARSE("used_by_curr_pic_lt_sps_flag[ i ]", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1630 BITS_PARSE("sps_temporal_mvp_enable_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1634 BITS_PARSE("sps_strong_intra_smoothing_enable_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1637 BITS_PARSE("vui_parameters_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1642 ret = ihevcd_parse_vui_parameters(ps_bitstrm, in ihevcd_parse_sps()
1648 BITS_PARSE("sps_extension_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1650 if((UWORD8 *)ps_bitstrm->pu4_buf > ps_bitstrm->pu1_buf_max) in ihevcd_parse_sps()
1853 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm; in ihevcd_parse_pps() local
1859 UEV_PARSE("pic_parameter_set_id", value, ps_bitstrm); in ihevcd_parse_pps()
1875 UEV_PARSE("seq_parameter_set_id", value, ps_bitstrm); in ihevcd_parse_pps()
1895 BITS_PARSE("dependent_slices_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1898 BITS_PARSE("output_flag_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1901 BITS_PARSE("num_extra_slice_header_bits", value, ps_bitstrm, 3); in ihevcd_parse_pps()
1905 BITS_PARSE("sign_data_hiding_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1908 BITS_PARSE("cabac_init_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1911 UEV_PARSE("num_ref_idx_l0_default_active_minus1", value, ps_bitstrm); in ihevcd_parse_pps()
1914 UEV_PARSE("num_ref_idx_l1_default_active_minus1", value, ps_bitstrm); in ihevcd_parse_pps()
1917 SEV_PARSE("pic_init_qp_minus26", value, ps_bitstrm); in ihevcd_parse_pps()
1920 BITS_PARSE("constrained_intra_pred_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1923 BITS_PARSE("transform_skip_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1926 BITS_PARSE("cu_qp_delta_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1931 UEV_PARSE("diff_cu_qp_delta_depth", value, ps_bitstrm); in ihevcd_parse_pps()
1940 SEV_PARSE("cb_qp_offset", value, ps_bitstrm); in ihevcd_parse_pps()
1944 SEV_PARSE("cr_qp_offset", value, ps_bitstrm); in ihevcd_parse_pps()
1948 BITS_PARSE("slicelevel_chroma_qp_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1951 BITS_PARSE("weighted_pred_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1954 BITS_PARSE("weighted_bipred_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1957 BITS_PARSE("transquant_bypass_enable_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1960 BITS_PARSE("tiles_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1992 BITS_PARSE("entropy_coding_sync_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2004 UEV_PARSE("num_tile_columns_minus1", value, ps_bitstrm); in ihevcd_parse_pps()
2007 UEV_PARSE("num_tile_rows_minus1", value, ps_bitstrm); in ihevcd_parse_pps()
2016 BITS_PARSE("uniform_spacing_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2034 UEV_PARSE("column_width_minus1[ i ]", value, ps_bitstrm); in ihevcd_parse_pps()
2074 UEV_PARSE("row_height_minus1[ i ]", value, ps_bitstrm); in ihevcd_parse_pps()
2107 BITS_PARSE("loop_filter_across_tiles_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2125 BITS_PARSE("loop_filter_across_slices_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2128 BITS_PARSE("deblocking_filter_control_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2140 BITS_PARSE("deblocking_filter_override_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2143 BITS_PARSE("pic_disable_deblocking_filter_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2149 SEV_PARSE("pps_beta_offset_div2", value, ps_bitstrm); in ihevcd_parse_pps()
2152 SEV_PARSE("pps_tc_offset_div2", value, ps_bitstrm); in ihevcd_parse_pps()
2158 BITS_PARSE("pps_scaling_list_data_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2167 BITS_PARSE("lists_modification_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2169 UEV_PARSE("log2_parallel_merge_level_minus2", value, ps_bitstrm); in ihevcd_parse_pps()
2172 BITS_PARSE("slice_header_extension_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2175 BITS_PARSE("pps_extension_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2177 if((UWORD8 *)ps_bitstrm->pu4_buf > ps_bitstrm->pu1_buf_max) in ihevcd_parse_pps()
2222 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_buffering_period_sei() local
2237 UEV_PARSE("bp_seq_parameter_set_id", value, ps_bitstrm); in ihevcd_parse_buffering_period_sei()
2242 BITS_PARSE("irap_cpb_params_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_buffering_period_sei()
2250 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2257 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2268 BITS_PARSE("concatenation_flag", value, ps_bitstrm, 1); in ihevcd_parse_buffering_period_sei()
2273 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2286 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2294 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2305 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2313 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2330 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2338 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2349 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2357 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2372 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_pic_timing_sei() local
2386 BITS_PARSE("pic_struct", value, ps_bitstrm, 4); in ihevcd_parse_pic_timing_sei()
2389 BITS_PARSE("source_scan_type", value, ps_bitstrm, 2); in ihevcd_parse_pic_timing_sei()
2392 BITS_PARSE("duplicate_flag", value, ps_bitstrm, 1); in ihevcd_parse_pic_timing_sei()
2408 BITS_PARSE("au_cpb_removal_delay_minus1", value, ps_bitstrm, in ihevcd_parse_pic_timing_sei()
2412 BITS_PARSE("pic_dpb_output_delay", value, ps_bitstrm, in ihevcd_parse_pic_timing_sei()
2418 BITS_PARSE("pic_dpb_output_du_delay", value, ps_bitstrm, in ihevcd_parse_pic_timing_sei()
2429 UEV_PARSE("num_decoding_units_minus1", value, ps_bitstrm); in ihevcd_parse_pic_timing_sei()
2438 BITS_PARSE("du_common_cpb_removal_delay_flag", value, ps_bitstrm, 1); in ihevcd_parse_pic_timing_sei()
2445 ps_bitstrm, in ihevcd_parse_pic_timing_sei()
2454 UEV_PARSE("num_nalus_in_du_minus1", value, ps_bitstrm); in ihevcd_parse_pic_timing_sei()
2462 ps_bitstrm, in ihevcd_parse_pic_timing_sei()
2478 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_time_code_sei() local
2486 BITS_PARSE("num_clock_ts", value, ps_bitstrm, 2); in ihevcd_parse_time_code_sei()
2491 BITS_PARSE("clock_timestamp_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2496 BITS_PARSE("units_field_based_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2499 BITS_PARSE("counting_type[i]", value, ps_bitstrm, 5); in ihevcd_parse_time_code_sei()
2502 BITS_PARSE("full_timestamp_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2505 BITS_PARSE("discontinuity_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2508 BITS_PARSE("cnt_dropped_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2511 BITS_PARSE("n_frames[i]", value, ps_bitstrm, 9); in ihevcd_parse_time_code_sei()
2516 BITS_PARSE("seconds_value[i]", value, ps_bitstrm, 6); in ihevcd_parse_time_code_sei()
2519 BITS_PARSE("minutes_value[i]", value, ps_bitstrm, 6); in ihevcd_parse_time_code_sei()
2522 BITS_PARSE("hours_value[i]", value, ps_bitstrm, 5); in ihevcd_parse_time_code_sei()
2527 BITS_PARSE("seconds_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2532 BITS_PARSE("seconds_value[i]", value, ps_bitstrm, 6); in ihevcd_parse_time_code_sei()
2535 BITS_PARSE("minutes_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2540 BITS_PARSE("minutes_value[i]", value, ps_bitstrm, 6); in ihevcd_parse_time_code_sei()
2543 BITS_PARSE("hours_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2548 BITS_PARSE("hours_value[i]", value, ps_bitstrm, 5); in ihevcd_parse_time_code_sei()
2555 BITS_PARSE("time_offset_length[i]", value, ps_bitstrm, 5); in ihevcd_parse_time_code_sei()
2560 BITS_PARSE("time_offset_value[i]", value, ps_bitstrm, in ihevcd_parse_time_code_sei()
2577 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_mastering_disp_params_sei() local
2588 BITS_PARSE("display_primaries_x[c]", value, ps_bitstrm, 16); in ihevcd_parse_mastering_disp_params_sei()
2591 BITS_PARSE("display_primaries_y[c]", value, ps_bitstrm, 16); in ihevcd_parse_mastering_disp_params_sei()
2595 BITS_PARSE("white_point_x", value, ps_bitstrm, 16); in ihevcd_parse_mastering_disp_params_sei()
2598 BITS_PARSE("white_point_y", value, ps_bitstrm, 16); in ihevcd_parse_mastering_disp_params_sei()
2601 BITS_PARSE("max_display_mastering_luminance", value, ps_bitstrm, 32); in ihevcd_parse_mastering_disp_params_sei()
2604 BITS_PARSE("min_display_mastering_luminance", value, ps_bitstrm, 32); in ihevcd_parse_mastering_disp_params_sei()
2614 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_user_data_registered_itu_t_t35() local
2634 BITS_PARSE("itu_t_t35_country_code", value, ps_bitstrm, 8); in ihevcd_parse_user_data_registered_itu_t_t35()
2643 BITS_PARSE("itu_t_t35_country_code_extension_byte", value, ps_bitstrm, in ihevcd_parse_user_data_registered_itu_t_t35()
2653 BITS_PARSE("itu_t_t35_payload_byte", value, ps_bitstrm, 8); in ihevcd_parse_user_data_registered_itu_t_t35()
2669 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_sei_payload() local
2718 ihevcd_bits_flush(ps_bitstrm, 4 * 8); in ihevcd_parse_sei_payload()
2721 ihevcd_bits_flush(ps_bitstrm, (u4_payload_size - i * 4) * 8); in ihevcd_parse_sei_payload()
2733 ihevcd_bits_flush(ps_bitstrm, 8); in ihevcd_parse_sei_payload()
2748 ihevcd_bits_flush(ps_bitstrm, 4 * 8); in ihevcd_parse_sei_payload()
2751 ihevcd_bits_flush(ps_bitstrm, (u4_payload_size - i * 4) * 8); in ihevcd_parse_sei_payload()
2763 ihevcd_bits_flush(ps_bitstrm, 8); in ihevcd_parse_sei_payload()
2778 payload_bits_remaining = ihevcd_bits_num_bits_remaining(ps_bitstrm); in ihevcd_parse_sei_payload()
2792 u4_reserved_payload_extension_data, ps_bitstrm, 1); in ihevcd_parse_sei_payload()
2796 final_bits = ihevcd_bits_nxt(ps_bitstrm, payload_bits_remaining); in ihevcd_parse_sei_payload()
2807 u4_reserved_payload_extension_data, ps_bitstrm, 1); in ihevcd_parse_sei_payload()
2811 BITS_PARSE("payload_bit_equal_to_one", u4_dummy, ps_bitstrm, 1); in ihevcd_parse_sei_payload()
2815 BITS_PARSE("payload_bit_equal_to_zero", u4_dummy, ps_bitstrm, 1); in ihevcd_parse_sei_payload()
2871 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_sei() local
2874 u4_bits_left = ihevcd_bits_num_bits_remaining(ps_bitstrm); in ihevcd_parse_sei()
2878 while(ihevcd_bits_nxt(ps_bitstrm, 8) == 0xFF) in ihevcd_parse_sei()
2880 ihevcd_bits_flush(ps_bitstrm, 8); /* equal to 0xFF */ in ihevcd_parse_sei()
2884 BITS_PARSE("last_payload_type_byte", value, ps_bitstrm, 8); in ihevcd_parse_sei()
2889 while(ihevcd_bits_nxt(ps_bitstrm, 8) == 0xFF) in ihevcd_parse_sei()
2891 ihevcd_bits_flush(ps_bitstrm, 8); /* equal to 0xFF */ in ihevcd_parse_sei()
2895 BITS_PARSE("last_payload_size_byte", value, ps_bitstrm, 8); in ihevcd_parse_sei()
2899 u4_bits_left = ihevcd_bits_num_bits_remaining(ps_bitstrm); in ihevcd_parse_sei()
2905 u4_bits_left = ihevcd_bits_num_bits_remaining(ps_bitstrm); in ihevcd_parse_sei()