Lines Matching refs:ps_bitstrm
145 bitstrm_t *ps_bitstrm, WORD32 nal_unit_type, WORD32 nuh_temporal_id) in ihevce_generate_nal_unit_header() argument
155 ps_bitstrm, in ihevce_generate_nal_unit_header()
161 PUT_BITS(ps_bitstrm, 0, 6, return_status); in ihevce_generate_nal_unit_header()
164 PUT_BITS(ps_bitstrm, (nuh_temporal_id + 1), 3, return_status); in ihevce_generate_nal_unit_header()
189 ihevce_generate_when_profile_present(bitstrm_t *ps_bitstrm, profile_tier_lvl_t *ps_ptl) in ihevce_generate_when_profile_present() argument
195 PUT_BITS(ps_bitstrm, ps_ptl->i1_profile_space, 2, return_status); in ihevce_generate_when_profile_present()
199 PUT_BITS(ps_bitstrm, ps_ptl->i1_tier_flag, 1, return_status); in ihevce_generate_when_profile_present()
203 PUT_BITS(ps_bitstrm, ps_ptl->i1_profile_idc, 5, return_status); in ihevce_generate_when_profile_present()
209 PUT_BITS(ps_bitstrm, ps_ptl->ai1_profile_compatibility_flag[i], 1, return_status); in ihevce_generate_when_profile_present()
215 PUT_BITS(ps_bitstrm, ps_ptl->i1_general_progressive_source_flag, 1, return_status); in ihevce_generate_when_profile_present()
219 PUT_BITS(ps_bitstrm, ps_ptl->i1_general_interlaced_source_flag, 1, return_status); in ihevce_generate_when_profile_present()
223 PUT_BITS(ps_bitstrm, ps_ptl->i1_general_non_packed_constraint_flag, 1, return_status); in ihevce_generate_when_profile_present()
228 PUT_BITS(ps_bitstrm, ps_ptl->i1_frame_only_constraint_flag, 1, return_status); in ihevce_generate_when_profile_present()
232 PUT_BITS(ps_bitstrm, ps_ptl->i1_general_max_12bit_constraint_flag, 1, return_status); in ihevce_generate_when_profile_present()
237 PUT_BITS(ps_bitstrm, ps_ptl->i1_general_max_10bit_constraint_flag, 1, return_status); in ihevce_generate_when_profile_present()
242 PUT_BITS(ps_bitstrm, ps_ptl->i1_general_max_8bit_constraint_flag, 1, return_status); in ihevce_generate_when_profile_present()
247 PUT_BITS(ps_bitstrm, ps_ptl->i1_general_max_422chroma_constraint_flag, 1, return_status); in ihevce_generate_when_profile_present()
253 PUT_BITS(ps_bitstrm, ps_ptl->i1_general_max_420chroma_constraint_flag, 1, return_status); in ihevce_generate_when_profile_present()
259 PUT_BITS(ps_bitstrm, ps_ptl->i1_general_max_monochrome_constraint_flag, 1, return_status); in ihevce_generate_when_profile_present()
265 PUT_BITS(ps_bitstrm, ps_ptl->i1_general_intra_constraint_flag, 1, return_status); in ihevce_generate_when_profile_present()
269 PUT_BITS(ps_bitstrm, ps_ptl->i1_general_one_picture_only_constraint_flag, 1, return_status); in ihevce_generate_when_profile_present()
275 PUT_BITS(ps_bitstrm, ps_ptl->i1_general_lower_bit_rate_constraint_flag, 1, return_status); in ihevce_generate_when_profile_present()
281 PUT_BITS(ps_bitstrm, 0, 16, return_status); in ihevce_generate_when_profile_present()
282 PUT_BITS(ps_bitstrm, 0, 16, return_status); in ihevce_generate_when_profile_present()
283 PUT_BITS(ps_bitstrm, 0, 3, return_status); in ihevce_generate_when_profile_present()
314 bitstrm_t *ps_bitstrm, in ihevce_generate_profile_tier_level() argument
324 ihevce_generate_when_profile_present(ps_bitstrm, &ps_ptl->s_ptl_gen); in ihevce_generate_profile_tier_level()
328 PUT_BITS(ps_bitstrm, ps_ptl->s_ptl_gen.u1_level_idc, 8, return_status); in ihevce_generate_profile_tier_level()
334 PUT_BITS(ps_bitstrm, ps_ptl->ai1_sub_layer_profile_present_flag[i], 1, return_status); in ihevce_generate_profile_tier_level()
339 PUT_BITS(ps_bitstrm, ps_ptl->ai1_sub_layer_level_present_flag[i], 1, return_status); in ihevce_generate_profile_tier_level()
349 PUT_BITS(ps_bitstrm, 0, 2, return_status); in ihevce_generate_profile_tier_level()
358 ihevce_generate_when_profile_present(ps_bitstrm, &ps_ptl->as_ptl_sub[i]); in ihevce_generate_profile_tier_level()
364 PUT_BITS(ps_bitstrm, ps_ptl->as_ptl_sub[i].u1_level_idc, 8, return_status); in ihevce_generate_profile_tier_level()
400 bitstrm_t *ps_bitstrm, in ihevce_short_term_ref_pic_set() argument
415 ps_bitstrm, ps_stref_picset->i1_inter_ref_pic_set_prediction_flag, 1, return_status); in ihevce_short_term_ref_pic_set()
425 PUT_BITS_UEV(ps_bitstrm, ps_stref_picset->i1_num_neg_pics, return_status); in ihevce_short_term_ref_pic_set()
429 PUT_BITS_UEV(ps_bitstrm, ps_stref_picset->i1_num_pos_pics, return_status); in ihevce_short_term_ref_pic_set()
435 PUT_BITS_UEV(ps_bitstrm, ps_stref_picset->ai2_delta_poc[i] - 1, return_status); in ihevce_short_term_ref_pic_set()
439 PUT_BITS(ps_bitstrm, ps_stref_picset->ai1_used[i], 1, return_status); in ihevce_short_term_ref_pic_set()
451 PUT_BITS_UEV(ps_bitstrm, ps_stref_picset->ai2_delta_poc[i] - 1, return_status); in ihevce_short_term_ref_pic_set()
455 PUT_BITS(ps_bitstrm, ps_stref_picset->ai1_used[i], 1, return_status); in ihevce_short_term_ref_pic_set()
486 bitstrm_t *ps_bitstrm, slice_header_t *ps_slice_hdr, WORD32 i4_NumPocTotalCurr) in ref_pic_list_modification() argument
493 ps_bitstrm, ps_slice_hdr->s_rplm.i1_ref_pic_list_modification_flag_l0, 1, return_status); in ref_pic_list_modification()
505 PUT_BITS(ps_bitstrm, ps_slice_hdr->s_rplm.i1_list_entry_l0[i], num_bits, return_status); in ref_pic_list_modification()
514 … ps_bitstrm, ps_slice_hdr->s_rplm.i1_ref_pic_list_modification_flag_l1, 1, return_status); in ref_pic_list_modification()
527 ps_bitstrm, ps_slice_hdr->s_rplm.i1_list_entry_l1[i], num_bits, return_status); in ref_pic_list_modification()
561 bitstrm_t *ps_bitstrm, sps_t *ps_sps, pps_t *ps_pps, slice_header_t *ps_slice_hdr) in ihevce_generate_pred_weight_table() argument
574 PUT_BITS_UEV(ps_bitstrm, u4_luma_log2_weight_denom, return_status); in ihevce_generate_pred_weight_table()
581 ps_bitstrm, chroma_log2_weight_denom - u4_luma_log2_weight_denom, return_status); in ihevce_generate_pred_weight_table()
589 PUT_BITS(ps_bitstrm, ps_wt_ofst->i1_luma_weight_l0_flag[i], 1, return_status); in ihevce_generate_pred_weight_table()
600 PUT_BITS(ps_bitstrm, ps_wt_ofst->i1_chroma_weight_l0_flag[i], 1, return_status); in ihevce_generate_pred_weight_table()
616 ps_bitstrm, ps_wt_ofst->i2_luma_weight_l0[i] - delta_luma_weight, return_status); in ihevce_generate_pred_weight_table()
621 PUT_BITS_SEV(ps_bitstrm, ps_wt_ofst->i2_luma_offset_l0[i], return_status); in ihevce_generate_pred_weight_table()
644 PUT_BITS_SEV(ps_bitstrm, delta_chroma_weight_l0[0], return_status); in ihevce_generate_pred_weight_table()
648 PUT_BITS_SEV(ps_bitstrm, delta_chroma_offset_l0[0], return_status); in ihevce_generate_pred_weight_table()
652 PUT_BITS_SEV(ps_bitstrm, delta_chroma_weight_l0[1], return_status); in ihevce_generate_pred_weight_table()
656 PUT_BITS_SEV(ps_bitstrm, delta_chroma_offset_l0[1], return_status); in ihevce_generate_pred_weight_table()
666 PUT_BITS(ps_bitstrm, ps_wt_ofst->i1_luma_weight_l1_flag[i], 1, return_status); in ihevce_generate_pred_weight_table()
677 PUT_BITS(ps_bitstrm, ps_wt_ofst->i1_chroma_weight_l1_flag[i], 1, return_status); in ihevce_generate_pred_weight_table()
691 ps_bitstrm, in ihevce_generate_pred_weight_table()
699 PUT_BITS_SEV(ps_bitstrm, ps_wt_ofst->i2_luma_offset_l1[i], return_status); in ihevce_generate_pred_weight_table()
724 PUT_BITS_SEV(ps_bitstrm, delta_chroma_weight_l1[0], return_status); in ihevce_generate_pred_weight_table()
728 PUT_BITS_SEV(ps_bitstrm, delta_chroma_offset_l1[0], return_status); in ihevce_generate_pred_weight_table()
732 PUT_BITS_SEV(ps_bitstrm, delta_chroma_weight_l1[1], return_status); in ihevce_generate_pred_weight_table()
736 PUT_BITS_SEV(ps_bitstrm, delta_chroma_offset_l1[1], return_status); in ihevce_generate_pred_weight_table()
763 WORD32 ihevce_generate_aud(bitstrm_t *ps_bitstrm, WORD32 pic_type) in ihevce_generate_aud() argument
768 return_status = ihevce_put_nal_start_code_prefix(ps_bitstrm, 1); in ihevce_generate_aud()
771 return_status |= ihevce_generate_nal_unit_header(ps_bitstrm, NAL_AUD, 0); in ihevce_generate_aud()
774 PUT_BITS(ps_bitstrm, pic_type, 3, return_status); in ihevce_generate_aud()
777 ihevce_put_rbsp_trailing_bits(ps_bitstrm); in ihevce_generate_aud()
797 WORD32 ihevce_generate_eos(bitstrm_t *ps_bitstrm) in ihevce_generate_eos() argument
802 return_status = ihevce_put_nal_start_code_prefix(ps_bitstrm, 1); in ihevce_generate_eos()
805 return_status |= ihevce_generate_nal_unit_header(ps_bitstrm, NAL_EOS, 0); in ihevce_generate_eos()
807 ihevce_put_rbsp_trailing_bits(ps_bitstrm); in ihevce_generate_eos()
830 WORD32 ihevce_generate_vps(bitstrm_t *ps_bitstrm, vps_t *ps_vps) in ihevce_generate_vps() argument
837 ihevce_put_nal_start_code_prefix(ps_bitstrm, 1); in ihevce_generate_vps()
840 ihevce_generate_nal_unit_header(ps_bitstrm, NAL_VPS, 0); in ihevce_generate_vps()
843 PUT_BITS(ps_bitstrm, ps_vps->i1_vps_id, 4, return_status); in ihevce_generate_vps()
847 PUT_BITS(ps_bitstrm, 3, 2, return_status); in ihevce_generate_vps()
851 PUT_BITS(ps_bitstrm, 0, 6, return_status); in ihevce_generate_vps()
855 PUT_BITS(ps_bitstrm, i1_vps_max_sub_layers_minus1, 3, return_status); in ihevce_generate_vps()
859 PUT_BITS(ps_bitstrm, ps_vps->i1_vps_temporal_id_nesting_flag, 1, return_status); in ihevce_generate_vps()
863 PUT_BITS(ps_bitstrm, 0xffff, 16, return_status); in ihevce_generate_vps()
867 ihevce_generate_profile_tier_level(ps_bitstrm, &ps_vps->s_ptl, 1, i1_vps_max_sub_layers_minus1); in ihevce_generate_vps()
870 PUT_BITS(ps_bitstrm, ps_vps->i1_sub_layer_ordering_info_present_flag, 1, return_status); in ihevce_generate_vps()
880 PUT_BITS_UEV(ps_bitstrm, ps_vps->ai1_vps_max_dec_pic_buffering[i], return_status); in ihevce_generate_vps()
885 PUT_BITS_UEV(ps_bitstrm, ps_vps->ai1_vps_max_num_reorder_pics[i], return_status); in ihevce_generate_vps()
889 PUT_BITS_UEV(ps_bitstrm, ps_vps->ai1_vps_max_latency_increase[i], return_status); in ihevce_generate_vps()
894 PUT_BITS(ps_bitstrm, ps_vps->i1_vps_max_nuh_reserved_zero_layer_id, 6, return_status); in ihevce_generate_vps()
898 PUT_BITS_UEV(ps_bitstrm, 0, return_status); in ihevce_generate_vps()
902 PUT_BITS(ps_bitstrm, 0, 1, return_status); in ihevce_generate_vps()
906 PUT_BITS(ps_bitstrm, 0, 1, return_status); in ihevce_generate_vps()
910 ihevce_put_rbsp_trailing_bits(ps_bitstrm); in ihevce_generate_vps()
933 WORD32 ihevce_generate_sps(bitstrm_t *ps_bitstrm, sps_t *ps_sps) in ihevce_generate_sps() argument
954 return_status = ihevce_put_nal_start_code_prefix(ps_bitstrm, 1); in ihevce_generate_sps()
957 return_status |= ihevce_generate_nal_unit_header(ps_bitstrm, NAL_SPS, 0); in ihevce_generate_sps()
960 PUT_BITS(ps_bitstrm, ps_sps->i1_vps_id, 4, return_status); in ihevce_generate_sps()
964 PUT_BITS(ps_bitstrm, i1_max_sub_layers_minus1, 3, return_status); in ihevce_generate_sps()
968 PUT_BITS(ps_bitstrm, ps_sps->i1_sps_temporal_id_nesting_flag, 1, return_status); in ihevce_generate_sps()
972 ihevce_generate_profile_tier_level(ps_bitstrm, &ps_sps->s_ptl, 1, i1_max_sub_layers_minus1); in ihevce_generate_sps()
975 PUT_BITS_UEV(ps_bitstrm, ps_sps->i1_sps_id, return_status); in ihevce_generate_sps()
979 PUT_BITS_UEV(ps_bitstrm, ps_sps->i1_chroma_format_idc, return_status); in ihevce_generate_sps()
985 PUT_BITS(ps_bitstrm, 1, 1, return_status); in ihevce_generate_sps()
990 PUT_BITS_UEV(ps_bitstrm, ps_sps->i2_pic_width_in_luma_samples, return_status); in ihevce_generate_sps()
994 PUT_BITS_UEV(ps_bitstrm, ps_sps->i2_pic_height_in_luma_samples, return_status); in ihevce_generate_sps()
998 PUT_BITS(ps_bitstrm, ps_sps->i1_pic_cropping_flag, 1, return_status); in ihevce_generate_sps()
1004 PUT_BITS_UEV(ps_bitstrm, ps_sps->i2_pic_crop_left_offset, return_status); in ihevce_generate_sps()
1008 PUT_BITS_UEV(ps_bitstrm, ps_sps->i2_pic_crop_right_offset, return_status); in ihevce_generate_sps()
1012 PUT_BITS_UEV(ps_bitstrm, ps_sps->i2_pic_crop_top_offset, return_status); in ihevce_generate_sps()
1016 PUT_BITS_UEV(ps_bitstrm, ps_sps->i2_pic_crop_bottom_offset, return_status); in ihevce_generate_sps()
1021 PUT_BITS_UEV(ps_bitstrm, ps_sps->i1_bit_depth_luma_minus8, return_status); in ihevce_generate_sps()
1025 PUT_BITS_UEV(ps_bitstrm, ps_sps->i1_bit_depth_chroma_minus8, return_status); in ihevce_generate_sps()
1029 PUT_BITS_UEV(ps_bitstrm, u4_log2_max_pic_order_cnt_lsb - 4, return_status); in ihevce_generate_sps()
1033 PUT_BITS(ps_bitstrm, ps_sps->i1_sps_sub_layer_ordering_info_present_flag, 1, return_status); in ihevce_generate_sps()
1043 PUT_BITS_UEV(ps_bitstrm, ps_sps->ai1_sps_max_dec_pic_buffering[i], return_status); in ihevce_generate_sps()
1047 PUT_BITS_UEV(ps_bitstrm, ps_sps->ai1_sps_max_num_reorder_pics[i], return_status); in ihevce_generate_sps()
1051 PUT_BITS_UEV(ps_bitstrm, ps_sps->ai1_sps_max_latency_increase[i], return_status); in ihevce_generate_sps()
1056 PUT_BITS_UEV(ps_bitstrm, u4_log2_min_coding_block_size_minus3, return_status); in ihevce_generate_sps()
1060 PUT_BITS_UEV(ps_bitstrm, u4_log2_diff_max_min_coding_block_size, return_status); in ihevce_generate_sps()
1064 PUT_BITS_UEV(ps_bitstrm, u4_log2_min_transform_block_size_minus2, return_status); in ihevce_generate_sps()
1068 PUT_BITS_UEV(ps_bitstrm, u4_log2_diff_max_min_transform_block_size, return_status); in ihevce_generate_sps()
1073 PUT_BITS_UEV(ps_bitstrm, ps_sps->i1_max_transform_hierarchy_depth_inter, return_status); in ihevce_generate_sps()
1078 PUT_BITS_UEV(ps_bitstrm, ps_sps->i1_max_transform_hierarchy_depth_intra, return_status); in ihevce_generate_sps()
1083 PUT_BITS(ps_bitstrm, ps_sps->i1_scaling_list_enable_flag, 1, return_status); in ihevce_generate_sps()
1089 PUT_BITS(ps_bitstrm, ps_sps->i1_sps_scaling_list_data_present_flag, 1, return_status); in ihevce_generate_sps()
1097 ihevce_generate_scaling_list_data(ps_bitstrm); in ihevce_generate_sps()
1103 PUT_BITS(ps_bitstrm, ps_sps->i1_amp_enabled_flag, 1, return_status); in ihevce_generate_sps()
1107 PUT_BITS(ps_bitstrm, ps_sps->i1_sample_adaptive_offset_enabled_flag, 1, return_status); in ihevce_generate_sps()
1112 PUT_BITS(ps_bitstrm, ps_sps->i1_pcm_enabled_flag, 1, return_status); in ihevce_generate_sps()
1121 PUT_BITS(ps_bitstrm, ps_sps->i1_pcm_sample_bit_depth_luma - 1, 4, return_status); in ihevce_generate_sps()
1125 PUT_BITS(ps_bitstrm, ps_sps->i1_pcm_sample_bit_depth_chroma - 1, 4, return_status); in ihevce_generate_sps()
1129 PUT_BITS_UEV(ps_bitstrm, u4_log2_min_pcm_coding_block_size - 3, return_status); in ihevce_generate_sps()
1134 PUT_BITS_UEV(ps_bitstrm, u4_log2_diff_max_min_pcm_coding_block_size, return_status); in ihevce_generate_sps()
1139 PUT_BITS(ps_bitstrm, ps_sps->i1_pcm_loop_filter_disable_flag, 1, return_status); in ihevce_generate_sps()
1144 PUT_BITS_UEV(ps_bitstrm, ps_sps->i1_num_short_term_ref_pic_sets, return_status); in ihevce_generate_sps()
1151 ps_bitstrm, in ihevce_generate_sps()
1159 PUT_BITS(ps_bitstrm, ps_sps->i1_long_term_ref_pics_present_flag, 1, return_status); in ihevce_generate_sps()
1165 PUT_BITS_UEV(ps_bitstrm, ps_sps->i1_num_long_term_ref_pics_sps, return_status); in ihevce_generate_sps()
1172 ps_bitstrm, in ihevce_generate_sps()
1179 PUT_BITS(ps_bitstrm, ps_sps->ai1_used_by_curr_pic_lt_sps_flag[i], 1, return_status); in ihevce_generate_sps()
1186 PUT_BITS(ps_bitstrm, ps_sps->i1_sps_temporal_mvp_enable_flag, 1, return_status); in ihevce_generate_sps()
1191 PUT_BITS(ps_bitstrm, ps_sps->i1_strong_intra_smoothing_enable_flag, 1, return_status); in ihevce_generate_sps()
1197 PUT_BITS(ps_bitstrm, ps_sps->i1_vui_parameters_present_flag, 1, return_status); in ihevce_generate_sps()
1205 ihevce_generate_vui(ps_bitstrm, ps_sps, ps_sps->s_vui_parameters); in ihevce_generate_sps()
1209 PUT_BITS(ps_bitstrm, 0, 1, return_status); in ihevce_generate_sps()
1213 ihevce_put_rbsp_trailing_bits(ps_bitstrm); in ihevce_generate_sps()
1236 WORD32 ihevce_generate_pps(bitstrm_t *ps_bitstrm, pps_t *ps_pps) in ihevce_generate_pps() argument
1242 return_status = ihevce_put_nal_start_code_prefix(ps_bitstrm, 1); in ihevce_generate_pps()
1245 return_status |= ihevce_generate_nal_unit_header(ps_bitstrm, NAL_PPS, 0); in ihevce_generate_pps()
1248 PUT_BITS_UEV(ps_bitstrm, ps_pps->i1_pps_id, return_status); in ihevce_generate_pps()
1252 PUT_BITS_UEV(ps_bitstrm, ps_pps->i1_sps_id, return_status); in ihevce_generate_pps()
1256 PUT_BITS(ps_bitstrm, ps_pps->i1_dependent_slice_enabled_flag, 1, return_status); in ihevce_generate_pps()
1260 PUT_BITS(ps_bitstrm, ps_pps->i1_output_flag_present_flag, 1, return_status); in ihevce_generate_pps()
1264 PUT_BITS(ps_bitstrm, ps_pps->i1_num_extra_slice_header_bits, 3, return_status); in ihevce_generate_pps()
1268 PUT_BITS(ps_bitstrm, ps_pps->i1_sign_data_hiding_flag, 1, return_status); in ihevce_generate_pps()
1272 PUT_BITS(ps_bitstrm, ps_pps->i1_cabac_init_present_flag, 1, return_status); in ihevce_generate_pps()
1276 PUT_BITS_UEV(ps_bitstrm, ps_pps->i1_num_ref_idx_l0_default_active - 1, return_status); in ihevce_generate_pps()
1281 PUT_BITS_UEV(ps_bitstrm, ps_pps->i1_num_ref_idx_l1_default_active - 1, return_status); in ihevce_generate_pps()
1286 PUT_BITS_SEV(ps_bitstrm, ps_pps->i1_pic_init_qp - 26, return_status); in ihevce_generate_pps()
1290 PUT_BITS(ps_bitstrm, ps_pps->i1_constrained_intra_pred_flag, 1, return_status); in ihevce_generate_pps()
1294 PUT_BITS(ps_bitstrm, ps_pps->i1_transform_skip_enabled_flag, 1, return_status); in ihevce_generate_pps()
1298 PUT_BITS(ps_bitstrm, ps_pps->i1_cu_qp_delta_enabled_flag, 1, return_status); in ihevce_generate_pps()
1304 PUT_BITS_UEV(ps_bitstrm, ps_pps->i1_diff_cu_qp_delta_depth, return_status); in ihevce_generate_pps()
1309 PUT_BITS_SEV(ps_bitstrm, ps_pps->i1_pic_cb_qp_offset, return_status); in ihevce_generate_pps()
1313 PUT_BITS_SEV(ps_bitstrm, ps_pps->i1_pic_cr_qp_offset, return_status); in ihevce_generate_pps()
1318 ps_bitstrm, ps_pps->i1_pic_slice_level_chroma_qp_offsets_present_flag, 1, return_status); in ihevce_generate_pps()
1323 PUT_BITS(ps_bitstrm, ps_pps->i1_weighted_pred_flag, 1, return_status); in ihevce_generate_pps()
1327 PUT_BITS(ps_bitstrm, ps_pps->i1_weighted_bipred_flag, 1, return_status); in ihevce_generate_pps()
1331 PUT_BITS(ps_bitstrm, ps_pps->i1_transquant_bypass_enable_flag, 1, return_status); in ihevce_generate_pps()
1335 PUT_BITS(ps_bitstrm, ps_pps->i1_tiles_enabled_flag, 1, return_status); in ihevce_generate_pps()
1339 PUT_BITS(ps_bitstrm, ps_pps->i1_entropy_coding_sync_enabled_flag, 1, return_status); in ihevce_generate_pps()
1345 PUT_BITS_UEV(ps_bitstrm, ps_pps->i1_num_tile_columns - 1, return_status); in ihevce_generate_pps()
1349 PUT_BITS_UEV(ps_bitstrm, ps_pps->i1_num_tile_rows - 1, return_status); in ihevce_generate_pps()
1353 PUT_BITS(ps_bitstrm, ps_pps->i1_uniform_spacing_flag, 1, return_status); in ihevce_generate_pps()
1361 PUT_BITS_UEV(ps_bitstrm, ps_pps->ps_tile[i].u2_wd - 1, return_status); in ihevce_generate_pps()
1367 PUT_BITS_UEV(ps_bitstrm, ps_pps->ps_tile[i].u2_ht - 1, return_status); in ihevce_generate_pps()
1373 PUT_BITS(ps_bitstrm, ps_pps->i1_loop_filter_across_tiles_enabled_flag, 1, return_status); in ihevce_generate_pps()
1380 PUT_BITS(ps_bitstrm, ps_pps->i1_loop_filter_across_slices_enabled_flag, 1, return_status); in ihevce_generate_pps()
1386 PUT_BITS(ps_bitstrm, ps_pps->i1_deblocking_filter_control_present_flag, 1, return_status); in ihevce_generate_pps()
1394 PUT_BITS(ps_bitstrm, ps_pps->i1_deblocking_filter_override_enabled_flag, 1, return_status); in ihevce_generate_pps()
1400 PUT_BITS(ps_bitstrm, ps_pps->i1_pic_disable_deblocking_filter_flag, 1, return_status); in ihevce_generate_pps()
1407 PUT_BITS_SEV(ps_bitstrm, ps_pps->i1_beta_offset_div2 >> 1, return_status); in ihevce_generate_pps()
1411 PUT_BITS_SEV(ps_bitstrm, ps_pps->i1_tc_offset_div2 >> 1, return_status); in ihevce_generate_pps()
1417 PUT_BITS(ps_bitstrm, ps_pps->i1_pps_scaling_list_data_present_flag, 1, return_status); in ihevce_generate_pps()
1430 PUT_BITS(ps_bitstrm, ps_pps->i1_lists_modification_present_flag, 1, return_status); in ihevce_generate_pps()
1439 PUT_BITS_UEV(ps_bitstrm, u4_log2_parallel_merge_level_minus2, return_status); in ihevce_generate_pps()
1444 PUT_BITS(ps_bitstrm, ps_pps->i1_slice_header_extension_present_flag, 1, return_status); in ihevce_generate_pps()
1449 PUT_BITS(ps_bitstrm, 0, 1, return_status); in ihevce_generate_pps()
1452 ihevce_put_rbsp_trailing_bits(ps_bitstrm); in ihevce_generate_pps()
1485 bitstrm_t *ps_bitstrm, in ihevce_generate_slice_header() argument
1549 return_status |= ihevce_put_nal_start_code_prefix(ps_bitstrm, 1); in ihevce_generate_slice_header()
1553 ps_bitstrm, in ihevce_generate_slice_header()
1558 PUT_BITS(ps_bitstrm, ps_slice_hdr->i1_first_slice_in_pic_flag, 1, return_status); in ihevce_generate_slice_header()
1564 PUT_BITS(ps_bitstrm, ps_slice_hdr->i1_no_output_of_prior_pics_flag, 1, return_status); in ihevce_generate_slice_header()
1570 PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->i1_pps_id, return_status); in ihevce_generate_slice_header()
1579 PUT_BITS(ps_bitstrm, ps_slice_hdr->i1_dependent_slice_flag, 1, return_status); in ihevce_generate_slice_header()
1596 PUT_BITS(ps_bitstrm, ps_slice_hdr->i2_slice_address, num_bits, return_status); in ihevce_generate_slice_header()
1605 PUT_BITS(ps_bitstrm, 0, 1, return_status); in ihevce_generate_slice_header()
1609 PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->i1_slice_type, return_status); in ihevce_generate_slice_header()
1615 PUT_BITS(ps_bitstrm, ps_slice_hdr->i1_pic_output_flag, 1, return_status); in ihevce_generate_slice_header()
1623 ps_bitstrm, in ihevce_generate_slice_header()
1631 ps_bitstrm, ps_slice_hdr->i1_short_term_ref_pic_set_sps_flag, 1, return_status); in ihevce_generate_slice_header()
1639 ps_bitstrm, &ps_slice_hdr->s_stref_picset, 1, 0, &i4_NumPocTotalCurr); in ihevce_generate_slice_header()
1647 ps_bitstrm, in ihevce_generate_slice_header()
1660 PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->i1_num_long_term_sps, return_status); in ihevce_generate_slice_header()
1665 PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->i1_num_long_term_pics, return_status); in ihevce_generate_slice_header()
1680 ps_bitstrm, ps_slice_hdr->ai1_lt_idx_sps[i], num_bits, return_status); in ihevce_generate_slice_header()
1687 ps_bitstrm, in ihevce_generate_slice_header()
1695 ps_bitstrm, in ihevce_generate_slice_header()
1706 ps_bitstrm, in ihevce_generate_slice_header()
1718 ps_bitstrm, ps_slice_hdr->ai1_delta_poc_msb_cycle_lt[i], return_status); in ihevce_generate_slice_header()
1729 ps_bitstrm, ps_slice_hdr->i1_slice_temporal_mvp_enable_flag, 1, return_status); in ihevce_generate_slice_header()
1739 PUT_BITS(ps_bitstrm, ps_slice_hdr->i1_slice_sao_luma_flag, 1, return_status); in ihevce_generate_slice_header()
1743 PUT_BITS(ps_bitstrm, ps_slice_hdr->i1_slice_sao_chroma_flag, 1, return_status); in ihevce_generate_slice_header()
1750 ps_bitstrm, ps_slice_hdr->i1_num_ref_idx_active_override_flag, 1, return_status); in ihevce_generate_slice_header()
1758 PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->i1_num_ref_idx_l0_active - 1, return_status); in ihevce_generate_slice_header()
1766 ps_bitstrm, ps_slice_hdr->i1_num_ref_idx_l1_active - 1, return_status); in ihevce_generate_slice_header()
1774 ref_pic_list_modification(ps_bitstrm, ps_slice_hdr, i4_NumPocTotalCurr); in ihevce_generate_slice_header()
1780 PUT_BITS(ps_bitstrm, ps_slice_hdr->i1_mvd_l1_zero_flag, 1, return_status); in ihevce_generate_slice_header()
1787 PUT_BITS(ps_bitstrm, ps_slice_hdr->i1_cabac_init_flag, 1, return_status); in ihevce_generate_slice_header()
1797 ps_bitstrm, ps_slice_hdr->i1_collocated_from_l0_flag, 1, return_status); in ihevce_generate_slice_header()
1807 PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->i1_collocated_ref_idx, return_status); in ihevce_generate_slice_header()
1815 ihevce_generate_pred_weight_table(ps_bitstrm, ps_sps, ps_pps, ps_slice_hdr); in ihevce_generate_slice_header()
1820 PUT_BITS_UEV(ps_bitstrm, 5 - ps_slice_hdr->i1_max_num_merge_cand, return_status); in ihevce_generate_slice_header()
1826 PUT_BITS_UEV(ps_bitstrm, 5 - ps_slice_hdr->i1_max_num_merge_cand, return_status); in ihevce_generate_slice_header()
1831 PUT_BITS_SEV(ps_bitstrm, ps_slice_hdr->i1_slice_qp_delta, return_status); in ihevce_generate_slice_header()
1837 PUT_BITS_SEV(ps_bitstrm, ps_slice_hdr->i1_slice_cb_qp_offset, return_status); in ihevce_generate_slice_header()
1841 PUT_BITS_SEV(ps_bitstrm, ps_slice_hdr->i1_slice_cr_qp_offset, return_status); in ihevce_generate_slice_header()
1851 ps_bitstrm, ps_slice_hdr->i1_deblocking_filter_override_flag, 1, return_status); in ihevce_generate_slice_header()
1861 ps_bitstrm, in ihevce_generate_slice_header()
1872 PUT_BITS_SEV(ps_bitstrm, ps_slice_hdr->i1_beta_offset_div2 >> 1, return_status); in ihevce_generate_slice_header()
1876 PUT_BITS_SEV(ps_bitstrm, ps_slice_hdr->i1_tc_offset_div2 >> 1, return_status); in ihevce_generate_slice_header()
1891 ps_bitstrm, in ihevce_generate_slice_header()
1904 PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->i4_num_entry_point_offsets, return_status); in ihevce_generate_slice_header()
1908 memcpy(ps_dup_bit_strm_ent_offset, ps_bitstrm, sizeof(bitstrm_t)); in ihevce_generate_slice_header()
1913 PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->i1_offset_len - 1, return_status); in ihevce_generate_slice_header()
1924 ps_bitstrm->u4_strm_buf_offset + in ihevce_generate_slice_header()
1934 ps_bitstrm, in ihevce_generate_slice_header()
1946 PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->i2_slice_header_extension_length, return_status); in ihevce_generate_slice_header()
1953 PUT_BITS(ps_bitstrm, 0, 8, return_status); in ihevce_generate_slice_header()
1958 BYTE_ALIGNMENT(ps_bitstrm); in ihevce_generate_slice_header()
3234 bitstrm_t *ps_bitstrm, in ihevce_insert_entry_offset_slice_header() argument
3271 PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->i1_offset_len - 1, return_status); in ihevce_insert_entry_offset_slice_header()
3280 ps_bitstrm, in ihevce_insert_entry_offset_slice_header()
3290 PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->i2_slice_header_extension_length, return_status); in ihevce_insert_entry_offset_slice_header()
3298 PUT_BITS(ps_bitstrm, 0xFF, 8, return_status); in ihevce_insert_entry_offset_slice_header()
3303 BYTE_ALIGNMENT(ps_bitstrm); in ihevce_insert_entry_offset_slice_header()
3308 (UWORD8 *)(ps_bitstrm->pu1_strm_buffer + ps_bitstrm->u4_strm_buf_offset), in ihevce_insert_entry_offset_slice_header()
3309 (UWORD8 *)(ps_bitstrm->pu1_strm_buffer + u4_first_slice_start_offset), in ihevce_insert_entry_offset_slice_header()
3313 ps_bitstrm->u4_strm_buf_offset += num_bytes_shift; in ihevce_insert_entry_offset_slice_header()