Home | History | Annotate | Download | only in decoder

Lines Matching refs:ps_bitstrm

126 * @param[in] ps_bitstrm
146 WORD32 ihevcd_parse_pred_wt_ofst(bitstrm_t *ps_bitstrm,
158 UEV_PARSE("luma_log2_weight_denom", value, ps_bitstrm);
163 SEV_PARSE("delta_chroma_log2_weight_denom", value, ps_bitstrm);
169 BITS_PARSE("luma_weight_l0_flag[ i ]", value, ps_bitstrm, 1);
179 BITS_PARSE("chroma_weight_l0_flag[ i ]", value, ps_bitstrm, 1);
196 SEV_PARSE("delta_luma_weight_l0[ i ]", value, ps_bitstrm);
201 SEV_PARSE("luma_offset_l0[ i ]", value, ps_bitstrm);
214 SEV_PARSE("delta_chroma_weight_l0[ i ][ j ]", value, ps_bitstrm);
218 SEV_PARSE("delta_chroma_offset_l0[ i ][ j ]", value, ps_bitstrm);
224 SEV_PARSE("delta_chroma_weight_l0[ i ][ j ]", value, ps_bitstrm);
228 SEV_PARSE("delta_chroma_offset_l0[ i ][ j ]", value, ps_bitstrm);
248 BITS_PARSE("luma_weight_l1_flag[ i ]", value, ps_bitstrm, 1);
256 BITS_PARSE("chroma_weight_l1_flag[ i ]", value, ps_bitstrm, 1);
272 SEV_PARSE("delta_luma_weight_l1[ i ]", value, ps_bitstrm);
277 SEV_PARSE("luma_offset_l1[ i ]", value, ps_bitstrm);
291 SEV_PARSE("delta_chroma_weight_l1[ i ][ j ]", value, ps_bitstrm);
295 SEV_PARSE("delta_chroma_offset_l1[ i ][ j ]", value, ps_bitstrm);
301 SEV_PARSE("delta_chroma_weight_l1[ i ][ j ]", value, ps_bitstrm);
305 SEV_PARSE("delta_chroma_offset_l1[ i ][ j ]", value, ps_bitstrm);
336 * @param[in] ps_bitstrm
354 IHEVCD_ERROR_T ihevcd_short_term_ref_pic_set(bitstrm_t *ps_bitstrm,
369 BITS_PARSE("inter_ref_pic_set_prediction_flag", value, ps_bitstrm, 1);
385 UEV_PARSE("delta_idx_minus1", value, ps_bitstrm);
397 BITS_PARSE("delta_rps_sign", value, ps_bitstrm, 1);
400 UEV_PARSE("abs_delta_rps_minus1", value, ps_bitstrm);
417 BITS_PARSE("used_by_curr_pic_flag", value, ps_bitstrm, 1);
423 BITS_PARSE("use_delta_flag", value, ps_bitstrm, 1);
494 UEV_PARSE("num_negative_pics", value, ps_bitstrm);
500 UEV_PARSE("num_positive_pics", value, ps_bitstrm);
513 UEV_PARSE("delta_poc_s0_minus1", value, ps_bitstrm);
518 BITS_PARSE("used_by_curr_pic_s0_flag", value, ps_bitstrm, 1);
527 UEV_PARSE("delta_poc_s1_minus1", value, ps_bitstrm);
532 BITS_PARSE("used_by_curr_pic_s1_flag", value, ps_bitstrm, 1);
543 static WORD32 ihevcd_parse_sub_layer_hrd_parameters(bitstrm_t *ps_bitstrm,
553 UEV_PARSE("bit_rate_value_minus1[ i ]", ps_sub_layer_hrd_params->au4_bit_rate_value_minus1[i], ps_bitstrm);
554 UEV_PARSE("cpb_size_value_minus1[ i ]", ps_sub_layer_hrd_params->au4_cpb_size_value_minus1[i], ps_bitstrm);
558 UEV_PARSE("cpb_size_du_value_minus1[ i ]", ps_sub_layer_hrd_params->au4_cpb_size_du_value_minus1[i], ps_bitstrm);
559 UEV_PARSE("bit_rate_du_value_minus1[ i ]", ps_sub_layer_hrd_params->au4_bit_rate_du_value_minus1[i], ps_bitstrm);
561 BITS_PARSE("cbr_flag[ i ]", ps_sub_layer_hrd_params->au1_cbr_flag[i], ps_bitstrm, 1);
568 static WORD32 ihevcd_parse_hrd_parameters(bitstrm_t *ps_bitstrm,
596 BITS_PARSE("nal_hrd_parameters_present_flag", ps_hrd->u1_nal_hrd_parameters_present_flag, ps_bitstrm, 1);
597 BITS_PARSE("vcl_hrd_parameters_present_flag", ps_hrd->u1_vcl_hrd_parameters_present_flag, ps_bitstrm, 1);
601 BITS_PARSE("sub_pic_cpb_params_present_flag", ps_hrd->u1_sub_pic_cpb_params_present_flag, ps_bitstrm, 1);
604 BITS_PARSE("tick_divisor_minus2", ps_hrd->u1_tick_divisor_minus2, ps_bitstrm, 8);
605 BITS_PARSE("du_cpb_removal_delay_increment_length_minus1", ps_hrd->u1_du_cpb_removal_delay_increment_length_minus1, ps_bitstrm, 5);
606 BITS_PARSE("sub_pic_cpb_params_in_pic_timing_sei_flag", ps_hrd->u1_sub_pic_cpb_params_in_pic_timing_sei_flag, ps_bitstrm, 1);
607 BITS_PARSE("dpb_output_delay_du_length_minus1", ps_hrd->u1_dpb_output_delay_du_length_minus1, ps_bitstrm, 5);
610 BITS_PARSE("bit_rate_scale", ps_hrd->u4_bit_rate_scale, ps_bitstrm, 4);
611 BITS_PARSE("cpb_size_scale", ps_hrd->u4_cpb_size_scale, ps_bitstrm, 4);
613 BITS_PARSE("cpb_size_du_scale", ps_hrd->u4_cpb_size_du_scale, ps_bitstrm, 4);
615 BITS_PARSE("initial_cpb_removal_delay_length_minus1", ps_hrd->u1_initial_cpb_removal_delay_length_minus1, ps_bitstrm, 5);
616 BITS_PARSE("au_cpb_removal_delay_length_minus1", ps_hrd->u1_au_cpb_removal_delay_length_minus1, ps_bitstrm, 5);
617 BITS_PARSE("dpb_output_delay_length_minus1", ps_hrd->u1_dpb_output_delay_length_minus1, ps_bitstrm, 5);
624 BITS_PARSE("fixed_pic_rate_general_flag[ i ]", ps_hrd->au1_fixed_pic_rate_general_flag[i], ps_bitstrm, 1);
632 BITS_PARSE("fixed_pic_rate_within_cvs_flag[ i ]", ps_hrd->au1_fixed_pic_rate_within_cvs_flag[i], ps_bitstrm, 1);
636 UEV_PARSE("elemental_duration_in_tc_minus1[ i ]", ps_hrd->au1_elemental_duration_in_tc_minus1[i], ps_bitstrm);
640 BITS_PARSE("low_delay_hrd_flag[ i ]", ps_hrd->au1_low_delay_hrd_flag[i], ps_bitstrm, 1);
644 UEV_PARSE("cpb_cnt_minus1[ i ]", ps_hrd->au1_cpb_cnt_minus1[i], ps_bitstrm);
650 ihevcd_parse_sub_layer_hrd_parameters(ps_bitstrm,
656 ihevcd_parse_sub_layer_hrd_parameters(ps_bitstrm,
666 static WORD32 ihevcd_parse_vui_parameters(bitstrm_t *ps_bitstrm,
674 BITS_PARSE("aspect_ratio_info_present_flag", ps_vui->u1_aspect_ratio_info_present_flag, ps_bitstrm, 1);
681 BITS_PARSE("aspect_ratio_idc", ps_vui->u1_aspect_ratio_idc, ps_bitstrm, 8);
749 BITS_PARSE("sar_width", u2_sar_width, ps_bitstrm, 16);
750 BITS_PARSE("sar_height", u2_sar_height, ps_bitstrm, 16);
762 BITS_PARSE("overscan_info_present_flag", ps_vui->u1_overscan_info_present_flag, ps_bitstrm, 1);
765 BITS_PARSE("overscan_appropriate_flag", ps_vui->u1_overscan_appropriate_flag, ps_bitstrm, 1);
767 BITS_PARSE("video_signal_type_present_flag", ps_vui->u1_video_signal_type_present_flag, ps_bitstrm, 1);
777 BITS_PARSE("video_format", ps_vui->u1_video_format, ps_bitstrm, 3);
778 BITS_PARSE("video_full_range_flag", ps_vui->u1_video_full_range_flag, ps_bitstrm, 1);
779 BITS_PARSE("colour_description_present_flag", ps_vui->u1_colour_description_present_flag, ps_bitstrm, 1);
782 BITS_PARSE("colour_primaries", ps_vui->u1_colour_primaries, ps_bitstrm, 8);
783 BITS_PARSE("transfer_characteristics", ps_vui->u1_transfer_characteristics, ps_bitstrm, 8);
784 BITS_PARSE("matrix_coeffs", ps_vui->u1_matrix_coefficients, ps_bitstrm, 8);
788 BITS_PARSE("chroma_loc_info_present_flag", ps_vui->u1_chroma_loc_info_present_flag, ps_bitstrm, 1);
793 UEV_PARSE("chroma_sample_loc_type_top_field", ps_vui->u1_chroma_sample_loc_type_top_field, ps_bitstrm);
794 UEV_PARSE("chroma_sample_loc_type_bottom_field", ps_vui->u1_chroma_sample_loc_type_bottom_field, ps_bitstrm);
797 ps_bitstrm, 1);
798 BITS_PARSE("field_seq_flag", ps_vui->u1_field_seq_flag, ps_bitstrm, 1);
799 BITS_PARSE("frame_field_info_present_flag", ps_vui->u1_frame_field_info_present_flag, ps_bitstrm, 1);
800 BITS_PARSE("default_display_window_flag", ps_vui->u1_default_display_window_flag, ps_bitstrm, 1);
807 UEV_PARSE("def_disp_win_left_offset", ps_vui->u4_def_disp_win_left_offset, ps_bitstrm);
808 UEV_PARSE("def_disp_win_right_offset", ps_vui->u4_def_disp_win_right_offset, ps_bitstrm);
809 UEV_PARSE("def_disp_win_top_offset", ps_vui->u4_def_disp_win_top_offset, ps_bitstrm);
810 UEV_PARSE("def_disp_win_bottom_offset", ps_vui->u4_def_disp_win_bottom_offset, ps_bitstrm);
813 BITS_PARSE("vui_timing_info_present_flag", ps_vui->u1_vui_timing_info_present_flag, ps_bitstrm, 1);
816 BITS_PARSE("vui_num_units_in_tick", ps_vui->u4_vui_num_units_in_tick, ps_bitstrm, 32);
817 BITS_PARSE("vui_time_scale", ps_vui->u4_vui_time_scale, ps_bitstrm, 32);
818 BITS_PARSE("vui_poc_proportional_to_timing_flag", ps_vui->u1_poc_proportional_to_timing_flag, ps_bitstrm, 1);
820 UEV_PARSE("vui_num_ticks_poc_diff_one_minus1", ps_vui->u1_num_ticks_poc_diff_one_minus1, ps_bitstrm);
822 BITS_PARSE("vui_hrd_parameters_present_flag", ps_vui->u1_vui_hrd_parameters_present_flag, ps_bitstrm, 1);
825 ret = ihevcd_parse_hrd_parameters(ps_bitstrm, &ps_vui->s_vui_hrd_parameters, 1, sps_max_sub_layers_minus1);
830 BITS_PARSE("bitstream_restriction_flag", ps_vui->u1_bitstream_restriction_flag, ps_bitstrm, 1);
841 BITS_PARSE("tiles_fixed_structure_flag", ps_vui->u1_tiles_fixed_structure_flag, ps_bitstrm, 1);
842 BITS_PARSE("motion_vectors_over_pic_boundaries_flag", ps_vui->u1_motion_vectors_over_pic_boundaries_flag, ps_bitstrm, 1);
843 BITS_PARSE("restricted_ref_pic_lists_flag", ps_vui->u1_restricted_ref_pic_lists_flag, ps_bitstrm, 1);
845 UEV_PARSE("min_spatial_segmentation_idc", ps_vui->u4_min_spatial_segmentation_idc, ps_bitstrm);
846 UEV_PARSE("max_bytes_per_pic_denom", ps_vui->u1_max_bytes_per_pic_denom, ps_bitstrm);
847 UEV_PARSE("max_bits_per_min_cu_denom", ps_vui->u1_max_bits_per_mincu_denom, ps_bitstrm);
848 UEV_PARSE("log2_max_mv_length_horizontal", ps_vui->u1_log2_max_mv_length_horizontal, ps_bitstrm);
849 UEV_PARSE("log2_max_mv_length_vertical", ps_vui->u1_log2_max_mv_length_vertical, ps_bitstrm);
869 * @param[in] ps_bitstrm
882 static IHEVCD_ERROR_T ihevcd_parse_profile_tier_level_layer(bitstrm_t *ps_bitstrm,
889 BITS_PARSE("XXX_profile_space[]", value, ps_bitstrm, 2);
892 BITS_PARSE("XXX_tier_flag[]", value, ps_bitstrm, 1);
895 BITS_PARSE("XXX_profile_idc[]", value, ps_bitstrm, 5);
900 BITS_PARSE("XXX_profile_compatibility_flag[][j]", value, ps_bitstrm, 1);
904 BITS_PARSE("general_progressive_source_flag", value, ps_bitstrm, 1);
907 BITS_PARSE("general_interlaced_source_flag", value, ps_bitstrm, 1);
910 BITS_PARSE("general_non_packed_constraint_flag", value, ps_bitstrm, 1);
913 BITS_PARSE("general_frame_only_constraint_flag", value, ps_bitstrm, 1);
916 BITS_PARSE("XXX_reserved_zero_44bits[0..15]", value, ps_bitstrm, 16);
918 BITS_PARSE("XXX_reserved_zero_44bits[16..31]", value, ps_bitstrm, 16);
920 BITS_PARSE("XXX_reserved_zero_44bits[32..43]", value, ps_bitstrm, 12);
936 * @param[in] ps_bitstrm
955 static IHEVCD_ERROR_T ihevcd_profile_tier_level(bitstrm_t *ps_bitstrm,
966 ret = ihevcd_parse_profile_tier_level_layer(ps_bitstrm, &ps_ptl->s_ptl_gen);
973 BITS_PARSE("general_level_idc", value, ps_bitstrm, 8);
979 BITS_PARSE("sub_layer_profile_present_flag[i]", value, ps_bitstrm, 1);
982 BITS_PARSE("sub_layer_level_present_flag[i]", value, ps_bitstrm, 1);
990 BITS_PARSE("reserved_zero_2bits", value, ps_bitstrm, 2);
998 ret = ihevcd_parse_profile_tier_level_layer(ps_bitstrm,
1003 BITS_PARSE("sub_layer_level_idc[i]", value, ps_bitstrm, 8);
1042 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm;
1053 BITS_PARSE("scaling_list_pred_mode_flag", scaling_list_pred_mode_flag, ps_bitstrm, 1);
1062 ps_bitstrm);
1077 ps_bitstrm);
1089 scaling_list_delta_coef, ps_bitstrm);
1102 scaling_list_delta_coef, ps_bitstrm);
1122 scaling_list_delta_coef, ps_bitstrm);
1175 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm;
1176 BITS_PARSE("vps_video_parameter_set_id", value, ps_bitstrm, 4);
1190 BITS_PARSE("vps_reserved_three_2bits", value, ps_bitstrm, 2);
1193 BITS_PARSE("vps_max_layers_minus1", value, ps_bitstrm, 6);
1198 BITS_PARSE("vps_max_sub_layers_minus1", value, ps_bitstrm, 3);
1203 BITS_PARSE("vps_temporal_id_nesting_flag", value, ps_bitstrm, 1);
1206 BITS_PARSE("vps_reserved_ffff_16bits", value, ps_bitstrm, 16);
1209 ret = ihevcd_profile_tier_level(ps_bitstrm, &(ps_vps->s_ptl),
1212 BITS_PARSE("vps_sub_layer_ordering_info_present_flag", value, ps_bitstrm, 1);
1218 UEV_PARSE("vps_max_dec_pic_buffering[i]", value, ps_bitstrm);
1222 UEV_PARSE("vps_num_reorder_pics[i]", value, ps_bitstrm);
1225 UEV_PARSE("vps_max_latency_increase[i]", value, ps_bitstrm);
1231 BITS_PARSE("vps_max_layer_id", value, ps_bitstrm, 6);
1234 UEV_PARSE("vps_num_layer_sets_minus1", value, ps_bitstrm);
1237 BITS_PARSE("vps_timing_info_present_flag", value, ps_bitstrm, 1);
1279 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm;
1283 BITS_PARSE("video_parameter_set_id", value, ps_bitstrm, 4);
1287 BITS_PARSE("sps_max_sub_layers_minus1", value, ps_bitstrm, 3);
1291 BITS_PARSE("sps_temporal_id_nesting_flag", value, ps_bitstrm, 1);
1295 ret = ihevcd_profile_tier_level(ps_bitstrm, &(s_ptl), 1,
1298 UEV_PARSE("seq_parameter_set_id", value, ps_bitstrm);
1325 UEV_PARSE("chroma_format_idc", value, ps_bitstrm);
1336 BITS_PARSE("separate_colour_plane_flag", value, ps_bitstrm, 1);
1344 UEV_PARSE("pic_width_in_luma_samples", value, ps_bitstrm);
1347 UEV_PARSE("pic_height_in_luma_samples", value, ps_bitstrm);
1359 BITS_PARSE("pic_cropping_flag", value, ps_bitstrm, 1);
1365 UEV_PARSE("pic_crop_left_offset", value, ps_bitstrm);
1372 UEV_PARSE("pic_crop_right_offset", value, ps_bitstrm);
1379 UEV_PARSE("pic_crop_top_offset", value, ps_bitstrm);
1386 UEV_PARSE("pic_crop_bottom_offset", value, ps_bitstrm);
1402 UEV_PARSE("bit_depth_luma_minus8", value, ps_bitstrm);
1406 UEV_PARSE("bit_depth_chroma_minus8", value, ps_bitstrm);
1410 UEV_PARSE("log2_max_pic_order_cnt_lsb_minus4", value, ps_bitstrm);
1413 BITS_PARSE("sps_sub_layer_ordering_info_present_flag", value, ps_bitstrm, 1);
1420 UEV_PARSE("max_dec_pic_buffering", value, ps_bitstrm);
1428 UEV_PARSE("num_reorder_pics", value, ps_bitstrm);
1436 UEV_PARSE("max_latency_increase", value, ps_bitstrm);
1468 UEV_PARSE("log2_min_coding_block_size_minus3", value, ps_bitstrm);
1471 UEV_PARSE("log2_diff_max_min_coding_block_size", value, ps_bitstrm);
1476 UEV_PARSE("log2_min_transform_block_size_minus2", value, ps_bitstrm);
1479 UEV_PARSE("log2_diff_max_min_transform_block_size", value, ps_bitstrm);
1507 UEV_PARSE("max_transform_hierarchy_depth_inter", value, ps_bitstrm);
1510 UEV_PARSE("max_transform_hierarchy_depth_intra", value, ps_bitstrm);
1514 BITS_PARSE("scaling_list_enabled_flag", value, ps_bitstrm, 1);
1520 BITS_PARSE("sps_scaling_list_data_present_flag", value, ps_bitstrm, 1);
1531 BITS_PARSE("asymmetric_motion_partitions_enabled_flag", value, ps_bitstrm, 1);
1534 BITS_PARSE("sample_adaptive_offset_enabled_flag", value, ps_bitstrm, 1);
1537 BITS_PARSE("pcm_enabled_flag", value, ps_bitstrm, 1);
1542 BITS_PARSE("pcm_sample_bit_depth_luma", value, ps_bitstrm, 4);
1545 BITS_PARSE("pcm_sample_bit_depth_chroma", value, ps_bitstrm, 4);
1548 UEV_PARSE("log2_min_pcm_coding_block_size_minus3", value, ps_bitstrm);
1551 UEV_PARSE("log2_diff_max_min_pcm_coding_block_size", value, ps_bitstrm);
1553 BITS_PARSE("pcm_loop_filter_disable_flag", value, ps_bitstrm, 1);
1557 UEV_PARSE("num_short_term_ref_pic_sets", value, ps_bitstrm);
1563 ihevcd_short_term_ref_pic_set(ps_bitstrm, &ps_sps->as_stref_picset[0], ps_sps->i1_num_short_term_ref_pic_sets, i, &ps_sps->as_stref_picset[i]);
1565 BITS_PARSE("long_term_ref_pics_present_flag", value, ps_bitstrm, 1);
1570 UEV_PARSE("num_long_term_ref_pics_sps", value, ps_bitstrm);
1575 BITS_PARSE("lt_ref_pic_poc_lsb_sps[ i ]", value, ps_bitstrm, ps_sps->i1_log2_max_pic_order_cnt_lsb);
1578 BITS_PARSE("used_by_curr_pic_lt_sps_flag[ i ]", value, ps_bitstrm, 1);
1583 BITS_PARSE("sps_temporal_mvp_enable_flag", value, ps_bitstrm, 1);
1587 BITS_PARSE("sps_strong_intra_smoothing_enable_flag", value, ps_bitstrm, 1);
1590 BITS_PARSE("vui_parameters_present_flag", value, ps_bitstrm, 1);
1595 ret = ihevcd_parse_vui_parameters(ps_bitstrm,
1601 BITS_PARSE("sps_extension_flag", value, ps_bitstrm, 1);
1603 if((UWORD8 *)ps_bitstrm->pu4_buf > ps_bitstrm->pu1_buf_max)
1791 bitstrm_t *ps_bitstrm = &ps_codec->s_parse.s_bitstrm;
1797 UEV_PARSE("pic_parameter_set_id", value, ps_bitstrm);
1813 UEV_PARSE("seq_parameter_set_id", value, ps_bitstrm);
1833 BITS_PARSE("dependent_slices_enabled_flag", value, ps_bitstrm, 1);
1836 BITS_PARSE("output_flag_present_flag", value, ps_bitstrm, 1);
1839 BITS_PARSE("num_extra_slice_header_bits", value, ps_bitstrm, 3);
1843 BITS_PARSE("sign_data_hiding_flag", value, ps_bitstrm, 1);
1846 BITS_PARSE("cabac_init_present_flag", value, ps_bitstrm, 1);
1849 UEV_PARSE("num_ref_idx_l0_default_active_minus1", value, ps_bitstrm);
1852 UEV_PARSE("num_ref_idx_l1_default_active_minus1", value, ps_bitstrm);
1855 SEV_PARSE("pic_init_qp_minus26", value, ps_bitstrm);
1858 BITS_PARSE("constrained_intra_pred_flag", value, ps_bitstrm, 1);
1861 BITS_PARSE("transform_skip_enabled_flag", value, ps_bitstrm, 1);
1864 BITS_PARSE("cu_qp_delta_enabled_flag", value, ps_bitstrm, 1);
1869 UEV_PARSE("diff_cu_qp_delta_depth", value, ps_bitstrm);
1878 SEV_PARSE("cb_qp_offset", value, ps_bitstrm);
1882 SEV_PARSE("cr_qp_offset", value, ps_bitstrm);
1886 BITS_PARSE("slicelevel_chroma_qp_flag", value, ps_bitstrm, 1);
1889 BITS_PARSE("weighted_pred_flag", value, ps_bitstrm, 1);
1892 BITS_PARSE("weighted_bipred_flag", value, ps_bitstrm, 1);
1895 BITS_PARSE("transquant_bypass_enable_flag", value, ps_bitstrm, 1);
1898 BITS_PARSE("tiles_enabled_flag", value, ps_bitstrm, 1);
1914 BITS_PARSE("entropy_coding_sync_enabled_flag", value, ps_bitstrm, 1);
1926 UEV_PARSE("num_tile_columns_minus1", value, ps_bitstrm);
1929 UEV_PARSE("num_tile_rows_minus1", value, ps_bitstrm);
1938 BITS_PARSE("uniform_spacing_flag", value, ps_bitstrm, 1);
1956 UEV_PARSE("column_width_minus1[ i ]", value, ps_bitstrm);
1992 UEV_PARSE("row_height_minus1[ i ]", value, ps_bitstrm);
2021 BITS_PARSE("loop_filter_across_tiles_enabled_flag", value, ps_bitstrm, 1);
2039 BITS_PARSE("loop_filter_across_slices_enabled_flag", value, ps_bitstrm, 1);
2042 BITS_PARSE("deblocking_filter_control_present_flag", value, ps_bitstrm, 1);
2054 BITS_PARSE("deblocking_filter_override_enabled_flag", value, ps_bitstrm, 1);
2057 BITS_PARSE("pic_disable_deblocking_filter_flag", value, ps_bitstrm, 1);
2063 SEV_PARSE("pps_beta_offset_div2", value, ps_bitstrm);
2066 SEV_PARSE("pps_tc_offset_div2", value, ps_bitstrm);
2072 BITS_PARSE("pps_scaling_list_data_present_flag", value, ps_bitstrm, 1);
2081 BITS_PARSE("lists_modification_present_flag", value, ps_bitstrm, 1);
2083 UEV_PARSE("log2_parallel_merge_level_minus2", value, ps_bitstrm);
2086 BITS_PARSE("slice_header_extension_present_flag", value, ps_bitstrm, 1);
2089 BITS_PARSE("pps_extension_flag", value, ps_bitstrm, 1);
2091 if((UWORD8 *)ps_bitstrm->pu4_buf > ps_bitstrm->pu1_buf_max)
2136 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm;
2151 UEV_PARSE("bp_seq_parameter_set_id", value, ps_bitstrm);
2156 BITS_PARSE("irap_cpb_params_present_flag", value, ps_bitstrm, 1);
2164 ps_bitstrm,
2171 ps_bitstrm,
2182 BITS_PARSE("concatenation_flag", value, ps_bitstrm, 1);
2187 ps_bitstrm,
2200 ps_bitstrm,
2208 ps_bitstrm,
2219 ps_bitstrm,
2227 ps_bitstrm,
2244 ps_bitstrm,
2252 ps_bitstrm,
2263 ps_bitstrm,
2271 ps_bitstrm,
2286 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm;
2300 BITS_PARSE("pic_struct", value, ps_bitstrm, 4);
2303 BITS_PARSE("source_scan_type", value, ps_bitstrm, 2);
2306 BITS_PARSE("duplicate_flag", value, ps_bitstrm, 1);
2322 BITS_PARSE("au_cpb_removal_delay_minus1", value, ps_bitstrm,
2326 BITS_PARSE("pic_dpb_output_delay", value, ps_bitstrm,
2332 BITS_PARSE("pic_dpb_output_du_delay", value, ps_bitstrm,
2343 UEV_PARSE("num_decoding_units_minus1", value, ps_bitstrm);
2352 BITS_PARSE("du_common_cpb_removal_delay_flag", value, ps_bitstrm, 1);
2359 ps_bitstrm,
2368 UEV_PARSE("num_nalus_in_du_minus1", value, ps_bitstrm);
2376 ps_bitstrm,
2392 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm;
2400 BITS_PARSE("num_clock_ts", value, ps_bitstrm, 2);
2405 BITS_PARSE("clock_timestamp_flag[i]", value, ps_bitstrm, 1);
2410 BITS_PARSE("units_field_based_flag[i]", value, ps_bitstrm, 1);
2413 BITS_PARSE("counting_type[i]", value, ps_bitstrm, 5);
2416 BITS_PARSE("full_timestamp_flag[i]", value, ps_bitstrm, 1);
2419 BITS_PARSE("discontinuity_flag[i]", value, ps_bitstrm, 1);
2422 BITS_PARSE("cnt_dropped_flag[i]", value, ps_bitstrm, 1);
2425 BITS_PARSE("n_frames[i]", value, ps_bitstrm, 9);
2430 BITS_PARSE("seconds_value[i]", value, ps_bitstrm, 6);
2433 BITS_PARSE("minutes_value[i]", value, ps_bitstrm, 6);
2436 BITS_PARSE("hours_value[i]", value, ps_bitstrm, 5);
2441 BITS_PARSE("seconds_flag[i]", value, ps_bitstrm, 1);
2446 BITS_PARSE("seconds_value[i]", value, ps_bitstrm, 6);
2449 BITS_PARSE("minutes_flag[i]", value, ps_bitstrm, 1);
2454 BITS_PARSE("minutes_value[i]", value, ps_bitstrm, 6);
2457 BITS_PARSE("hours_flag[i]", value, ps_bitstrm, 1);
2462 BITS_PARSE("hours_value[i]", value, ps_bitstrm, 5);
2469 BITS_PARSE("time_offset_length[i]", value, ps_bitstrm, 5);
2474 BITS_PARSE("time_offset_value[i]", value, ps_bitstrm,
2491 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm;
2502 BITS_PARSE("display_primaries_x[c]", value, ps_bitstrm, 16);
2505 BITS_PARSE("display_primaries_y[c]", value, ps_bitstrm, 16);
2509 BITS_PARSE("white_point_x", value, ps_bitstrm, 16);
2512 BITS_PARSE("white_point_y", value, ps_bitstrm, 16);
2515 BITS_PARSE("max_display_mastering_luminance", value, ps_bitstrm, 32);
2518 BITS_PARSE("min_display_mastering_luminance", value, ps_bitstrm, 32);
2528 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm;
2548 BITS_PARSE("itu_t_t35_country_code", value, ps_bitstrm, 8);
2557 BITS_PARSE("itu_t_t35_country_code_extension_byte", value, ps_bitstrm,
2567 BITS_PARSE("itu_t_t35_payload_byte", value, ps_bitstrm, 8);
2583 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm;
2632 ihevcd_bits_flush(ps_bitstrm, 4 * 8);
2635 ihevcd_bits_flush(ps_bitstrm, (u4_payload_size - i * 4) * 8);
2647 ihevcd_bits_flush(ps_bitstrm, 8);
2662 ihevcd_bits_flush(ps_bitstrm, 4 * 8);
2665 ihevcd_bits_flush(ps_bitstrm, (u4_payload_size - i * 4) * 8);
2677 ihevcd_bits_flush(ps_bitstrm, 8);
2692 payload_bits_remaining = ihevcd_bits_num_bits_remaining(ps_bitstrm);
2706 u4_reserved_payload_extension_data, ps_bitstrm, 1);
2710 final_bits = ihevcd_bits_nxt(ps_bitstrm, payload_bits_remaining);
2721 u4_reserved_payload_extension_data, ps_bitstrm, 1);
2725 BITS_PARSE("payload_bit_equal_to_one", u4_dummy, ps_bitstrm, 1);
2729 BITS_PARSE("payload_bit_equal_to_zero", u4_dummy, ps_bitstrm, 1);
2785 bitstrm_t *ps_bitstrm = &ps_parse->s_bitstrm;
2788 u4_bits_left = ihevcd_bits_num_bits_remaining(ps_bitstrm);
2792 while(ihevcd_bits_nxt(ps_bitstrm, 8) == 0xFF)
2794 ihevcd_bits_flush(ps_bitstrm, 8); /* equal to 0xFF */
2798 BITS_PARSE("last_payload_type_byte", value, ps_bitstrm, 8);
2803 while(ihevcd_bits_nxt(ps_bitstrm, 8) == 0xFF)
2805 ihevcd_bits_flush(ps_bitstrm, 8); /* equal to 0xFF */
2809 BITS_PARSE("last_payload_size_byte", value, ps_bitstrm, 8);
2813 u4_bits_left = ihevcd_bits_num_bits_remaining(ps_bitstrm);
2819 u4_bits_left = ihevcd_bits_num_bits_remaining(ps_bitstrm);