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()
1325 UEV_PARSE("chroma_format_idc", value, ps_bitstrm); in ihevcd_parse_sps()
1336 BITS_PARSE("separate_colour_plane_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1344 UEV_PARSE("pic_width_in_luma_samples", value, ps_bitstrm); in ihevcd_parse_sps()
1347 UEV_PARSE("pic_height_in_luma_samples", value, ps_bitstrm); in ihevcd_parse_sps()
1359 BITS_PARSE("pic_cropping_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1365 UEV_PARSE("pic_crop_left_offset", value, ps_bitstrm); in ihevcd_parse_sps()
1372 UEV_PARSE("pic_crop_right_offset", value, ps_bitstrm); in ihevcd_parse_sps()
1379 UEV_PARSE("pic_crop_top_offset", value, ps_bitstrm); in ihevcd_parse_sps()
1386 UEV_PARSE("pic_crop_bottom_offset", value, ps_bitstrm); in ihevcd_parse_sps()
1402 UEV_PARSE("bit_depth_luma_minus8", value, ps_bitstrm); in ihevcd_parse_sps()
1406 UEV_PARSE("bit_depth_chroma_minus8", value, ps_bitstrm); in ihevcd_parse_sps()
1410 UEV_PARSE("log2_max_pic_order_cnt_lsb_minus4", value, ps_bitstrm); in ihevcd_parse_sps()
1413 BITS_PARSE("sps_sub_layer_ordering_info_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1420 UEV_PARSE("max_dec_pic_buffering", value, ps_bitstrm); in ihevcd_parse_sps()
1428 UEV_PARSE("num_reorder_pics", value, ps_bitstrm); in ihevcd_parse_sps()
1436 UEV_PARSE("max_latency_increase", value, ps_bitstrm); in ihevcd_parse_sps()
1460 UEV_PARSE("log2_min_coding_block_size_minus3", value, ps_bitstrm); in ihevcd_parse_sps()
1463 UEV_PARSE("log2_diff_max_min_coding_block_size", value, ps_bitstrm); in ihevcd_parse_sps()
1468 UEV_PARSE("log2_min_transform_block_size_minus2", value, ps_bitstrm); in ihevcd_parse_sps()
1471 UEV_PARSE("log2_diff_max_min_transform_block_size", value, ps_bitstrm); in ihevcd_parse_sps()
1499 UEV_PARSE("max_transform_hierarchy_depth_inter", value, ps_bitstrm); in ihevcd_parse_sps()
1502 UEV_PARSE("max_transform_hierarchy_depth_intra", value, ps_bitstrm); in ihevcd_parse_sps()
1506 BITS_PARSE("scaling_list_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1512 BITS_PARSE("sps_scaling_list_data_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1523 BITS_PARSE("asymmetric_motion_partitions_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1526 BITS_PARSE("sample_adaptive_offset_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1529 BITS_PARSE("pcm_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1534 BITS_PARSE("pcm_sample_bit_depth_luma", value, ps_bitstrm, 4); in ihevcd_parse_sps()
1537 BITS_PARSE("pcm_sample_bit_depth_chroma", value, ps_bitstrm, 4); in ihevcd_parse_sps()
1540 UEV_PARSE("log2_min_pcm_coding_block_size_minus3", value, ps_bitstrm); in ihevcd_parse_sps()
1543 UEV_PARSE("log2_diff_max_min_pcm_coding_block_size", value, ps_bitstrm); in ihevcd_parse_sps()
1545 BITS_PARSE("pcm_loop_filter_disable_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1549 UEV_PARSE("num_short_term_ref_pic_sets", value, ps_bitstrm); in ihevcd_parse_sps()
1555 …ihevcd_short_term_ref_pic_set(ps_bitstrm, &ps_sps->as_stref_picset[0], ps_sps->i1_num_short_term_r… in ihevcd_parse_sps()
1557 BITS_PARSE("long_term_ref_pics_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1562 UEV_PARSE("num_long_term_ref_pics_sps", value, ps_bitstrm); in ihevcd_parse_sps()
1567 …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()
1570 BITS_PARSE("used_by_curr_pic_lt_sps_flag[ i ]", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1575 BITS_PARSE("sps_temporal_mvp_enable_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1579 BITS_PARSE("sps_strong_intra_smoothing_enable_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1582 BITS_PARSE("vui_parameters_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1587 ret = ihevcd_parse_vui_parameters(ps_bitstrm, in ihevcd_parse_sps()
1593 BITS_PARSE("sps_extension_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1595 if((UWORD8 *)ps_bitstrm->pu4_buf > ps_bitstrm->pu1_buf_max) in ihevcd_parse_sps()
1779 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm; in ihevcd_parse_pps() local
1785 UEV_PARSE("pic_parameter_set_id", value, ps_bitstrm); in ihevcd_parse_pps()
1801 UEV_PARSE("seq_parameter_set_id", value, ps_bitstrm); in ihevcd_parse_pps()
1821 BITS_PARSE("dependent_slices_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1824 BITS_PARSE("output_flag_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1827 BITS_PARSE("num_extra_slice_header_bits", value, ps_bitstrm, 3); in ihevcd_parse_pps()
1831 BITS_PARSE("sign_data_hiding_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1834 BITS_PARSE("cabac_init_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1837 UEV_PARSE("num_ref_idx_l0_default_active_minus1", value, ps_bitstrm); in ihevcd_parse_pps()
1840 UEV_PARSE("num_ref_idx_l1_default_active_minus1", value, ps_bitstrm); in ihevcd_parse_pps()
1843 SEV_PARSE("pic_init_qp_minus26", value, ps_bitstrm); in ihevcd_parse_pps()
1846 BITS_PARSE("constrained_intra_pred_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1849 BITS_PARSE("transform_skip_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1852 BITS_PARSE("cu_qp_delta_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1857 UEV_PARSE("diff_cu_qp_delta_depth", value, ps_bitstrm); in ihevcd_parse_pps()
1866 SEV_PARSE("cb_qp_offset", value, ps_bitstrm); in ihevcd_parse_pps()
1870 SEV_PARSE("cr_qp_offset", value, ps_bitstrm); in ihevcd_parse_pps()
1874 BITS_PARSE("slicelevel_chroma_qp_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1877 BITS_PARSE("weighted_pred_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1880 BITS_PARSE("weighted_bipred_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1883 BITS_PARSE("transquant_bypass_enable_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1886 BITS_PARSE("tiles_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1889 BITS_PARSE("entropy_coding_sync_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1901 UEV_PARSE("num_tile_columns_minus1", value, ps_bitstrm); in ihevcd_parse_pps()
1904 UEV_PARSE("num_tile_rows_minus1", value, ps_bitstrm); in ihevcd_parse_pps()
1913 BITS_PARSE("uniform_spacing_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
1931 UEV_PARSE("column_width_minus1[ i ]", value, ps_bitstrm); in ihevcd_parse_pps()
1967 UEV_PARSE("row_height_minus1[ i ]", value, ps_bitstrm); in ihevcd_parse_pps()
1996 BITS_PARSE("loop_filter_across_tiles_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2014 BITS_PARSE("loop_filter_across_slices_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2017 BITS_PARSE("deblocking_filter_control_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2029 BITS_PARSE("deblocking_filter_override_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2032 BITS_PARSE("pic_disable_deblocking_filter_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2038 SEV_PARSE("pps_beta_offset_div2", value, ps_bitstrm); in ihevcd_parse_pps()
2041 SEV_PARSE("pps_tc_offset_div2", value, ps_bitstrm); in ihevcd_parse_pps()
2047 BITS_PARSE("pps_scaling_list_data_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2056 BITS_PARSE("lists_modification_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2058 UEV_PARSE("log2_parallel_merge_level_minus2", value, ps_bitstrm); in ihevcd_parse_pps()
2061 BITS_PARSE("slice_header_extension_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2064 BITS_PARSE("pps_extension_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2066 if((UWORD8 *)ps_bitstrm->pu4_buf > ps_bitstrm->pu1_buf_max) in ihevcd_parse_pps()
2111 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_buffering_period_sei() local
2126 UEV_PARSE("bp_seq_parameter_set_id", value, ps_bitstrm); in ihevcd_parse_buffering_period_sei()
2131 BITS_PARSE("irap_cpb_params_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_buffering_period_sei()
2139 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2146 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2157 BITS_PARSE("concatenation_flag", value, ps_bitstrm, 1); in ihevcd_parse_buffering_period_sei()
2162 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2175 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2183 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2194 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2202 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2219 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2227 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2238 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2246 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2261 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_pic_timing_sei() local
2275 BITS_PARSE("pic_struct", value, ps_bitstrm, 4); in ihevcd_parse_pic_timing_sei()
2278 BITS_PARSE("source_scan_type", value, ps_bitstrm, 2); in ihevcd_parse_pic_timing_sei()
2281 BITS_PARSE("duplicate_flag", value, ps_bitstrm, 1); in ihevcd_parse_pic_timing_sei()
2297 BITS_PARSE("au_cpb_removal_delay_minus1", value, ps_bitstrm, in ihevcd_parse_pic_timing_sei()
2301 BITS_PARSE("pic_dpb_output_delay", value, ps_bitstrm, in ihevcd_parse_pic_timing_sei()
2307 BITS_PARSE("pic_dpb_output_du_delay", value, ps_bitstrm, in ihevcd_parse_pic_timing_sei()
2315 UEV_PARSE("num_decoding_units_minus1", value, ps_bitstrm); in ihevcd_parse_pic_timing_sei()
2318 BITS_PARSE("du_common_cpb_removal_delay_flag", value, ps_bitstrm, 1); in ihevcd_parse_pic_timing_sei()
2325 ps_bitstrm, in ihevcd_parse_pic_timing_sei()
2334 UEV_PARSE("num_nalus_in_du_minus1", value, ps_bitstrm); in ihevcd_parse_pic_timing_sei()
2342 ps_bitstrm, in ihevcd_parse_pic_timing_sei()
2358 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_time_code_sei() local
2366 BITS_PARSE("num_clock_ts", value, ps_bitstrm, 2); in ihevcd_parse_time_code_sei()
2371 BITS_PARSE("clock_timestamp_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2376 BITS_PARSE("units_field_based_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2379 BITS_PARSE("counting_type[i]", value, ps_bitstrm, 5); in ihevcd_parse_time_code_sei()
2382 BITS_PARSE("full_timestamp_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2385 BITS_PARSE("discontinuity_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2388 BITS_PARSE("cnt_dropped_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2391 BITS_PARSE("n_frames[i]", value, ps_bitstrm, 9); in ihevcd_parse_time_code_sei()
2396 BITS_PARSE("seconds_value[i]", value, ps_bitstrm, 6); in ihevcd_parse_time_code_sei()
2399 BITS_PARSE("minutes_value[i]", value, ps_bitstrm, 6); in ihevcd_parse_time_code_sei()
2402 BITS_PARSE("hours_value[i]", value, ps_bitstrm, 5); in ihevcd_parse_time_code_sei()
2407 BITS_PARSE("seconds_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2412 BITS_PARSE("seconds_value[i]", value, ps_bitstrm, 6); in ihevcd_parse_time_code_sei()
2415 BITS_PARSE("minutes_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2420 BITS_PARSE("minutes_value[i]", value, ps_bitstrm, 6); in ihevcd_parse_time_code_sei()
2423 BITS_PARSE("hours_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2428 BITS_PARSE("hours_value[i]", value, ps_bitstrm, 5); in ihevcd_parse_time_code_sei()
2435 BITS_PARSE("time_offset_length[i]", value, ps_bitstrm, 5); in ihevcd_parse_time_code_sei()
2440 BITS_PARSE("time_offset_value[i]", value, ps_bitstrm, in ihevcd_parse_time_code_sei()
2457 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_mastering_disp_params_sei() local
2468 BITS_PARSE("display_primaries_x[c]", value, ps_bitstrm, 16); in ihevcd_parse_mastering_disp_params_sei()
2471 BITS_PARSE("display_primaries_y[c]", value, ps_bitstrm, 16); in ihevcd_parse_mastering_disp_params_sei()
2475 BITS_PARSE("white_point_x", value, ps_bitstrm, 16); in ihevcd_parse_mastering_disp_params_sei()
2478 BITS_PARSE("white_point_y", value, ps_bitstrm, 16); in ihevcd_parse_mastering_disp_params_sei()
2481 BITS_PARSE("max_display_mastering_luminance", value, ps_bitstrm, 32); in ihevcd_parse_mastering_disp_params_sei()
2484 BITS_PARSE("min_display_mastering_luminance", value, ps_bitstrm, 32); in ihevcd_parse_mastering_disp_params_sei()
2494 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_user_data_registered_itu_t_t35() local
2514 BITS_PARSE("itu_t_t35_country_code", value, ps_bitstrm, 8); in ihevcd_parse_user_data_registered_itu_t_t35()
2523 BITS_PARSE("itu_t_t35_country_code_extension_byte", value, ps_bitstrm, in ihevcd_parse_user_data_registered_itu_t_t35()
2533 BITS_PARSE("itu_t_t35_payload_byte", value, ps_bitstrm, 8); in ihevcd_parse_user_data_registered_itu_t_t35()
2549 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_sei_payload() local
2601 ihevcd_bits_flush(ps_bitstrm, 8); in ihevcd_parse_sei_payload()
2619 ihevcd_bits_flush(ps_bitstrm, 8); in ihevcd_parse_sei_payload()
2634 payload_bits_remaining = ihevcd_bits_num_bits_remaining(ps_bitstrm); in ihevcd_parse_sei_payload()
2648 u4_reserved_payload_extension_data, ps_bitstrm, 1); in ihevcd_parse_sei_payload()
2652 final_bits = ihevcd_bits_nxt(ps_bitstrm, payload_bits_remaining); in ihevcd_parse_sei_payload()
2663 u4_reserved_payload_extension_data, ps_bitstrm, 1); in ihevcd_parse_sei_payload()
2667 BITS_PARSE("payload_bit_equal_to_one", u4_dummy, ps_bitstrm, 1); in ihevcd_parse_sei_payload()
2671 BITS_PARSE("payload_bit_equal_to_zero", u4_dummy, ps_bitstrm, 1); in ihevcd_parse_sei_payload()
2727 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_sei() local
2730 u4_bits_left = ihevcd_bits_num_bits_remaining(ps_bitstrm); in ihevcd_parse_sei()
2734 while(ihevcd_bits_nxt(ps_bitstrm, 8) == 0xFF) in ihevcd_parse_sei()
2736 ihevcd_bits_flush(ps_bitstrm, 8); /* equal to 0xFF */ in ihevcd_parse_sei()
2740 BITS_PARSE("last_payload_type_byte", value, ps_bitstrm, 8); in ihevcd_parse_sei()
2745 while(ihevcd_bits_nxt(ps_bitstrm, 8) == 0xFF) in ihevcd_parse_sei()
2747 ihevcd_bits_flush(ps_bitstrm, 8); /* equal to 0xFF */ in ihevcd_parse_sei()
2751 BITS_PARSE("last_payload_size_byte", value, ps_bitstrm, 8); in ihevcd_parse_sei()
2755 u4_bits_left = ihevcd_bits_num_bits_remaining(ps_bitstrm); in ihevcd_parse_sei()
2761 u4_bits_left = ihevcd_bits_num_bits_remaining(ps_bitstrm); in ihevcd_parse_sei()