Lines Matching refs:ps_bitstrm
148 WORD32 ihevcd_parse_pred_wt_ofst(bitstrm_t *ps_bitstrm, in ihevcd_parse_pred_wt_ofst() argument
161 UEV_PARSE("luma_log2_weight_denom", u4_value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
170 SEV_PARSE("delta_chroma_log2_weight_denom", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
181 BITS_PARSE("luma_weight_l0_flag[ i ]", value, ps_bitstrm, 1); in ihevcd_parse_pred_wt_ofst()
191 BITS_PARSE("chroma_weight_l0_flag[ i ]", value, ps_bitstrm, 1); in ihevcd_parse_pred_wt_ofst()
208 SEV_PARSE("delta_luma_weight_l0[ i ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
216 SEV_PARSE("luma_offset_l0[ i ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
233 SEV_PARSE("delta_chroma_weight_l0[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
241 SEV_PARSE("delta_chroma_offset_l0[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
251 SEV_PARSE("delta_chroma_weight_l0[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
259 SEV_PARSE("delta_chroma_offset_l0[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
283 BITS_PARSE("luma_weight_l1_flag[ i ]", value, ps_bitstrm, 1); in ihevcd_parse_pred_wt_ofst()
291 BITS_PARSE("chroma_weight_l1_flag[ i ]", value, ps_bitstrm, 1); in ihevcd_parse_pred_wt_ofst()
307 SEV_PARSE("delta_luma_weight_l1[ i ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
315 SEV_PARSE("luma_offset_l1[ i ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
333 SEV_PARSE("delta_chroma_weight_l1[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
341 SEV_PARSE("delta_chroma_offset_l1[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
351 SEV_PARSE("delta_chroma_weight_l1[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
359 SEV_PARSE("delta_chroma_offset_l1[ i ][ j ]", value, ps_bitstrm); in ihevcd_parse_pred_wt_ofst()
412 IHEVCD_ERROR_T ihevcd_short_term_ref_pic_set(bitstrm_t *ps_bitstrm, in ihevcd_short_term_ref_pic_set() argument
427 BITS_PARSE("inter_ref_pic_set_prediction_flag", value, ps_bitstrm, 1); in ihevcd_short_term_ref_pic_set()
443 UEV_PARSE("delta_idx_minus1", value, ps_bitstrm); in ihevcd_short_term_ref_pic_set()
459 BITS_PARSE("delta_rps_sign", value, ps_bitstrm, 1); in ihevcd_short_term_ref_pic_set()
462 UEV_PARSE("abs_delta_rps_minus1", value, ps_bitstrm); in ihevcd_short_term_ref_pic_set()
483 BITS_PARSE("used_by_curr_pic_flag", value, ps_bitstrm, 1); in ihevcd_short_term_ref_pic_set()
489 BITS_PARSE("use_delta_flag", value, ps_bitstrm, 1); in ihevcd_short_term_ref_pic_set()
560 UEV_PARSE("num_negative_pics", value, ps_bitstrm); in ihevcd_short_term_ref_pic_set()
567 UEV_PARSE("num_positive_pics", value, ps_bitstrm); in ihevcd_short_term_ref_pic_set()
581 UEV_PARSE("delta_poc_s0_minus1", value, ps_bitstrm); in ihevcd_short_term_ref_pic_set()
590 BITS_PARSE("used_by_curr_pic_s0_flag", value, ps_bitstrm, 1); in ihevcd_short_term_ref_pic_set()
599 UEV_PARSE("delta_poc_s1_minus1", value, ps_bitstrm); in ihevcd_short_term_ref_pic_set()
608 BITS_PARSE("used_by_curr_pic_s1_flag", value, ps_bitstrm, 1); in ihevcd_short_term_ref_pic_set()
619 static WORD32 ihevcd_parse_sub_layer_hrd_parameters(bitstrm_t *ps_bitstrm, in ihevcd_parse_sub_layer_hrd_parameters() argument
629 …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()
634 …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()
641 …_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()
646 …_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()
652 BITS_PARSE("cbr_flag[ i ]", ps_sub_layer_hrd_params->au1_cbr_flag[i], ps_bitstrm, 1); in ihevcd_parse_sub_layer_hrd_parameters()
659 static WORD32 ihevcd_parse_hrd_parameters(bitstrm_t *ps_bitstrm, in ihevcd_parse_hrd_parameters() argument
687 …ARSE("nal_hrd_parameters_present_flag", ps_hrd->u1_nal_hrd_parameters_present_flag, ps_bitstrm, 1); in ihevcd_parse_hrd_parameters()
688 …ARSE("vcl_hrd_parameters_present_flag", ps_hrd->u1_vcl_hrd_parameters_present_flag, ps_bitstrm, 1); in ihevcd_parse_hrd_parameters()
692 …ARSE("sub_pic_cpb_params_present_flag", ps_hrd->u1_sub_pic_cpb_params_present_flag, ps_bitstrm, 1); in ihevcd_parse_hrd_parameters()
695 BITS_PARSE("tick_divisor_minus2", ps_hrd->u1_tick_divisor_minus2, ps_bitstrm, 8); in ihevcd_parse_hrd_parameters()
696 …_increment_length_minus1", ps_hrd->u1_du_cpb_removal_delay_increment_length_minus1, ps_bitstrm, 5); in ihevcd_parse_hrd_parameters()
697 …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()
698 …("dpb_output_delay_du_length_minus1", ps_hrd->u1_dpb_output_delay_du_length_minus1, ps_bitstrm, 5); in ihevcd_parse_hrd_parameters()
701 BITS_PARSE("bit_rate_scale", ps_hrd->u4_bit_rate_scale, ps_bitstrm, 4); in ihevcd_parse_hrd_parameters()
702 BITS_PARSE("cpb_size_scale", ps_hrd->u4_cpb_size_scale, ps_bitstrm, 4); in ihevcd_parse_hrd_parameters()
704 BITS_PARSE("cpb_size_du_scale", ps_hrd->u4_cpb_size_du_scale, ps_bitstrm, 4); in ihevcd_parse_hrd_parameters()
706 …b_removal_delay_length_minus1", ps_hrd->u1_initial_cpb_removal_delay_length_minus1, ps_bitstrm, 5); in ihevcd_parse_hrd_parameters()
707 …au_cpb_removal_delay_length_minus1", ps_hrd->u1_au_cpb_removal_delay_length_minus1, ps_bitstrm, 5); in ihevcd_parse_hrd_parameters()
708 …_PARSE("dpb_output_delay_length_minus1", ps_hrd->u1_dpb_output_delay_length_minus1, ps_bitstrm, 5); in ihevcd_parse_hrd_parameters()
715 …RSE("fixed_pic_rate_general_flag[ i ]", ps_hrd->au1_fixed_pic_rate_general_flag[i], ps_bitstrm, 1); in ihevcd_parse_hrd_parameters()
723 …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()
727 …elemental_duration_in_tc_minus1[ i ]", ps_hrd->au2_elemental_duration_in_tc_minus1[i], ps_bitstrm); in ihevcd_parse_hrd_parameters()
735 BITS_PARSE("low_delay_hrd_flag[ i ]", ps_hrd->au1_low_delay_hrd_flag[i], ps_bitstrm, 1); in ihevcd_parse_hrd_parameters()
740 UEV_PARSE("cpb_cnt_minus1[ i ]", ps_hrd->au1_cpb_cnt_minus1[i], ps_bitstrm); in ihevcd_parse_hrd_parameters()
748 ihevcd_parse_sub_layer_hrd_parameters(ps_bitstrm, in ihevcd_parse_hrd_parameters()
754 ihevcd_parse_sub_layer_hrd_parameters(ps_bitstrm, in ihevcd_parse_hrd_parameters()
764 static WORD32 ihevcd_parse_vui_parameters(bitstrm_t *ps_bitstrm, in ihevcd_parse_vui_parameters() argument
772 …_PARSE("aspect_ratio_info_present_flag", ps_vui->u1_aspect_ratio_info_present_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
779 BITS_PARSE("aspect_ratio_idc", ps_vui->u1_aspect_ratio_idc, ps_bitstrm, 8); in ihevcd_parse_vui_parameters()
847 BITS_PARSE("sar_width", u2_sar_width, ps_bitstrm, 16); in ihevcd_parse_vui_parameters()
848 BITS_PARSE("sar_height", u2_sar_height, ps_bitstrm, 16); in ihevcd_parse_vui_parameters()
860 BITS_PARSE("overscan_info_present_flag", ps_vui->u1_overscan_info_present_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
863 … BITS_PARSE("overscan_appropriate_flag", ps_vui->u1_overscan_appropriate_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
865 …_PARSE("video_signal_type_present_flag", ps_vui->u1_video_signal_type_present_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
875 BITS_PARSE("video_format", ps_vui->u1_video_format, ps_bitstrm, 3); in ihevcd_parse_vui_parameters()
876 BITS_PARSE("video_full_range_flag", ps_vui->u1_video_full_range_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
877 …ARSE("colour_description_present_flag", ps_vui->u1_colour_description_present_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
880 BITS_PARSE("colour_primaries", ps_vui->u1_colour_primaries, ps_bitstrm, 8); in ihevcd_parse_vui_parameters()
881 … BITS_PARSE("transfer_characteristics", ps_vui->u1_transfer_characteristics, ps_bitstrm, 8); in ihevcd_parse_vui_parameters()
882 BITS_PARSE("matrix_coeffs", ps_vui->u1_matrix_coefficients, ps_bitstrm, 8); in ihevcd_parse_vui_parameters()
886 …BITS_PARSE("chroma_loc_info_present_flag", ps_vui->u1_chroma_loc_info_present_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
891 …PARSE("chroma_sample_loc_type_top_field", ps_vui->u1_chroma_sample_loc_type_top_field, ps_bitstrm); in ihevcd_parse_vui_parameters()
896 …"chroma_sample_loc_type_bottom_field", ps_vui->u1_chroma_sample_loc_type_bottom_field, ps_bitstrm); in ihevcd_parse_vui_parameters()
903 …_PARSE("neutral_chroma_indication_flag", ps_vui->u1_neutral_chroma_indication_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
904 BITS_PARSE("field_seq_flag", ps_vui->u1_field_seq_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
905 …TS_PARSE("frame_field_info_present_flag", ps_vui->u1_frame_field_info_present_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
906 … BITS_PARSE("default_display_window_flag", ps_vui->u1_default_display_window_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
913 UEV_PARSE("def_disp_win_left_offset", ps_vui->u4_def_disp_win_left_offset, ps_bitstrm); in ihevcd_parse_vui_parameters()
914 UEV_PARSE("def_disp_win_right_offset", ps_vui->u4_def_disp_win_right_offset, ps_bitstrm); in ihevcd_parse_vui_parameters()
915 UEV_PARSE("def_disp_win_top_offset", ps_vui->u4_def_disp_win_top_offset, ps_bitstrm); in ihevcd_parse_vui_parameters()
916 UEV_PARSE("def_disp_win_bottom_offset", ps_vui->u4_def_disp_win_bottom_offset, ps_bitstrm); in ihevcd_parse_vui_parameters()
919 …BITS_PARSE("vui_timing_info_present_flag", ps_vui->u1_vui_timing_info_present_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
922 BITS_PARSE("vui_num_units_in_tick", ps_vui->u4_vui_num_units_in_tick, ps_bitstrm, 32); in ihevcd_parse_vui_parameters()
923 BITS_PARSE("vui_time_scale", ps_vui->u4_vui_time_scale, ps_bitstrm, 32); in ihevcd_parse_vui_parameters()
924 …("vui_poc_proportional_to_timing_flag", ps_vui->u1_poc_proportional_to_timing_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
927 …V_PARSE("vui_num_ticks_poc_diff_one_minus1", ps_vui->u4_num_ticks_poc_diff_one_minus1, ps_bitstrm); in ihevcd_parse_vui_parameters()
933 …ARSE("vui_hrd_parameters_present_flag", ps_vui->u1_vui_hrd_parameters_present_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
936 …ret = ihevcd_parse_hrd_parameters(ps_bitstrm, &ps_vui->s_vui_hrd_parameters, 1, sps_max_sub_layers… in ihevcd_parse_vui_parameters()
941 BITS_PARSE("bitstream_restriction_flag", ps_vui->u1_bitstream_restriction_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
952 … BITS_PARSE("tiles_fixed_structure_flag", ps_vui->u1_tiles_fixed_structure_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
953 …tors_over_pic_boundaries_flag", ps_vui->u1_motion_vectors_over_pic_boundaries_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
954 …TS_PARSE("restricted_ref_pic_lists_flag", ps_vui->u1_restricted_ref_pic_lists_flag, ps_bitstrm, 1); in ihevcd_parse_vui_parameters()
956 … UEV_PARSE("min_spatial_segmentation_idc", ps_vui->u4_min_spatial_segmentation_idc, ps_bitstrm); in ihevcd_parse_vui_parameters()
961 UEV_PARSE("max_bytes_per_pic_denom", ps_vui->u1_max_bytes_per_pic_denom, ps_bitstrm); in ihevcd_parse_vui_parameters()
966 UEV_PARSE("max_bits_per_min_cu_denom", ps_vui->u1_max_bits_per_mincu_denom, ps_bitstrm); in ihevcd_parse_vui_parameters()
971 … UEV_PARSE("log2_max_mv_length_horizontal", ps_vui->u1_log2_max_mv_length_horizontal, ps_bitstrm); in ihevcd_parse_vui_parameters()
976 … UEV_PARSE("log2_max_mv_length_vertical", ps_vui->u1_log2_max_mv_length_vertical, ps_bitstrm); in ihevcd_parse_vui_parameters()
1013 static IHEVCD_ERROR_T ihevcd_parse_profile_tier_level_layer(bitstrm_t *ps_bitstrm, in ihevcd_parse_profile_tier_level_layer() argument
1020 BITS_PARSE("XXX_profile_space[]", value, ps_bitstrm, 2); in ihevcd_parse_profile_tier_level_layer()
1023 BITS_PARSE("XXX_tier_flag[]", value, ps_bitstrm, 1); in ihevcd_parse_profile_tier_level_layer()
1026 BITS_PARSE("XXX_profile_idc[]", value, ps_bitstrm, 5); in ihevcd_parse_profile_tier_level_layer()
1031 BITS_PARSE("XXX_profile_compatibility_flag[][j]", value, ps_bitstrm, 1); in ihevcd_parse_profile_tier_level_layer()
1035 BITS_PARSE("general_progressive_source_flag", value, ps_bitstrm, 1); in ihevcd_parse_profile_tier_level_layer()
1038 BITS_PARSE("general_interlaced_source_flag", value, ps_bitstrm, 1); in ihevcd_parse_profile_tier_level_layer()
1041 BITS_PARSE("general_non_packed_constraint_flag", value, ps_bitstrm, 1); in ihevcd_parse_profile_tier_level_layer()
1044 BITS_PARSE("general_frame_only_constraint_flag", value, ps_bitstrm, 1); in ihevcd_parse_profile_tier_level_layer()
1047 BITS_PARSE("XXX_reserved_zero_44bits[0..15]", value, ps_bitstrm, 16); in ihevcd_parse_profile_tier_level_layer()
1049 BITS_PARSE("XXX_reserved_zero_44bits[16..31]", value, ps_bitstrm, 16); in ihevcd_parse_profile_tier_level_layer()
1051 BITS_PARSE("XXX_reserved_zero_44bits[32..43]", value, ps_bitstrm, 12); in ihevcd_parse_profile_tier_level_layer()
1086 static IHEVCD_ERROR_T ihevcd_profile_tier_level(bitstrm_t *ps_bitstrm, in ihevcd_profile_tier_level() argument
1097 ret = ihevcd_parse_profile_tier_level_layer(ps_bitstrm, &ps_ptl->s_ptl_gen); in ihevcd_profile_tier_level()
1104 BITS_PARSE("general_level_idc", value, ps_bitstrm, 8); in ihevcd_profile_tier_level()
1110 BITS_PARSE("sub_layer_profile_present_flag[i]", value, ps_bitstrm, 1); in ihevcd_profile_tier_level()
1113 BITS_PARSE("sub_layer_level_present_flag[i]", value, ps_bitstrm, 1); in ihevcd_profile_tier_level()
1121 BITS_PARSE("reserved_zero_2bits", value, ps_bitstrm, 2); in ihevcd_profile_tier_level()
1129 ret = ihevcd_parse_profile_tier_level_layer(ps_bitstrm, in ihevcd_profile_tier_level()
1134 BITS_PARSE("sub_layer_level_idc[i]", value, ps_bitstrm, 8); in ihevcd_profile_tier_level()
1174 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm; in ihevcd_scaling_list_data() local
1185 BITS_PARSE("scaling_list_pred_mode_flag", scaling_list_pred_mode_flag, ps_bitstrm, 1); in ihevcd_scaling_list_data()
1194 ps_bitstrm); in ihevcd_scaling_list_data()
1212 ps_bitstrm); in ihevcd_scaling_list_data()
1227 scaling_list_delta_coef, ps_bitstrm); in ihevcd_scaling_list_data()
1244 scaling_list_delta_coef, ps_bitstrm); in ihevcd_scaling_list_data()
1268 scaling_list_delta_coef, ps_bitstrm); in ihevcd_scaling_list_data()
1325 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm; in ihevcd_parse_vps() local
1326 BITS_PARSE("vps_video_parameter_set_id", value, ps_bitstrm, 4); in ihevcd_parse_vps()
1340 BITS_PARSE("vps_reserved_three_2bits", value, ps_bitstrm, 2); in ihevcd_parse_vps()
1343 BITS_PARSE("vps_max_layers_minus1", value, ps_bitstrm, 6); in ihevcd_parse_vps()
1348 BITS_PARSE("vps_max_sub_layers_minus1", value, ps_bitstrm, 3); in ihevcd_parse_vps()
1357 BITS_PARSE("vps_temporal_id_nesting_flag", value, ps_bitstrm, 1); in ihevcd_parse_vps()
1360 BITS_PARSE("vps_reserved_ffff_16bits", value, ps_bitstrm, 16); in ihevcd_parse_vps()
1363 ret = ihevcd_profile_tier_level(ps_bitstrm, &(ps_vps->s_ptl), in ihevcd_parse_vps()
1366 BITS_PARSE("vps_sub_layer_ordering_info_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_vps()
1372 UEV_PARSE("vps_max_dec_pic_buffering[i]", value, ps_bitstrm); in ihevcd_parse_vps()
1380 UEV_PARSE("vps_num_reorder_pics[i]", value, ps_bitstrm); in ihevcd_parse_vps()
1387 UEV_PARSE("vps_max_latency_increase[i]", value, ps_bitstrm); in ihevcd_parse_vps()
1397 BITS_PARSE("vps_max_layer_id", value, ps_bitstrm, 6); in ihevcd_parse_vps()
1400 UEV_PARSE("vps_num_layer_sets_minus1", value, ps_bitstrm); in ihevcd_parse_vps()
1407 BITS_PARSE("vps_timing_info_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_vps()
1449 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm; in ihevcd_parse_sps() local
1453 BITS_PARSE("video_parameter_set_id", value, ps_bitstrm, 4); in ihevcd_parse_sps()
1460 BITS_PARSE("sps_max_sub_layers_minus1", value, ps_bitstrm, 3); in ihevcd_parse_sps()
1467 BITS_PARSE("sps_temporal_id_nesting_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1471 ret = ihevcd_profile_tier_level(ps_bitstrm, &(s_ptl), 1, in ihevcd_parse_sps()
1474 UEV_PARSE("seq_parameter_set_id", value, ps_bitstrm); in ihevcd_parse_sps()
1499 UEV_PARSE("chroma_format_idc", value, ps_bitstrm); in ihevcd_parse_sps()
1514 BITS_PARSE("separate_colour_plane_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1522 UEV_PARSE("pic_width_in_luma_samples", value, ps_bitstrm); in ihevcd_parse_sps()
1529 UEV_PARSE("pic_height_in_luma_samples", value, ps_bitstrm); in ihevcd_parse_sps()
1539 BITS_PARSE("pic_cropping_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1545 UEV_PARSE("pic_crop_left_offset", value, ps_bitstrm); in ihevcd_parse_sps()
1552 UEV_PARSE("pic_crop_right_offset", value, ps_bitstrm); in ihevcd_parse_sps()
1559 UEV_PARSE("pic_crop_top_offset", value, ps_bitstrm); in ihevcd_parse_sps()
1566 UEV_PARSE("pic_crop_bottom_offset", value, ps_bitstrm); in ihevcd_parse_sps()
1582 UEV_PARSE("bit_depth_luma_minus8", value, ps_bitstrm); in ihevcd_parse_sps()
1586 UEV_PARSE("bit_depth_chroma_minus8", value, ps_bitstrm); in ihevcd_parse_sps()
1590 UEV_PARSE("log2_max_pic_order_cnt_lsb_minus4", value, ps_bitstrm); in ihevcd_parse_sps()
1595 BITS_PARSE("sps_sub_layer_ordering_info_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1603 UEV_PARSE("max_dec_pic_buffering", value, ps_bitstrm); in ihevcd_parse_sps()
1610 UEV_PARSE("num_reorder_pics", value, ps_bitstrm); in ihevcd_parse_sps()
1617 UEV_PARSE("max_latency_increase", value, ps_bitstrm); in ihevcd_parse_sps()
1653 UEV_PARSE("log2_min_coding_block_size_minus3", value, ps_bitstrm); in ihevcd_parse_sps()
1665 UEV_PARSE("log2_diff_max_min_coding_block_size", value, ps_bitstrm); in ihevcd_parse_sps()
1693 UEV_PARSE("log2_min_transform_block_size_minus2", value, ps_bitstrm); in ihevcd_parse_sps()
1704 UEV_PARSE("log2_diff_max_min_transform_block_size", value, ps_bitstrm); in ihevcd_parse_sps()
1722 UEV_PARSE("max_transform_hierarchy_depth_inter", value, ps_bitstrm); in ihevcd_parse_sps()
1729 UEV_PARSE("max_transform_hierarchy_depth_intra", value, ps_bitstrm); in ihevcd_parse_sps()
1737 BITS_PARSE("scaling_list_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1743 BITS_PARSE("sps_scaling_list_data_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1754 BITS_PARSE("asymmetric_motion_partitions_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1757 BITS_PARSE("sample_adaptive_offset_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1760 BITS_PARSE("pcm_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1765 BITS_PARSE("pcm_sample_bit_depth_luma", value, ps_bitstrm, 4); in ihevcd_parse_sps()
1768 BITS_PARSE("pcm_sample_bit_depth_chroma", value, ps_bitstrm, 4); in ihevcd_parse_sps()
1771 UEV_PARSE("log2_min_pcm_coding_block_size_minus3", value, ps_bitstrm); in ihevcd_parse_sps()
1778 UEV_PARSE("log2_diff_max_min_pcm_coding_block_size", value, ps_bitstrm); in ihevcd_parse_sps()
1784 BITS_PARSE("pcm_loop_filter_disable_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1788 UEV_PARSE("num_short_term_ref_pic_sets", value, ps_bitstrm); in ihevcd_parse_sps()
1797 …ret = ihevcd_short_term_ref_pic_set(ps_bitstrm, &ps_sps->as_stref_picset[0], ps_sps->i1_num_short_… in ihevcd_parse_sps()
1804 BITS_PARSE("long_term_ref_pics_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1809 UEV_PARSE("num_long_term_ref_pics_sps", value, ps_bitstrm); in ihevcd_parse_sps()
1818 …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()
1821 BITS_PARSE("used_by_curr_pic_lt_sps_flag[ i ]", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1826 BITS_PARSE("sps_temporal_mvp_enable_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1830 BITS_PARSE("sps_strong_intra_smoothing_enable_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1833 BITS_PARSE("vui_parameters_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1838 ret = ihevcd_parse_vui_parameters(ps_bitstrm, in ihevcd_parse_sps()
1844 BITS_PARSE("sps_extension_flag", value, ps_bitstrm, 1); in ihevcd_parse_sps()
1846 if((UWORD8 *)ps_bitstrm->pu4_buf > ps_bitstrm->pu1_buf_max) in ihevcd_parse_sps()
2050 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm; in ihevcd_parse_pps() local
2056 UEV_PARSE("pic_parameter_set_id", value, ps_bitstrm); in ihevcd_parse_pps()
2072 UEV_PARSE("seq_parameter_set_id", value, ps_bitstrm); in ihevcd_parse_pps()
2095 BITS_PARSE("dependent_slices_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2098 BITS_PARSE("output_flag_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2101 BITS_PARSE("num_extra_slice_header_bits", value, ps_bitstrm, 3); in ihevcd_parse_pps()
2105 BITS_PARSE("sign_data_hiding_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2108 BITS_PARSE("cabac_init_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2111 UEV_PARSE("num_ref_idx_l0_default_active_minus1", value, ps_bitstrm); in ihevcd_parse_pps()
2118 UEV_PARSE("num_ref_idx_l1_default_active_minus1", value, ps_bitstrm); in ihevcd_parse_pps()
2125 SEV_PARSE("pic_init_qp_minus26", i4_value, ps_bitstrm); in ihevcd_parse_pps()
2132 BITS_PARSE("constrained_intra_pred_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2135 BITS_PARSE("transform_skip_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2138 BITS_PARSE("cu_qp_delta_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2143 UEV_PARSE("diff_cu_qp_delta_depth", value, ps_bitstrm); in ihevcd_parse_pps()
2156 SEV_PARSE("cb_qp_offset", i4_value, ps_bitstrm); in ihevcd_parse_pps()
2164 SEV_PARSE("cr_qp_offset", i4_value, ps_bitstrm); in ihevcd_parse_pps()
2172 BITS_PARSE("slicelevel_chroma_qp_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2175 BITS_PARSE("weighted_pred_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2178 BITS_PARSE("weighted_bipred_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2181 BITS_PARSE("transquant_bypass_enable_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2184 BITS_PARSE("tiles_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2216 BITS_PARSE("entropy_coding_sync_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2228 UEV_PARSE("num_tile_columns_minus1", value, ps_bitstrm); in ihevcd_parse_pps()
2231 UEV_PARSE("num_tile_rows_minus1", value, ps_bitstrm); in ihevcd_parse_pps()
2240 BITS_PARSE("uniform_spacing_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2258 UEV_PARSE("column_width_minus1[ i ]", value, ps_bitstrm); in ihevcd_parse_pps()
2298 UEV_PARSE("row_height_minus1[ i ]", value, ps_bitstrm); in ihevcd_parse_pps()
2331 BITS_PARSE("loop_filter_across_tiles_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2349 BITS_PARSE("loop_filter_across_slices_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2352 BITS_PARSE("deblocking_filter_control_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2364 BITS_PARSE("deblocking_filter_override_enabled_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2367 BITS_PARSE("pic_disable_deblocking_filter_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2373 SEV_PARSE("pps_beta_offset_div2", i4_value, ps_bitstrm); in ihevcd_parse_pps()
2380 SEV_PARSE("pps_tc_offset_div2", i4_value, ps_bitstrm); in ihevcd_parse_pps()
2390 BITS_PARSE("pps_scaling_list_data_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2399 BITS_PARSE("lists_modification_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2401 UEV_PARSE("log2_parallel_merge_level_minus2", value, ps_bitstrm); in ihevcd_parse_pps()
2408 BITS_PARSE("slice_header_extension_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2411 BITS_PARSE("pps_extension_flag", value, ps_bitstrm, 1); in ihevcd_parse_pps()
2413 if((UWORD8 *)ps_bitstrm->pu4_buf > ps_bitstrm->pu1_buf_max) in ihevcd_parse_pps()
2458 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_buffering_period_sei() local
2473 UEV_PARSE("bp_seq_parameter_set_id", value, ps_bitstrm); in ihevcd_parse_buffering_period_sei()
2482 BITS_PARSE("irap_cpb_params_present_flag", value, ps_bitstrm, 1); in ihevcd_parse_buffering_period_sei()
2490 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2497 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2508 BITS_PARSE("concatenation_flag", value, ps_bitstrm, 1); in ihevcd_parse_buffering_period_sei()
2513 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2526 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2534 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2545 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2553 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2570 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2578 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2589 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2597 ps_bitstrm, in ihevcd_parse_buffering_period_sei()
2612 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_pic_timing_sei() local
2626 BITS_PARSE("pic_struct", value, ps_bitstrm, 4); in ihevcd_parse_pic_timing_sei()
2629 BITS_PARSE("source_scan_type", value, ps_bitstrm, 2); in ihevcd_parse_pic_timing_sei()
2632 BITS_PARSE("duplicate_flag", value, ps_bitstrm, 1); in ihevcd_parse_pic_timing_sei()
2648 BITS_PARSE("au_cpb_removal_delay_minus1", value, ps_bitstrm, in ihevcd_parse_pic_timing_sei()
2652 BITS_PARSE("pic_dpb_output_delay", value, ps_bitstrm, in ihevcd_parse_pic_timing_sei()
2658 BITS_PARSE("pic_dpb_output_du_delay", value, ps_bitstrm, in ihevcd_parse_pic_timing_sei()
2669 UEV_PARSE("num_decoding_units_minus1", value, ps_bitstrm); in ihevcd_parse_pic_timing_sei()
2682 BITS_PARSE("du_common_cpb_removal_delay_flag", value, ps_bitstrm, 1); in ihevcd_parse_pic_timing_sei()
2689 ps_bitstrm, in ihevcd_parse_pic_timing_sei()
2698 UEV_PARSE("num_nalus_in_du_minus1", value, ps_bitstrm); in ihevcd_parse_pic_timing_sei()
2710 ps_bitstrm, in ihevcd_parse_pic_timing_sei()
2726 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_time_code_sei() local
2734 BITS_PARSE("num_clock_ts", value, ps_bitstrm, 2); in ihevcd_parse_time_code_sei()
2739 BITS_PARSE("clock_timestamp_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2744 BITS_PARSE("units_field_based_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2747 BITS_PARSE("counting_type[i]", value, ps_bitstrm, 5); in ihevcd_parse_time_code_sei()
2750 BITS_PARSE("full_timestamp_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2753 BITS_PARSE("discontinuity_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2756 BITS_PARSE("cnt_dropped_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2759 BITS_PARSE("n_frames[i]", value, ps_bitstrm, 9); in ihevcd_parse_time_code_sei()
2764 BITS_PARSE("seconds_value[i]", value, ps_bitstrm, 6); in ihevcd_parse_time_code_sei()
2767 BITS_PARSE("minutes_value[i]", value, ps_bitstrm, 6); in ihevcd_parse_time_code_sei()
2770 BITS_PARSE("hours_value[i]", value, ps_bitstrm, 5); in ihevcd_parse_time_code_sei()
2775 BITS_PARSE("seconds_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2780 BITS_PARSE("seconds_value[i]", value, ps_bitstrm, 6); in ihevcd_parse_time_code_sei()
2783 BITS_PARSE("minutes_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2788 BITS_PARSE("minutes_value[i]", value, ps_bitstrm, 6); in ihevcd_parse_time_code_sei()
2791 BITS_PARSE("hours_flag[i]", value, ps_bitstrm, 1); in ihevcd_parse_time_code_sei()
2796 BITS_PARSE("hours_value[i]", value, ps_bitstrm, 5); in ihevcd_parse_time_code_sei()
2803 BITS_PARSE("time_offset_length[i]", value, ps_bitstrm, 5); in ihevcd_parse_time_code_sei()
2808 BITS_PARSE("time_offset_value[i]", value, ps_bitstrm, in ihevcd_parse_time_code_sei()
2825 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_mastering_disp_params_sei() local
2836 BITS_PARSE("display_primaries_x[c]", value, ps_bitstrm, 16); in ihevcd_parse_mastering_disp_params_sei()
2839 BITS_PARSE("display_primaries_y[c]", value, ps_bitstrm, 16); in ihevcd_parse_mastering_disp_params_sei()
2843 BITS_PARSE("white_point_x", value, ps_bitstrm, 16); in ihevcd_parse_mastering_disp_params_sei()
2846 BITS_PARSE("white_point_y", value, ps_bitstrm, 16); in ihevcd_parse_mastering_disp_params_sei()
2849 BITS_PARSE("max_display_mastering_luminance", value, ps_bitstrm, 32); in ihevcd_parse_mastering_disp_params_sei()
2852 BITS_PARSE("min_display_mastering_luminance", value, ps_bitstrm, 32); in ihevcd_parse_mastering_disp_params_sei()
2862 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_user_data_registered_itu_t_t35() local
2882 BITS_PARSE("itu_t_t35_country_code", value, ps_bitstrm, 8); in ihevcd_parse_user_data_registered_itu_t_t35()
2891 BITS_PARSE("itu_t_t35_country_code_extension_byte", value, ps_bitstrm, in ihevcd_parse_user_data_registered_itu_t_t35()
2901 BITS_PARSE("itu_t_t35_payload_byte", value, ps_bitstrm, 8); in ihevcd_parse_user_data_registered_itu_t_t35()
2917 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_sei_payload() local
2966 ihevcd_bits_flush(ps_bitstrm, 4 * 8); in ihevcd_parse_sei_payload()
2969 ihevcd_bits_flush(ps_bitstrm, (u4_payload_size - i * 4) * 8); in ihevcd_parse_sei_payload()
2981 ihevcd_bits_flush(ps_bitstrm, 8); in ihevcd_parse_sei_payload()
2996 ihevcd_bits_flush(ps_bitstrm, 4 * 8); in ihevcd_parse_sei_payload()
2999 ihevcd_bits_flush(ps_bitstrm, (u4_payload_size - i * 4) * 8); in ihevcd_parse_sei_payload()
3011 ihevcd_bits_flush(ps_bitstrm, 8); in ihevcd_parse_sei_payload()
3026 payload_bits_remaining = ihevcd_bits_num_bits_remaining(ps_bitstrm); in ihevcd_parse_sei_payload()
3040 u4_reserved_payload_extension_data, ps_bitstrm, 1); in ihevcd_parse_sei_payload()
3044 final_bits = ihevcd_bits_nxt(ps_bitstrm, payload_bits_remaining); in ihevcd_parse_sei_payload()
3055 u4_reserved_payload_extension_data, ps_bitstrm, 1); in ihevcd_parse_sei_payload()
3059 BITS_PARSE("payload_bit_equal_to_one", u4_dummy, ps_bitstrm, 1); in ihevcd_parse_sei_payload()
3063 BITS_PARSE("payload_bit_equal_to_zero", u4_dummy, ps_bitstrm, 1); in ihevcd_parse_sei_payload()
3119 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm; in ihevcd_parse_sei() local
3122 u4_bits_left = ihevcd_bits_num_bits_remaining(ps_bitstrm); in ihevcd_parse_sei()
3126 while(ihevcd_bits_nxt(ps_bitstrm, 8) == 0xFF) in ihevcd_parse_sei()
3128 ihevcd_bits_flush(ps_bitstrm, 8); /* equal to 0xFF */ in ihevcd_parse_sei()
3132 BITS_PARSE("last_payload_type_byte", value, ps_bitstrm, 8); in ihevcd_parse_sei()
3137 while(ihevcd_bits_nxt(ps_bitstrm, 8) == 0xFF) in ihevcd_parse_sei()
3139 ihevcd_bits_flush(ps_bitstrm, 8); /* equal to 0xFF */ in ihevcd_parse_sei()
3143 BITS_PARSE("last_payload_size_byte", value, ps_bitstrm, 8); in ihevcd_parse_sei()
3147 u4_bits_left = ihevcd_bits_num_bits_remaining(ps_bitstrm); in ihevcd_parse_sei()
3153 u4_bits_left = ihevcd_bits_num_bits_remaining(ps_bitstrm); in ihevcd_parse_sei()