Lines Matching refs:ps_sps

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
577 if(ps_sps->i1_chroma_format_idc != 0) in ihevce_generate_pred_weight_table()
595 if(ps_sps->i1_chroma_format_idc != 0) in ihevce_generate_pred_weight_table()
672 if(ps_sps->i1_chroma_format_idc != 0) in ihevce_generate_pred_weight_table()
933 WORD32 ihevce_generate_sps(bitstrm_t *ps_bitstrm, sps_t *ps_sps) in ihevce_generate_sps() argument
937 WORD8 i1_max_sub_layers_minus1 = ps_sps->i1_sps_max_sub_layers - 1; in ihevce_generate_sps()
939 UWORD32 u4_log2_max_pic_order_cnt_lsb = (UWORD32)(ps_sps->i1_log2_max_pic_order_cnt_lsb); in ihevce_generate_sps()
942 (UWORD32)(ps_sps->i1_log2_min_coding_block_size) - 3; in ihevce_generate_sps()
945 (UWORD32)(ps_sps->i1_log2_diff_max_min_coding_block_size); in ihevce_generate_sps()
948 (UWORD32)(ps_sps->i1_log2_min_transform_block_size) - 2; in ihevce_generate_sps()
951 (UWORD32)(ps_sps->i1_log2_diff_max_min_transform_block_size); in ihevce_generate_sps()
960 PUT_BITS(ps_bitstrm, ps_sps->i1_vps_id, 4, return_status); in ihevce_generate_sps()
961 ENTROPY_TRACE("video_parameter_set_id", ps_sps->i1_vps_id); in ihevce_generate_sps()
968 PUT_BITS(ps_bitstrm, ps_sps->i1_sps_temporal_id_nesting_flag, 1, return_status); in ihevce_generate_sps()
969 ENTROPY_TRACE("sps_temporal_id_nesting_flag", ps_sps->i1_sps_temporal_id_nesting_flag); 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()
976 ENTROPY_TRACE("seq_parameter_set_id", ps_sps->i1_sps_id); in ihevce_generate_sps()
979 PUT_BITS_UEV(ps_bitstrm, ps_sps->i1_chroma_format_idc, return_status); in ihevce_generate_sps()
980 ENTROPY_TRACE("chroma_format_idc", ps_sps->i1_chroma_format_idc); in ihevce_generate_sps()
982 if(CHROMA_FMT_IDC_YUV444 == ps_sps->i1_chroma_format_idc) in ihevce_generate_sps()
990 PUT_BITS_UEV(ps_bitstrm, ps_sps->i2_pic_width_in_luma_samples, return_status); in ihevce_generate_sps()
991 ENTROPY_TRACE("pic_width_in_luma_samples", ps_sps->i2_pic_width_in_luma_samples); in ihevce_generate_sps()
994 PUT_BITS_UEV(ps_bitstrm, ps_sps->i2_pic_height_in_luma_samples, return_status); in ihevce_generate_sps()
995 ENTROPY_TRACE("pic_height_in_luma_samples", ps_sps->i2_pic_height_in_luma_samples); in ihevce_generate_sps()
998 PUT_BITS(ps_bitstrm, ps_sps->i1_pic_cropping_flag, 1, return_status); in ihevce_generate_sps()
999 ENTROPY_TRACE("pic_cropping_flag", ps_sps->i1_pic_cropping_flag); in ihevce_generate_sps()
1001 if(ps_sps->i1_pic_cropping_flag) in ihevce_generate_sps()
1004 PUT_BITS_UEV(ps_bitstrm, ps_sps->i2_pic_crop_left_offset, return_status); in ihevce_generate_sps()
1005 ENTROPY_TRACE("pic_crop_left_offset", ps_sps->i2_pic_crop_left_offset); in ihevce_generate_sps()
1008 PUT_BITS_UEV(ps_bitstrm, ps_sps->i2_pic_crop_right_offset, return_status); in ihevce_generate_sps()
1009 ENTROPY_TRACE("pic_crop_right_offset", ps_sps->i2_pic_crop_right_offset); in ihevce_generate_sps()
1012 PUT_BITS_UEV(ps_bitstrm, ps_sps->i2_pic_crop_top_offset, return_status); in ihevce_generate_sps()
1013 ENTROPY_TRACE("pic_crop_top_offset", ps_sps->i2_pic_crop_top_offset); in ihevce_generate_sps()
1016 PUT_BITS_UEV(ps_bitstrm, ps_sps->i2_pic_crop_bottom_offset, return_status); in ihevce_generate_sps()
1017 ENTROPY_TRACE("pic_crop_bottom_offset", ps_sps->i2_pic_crop_bottom_offset); in ihevce_generate_sps()
1021 PUT_BITS_UEV(ps_bitstrm, ps_sps->i1_bit_depth_luma_minus8, return_status); in ihevce_generate_sps()
1022 ENTROPY_TRACE("bit_depth_luma_minus8", ps_sps->i1_bit_depth_luma_minus8); in ihevce_generate_sps()
1025 PUT_BITS_UEV(ps_bitstrm, ps_sps->i1_bit_depth_chroma_minus8, return_status); in ihevce_generate_sps()
1026 ENTROPY_TRACE("i1_bit_depth_chroma_minus8", ps_sps->i1_bit_depth_chroma_minus8); 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()
1036 ps_sps->i1_sps_sub_layer_ordering_info_present_flag); in ihevce_generate_sps()
1038 i = ps_sps->i1_sps_sub_layer_ordering_info_present_flag ? 0 : i1_max_sub_layers_minus1; 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()
1044 ENTROPY_TRACE("max_dec_pic_buffering_minus1", ps_sps->ai1_sps_max_dec_pic_buffering[i]); 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()
1048 ENTROPY_TRACE("num_reorder_pics", ps_sps->ai1_sps_max_num_reorder_pics[i]); in ihevce_generate_sps()
1051 PUT_BITS_UEV(ps_bitstrm, ps_sps->ai1_sps_max_latency_increase[i], return_status); in ihevce_generate_sps()
1052 ENTROPY_TRACE("max_latency_increase", ps_sps->ai1_sps_max_latency_increase[i]); in ihevce_generate_sps()
1073 PUT_BITS_UEV(ps_bitstrm, ps_sps->i1_max_transform_hierarchy_depth_inter, return_status); in ihevce_generate_sps()
1075 "max_transform_hierarchy_depth_inter", ps_sps->i1_max_transform_hierarchy_depth_inter); in ihevce_generate_sps()
1078 PUT_BITS_UEV(ps_bitstrm, ps_sps->i1_max_transform_hierarchy_depth_intra, return_status); in ihevce_generate_sps()
1080 "max_transform_hierarchy_depth_intra", ps_sps->i1_max_transform_hierarchy_depth_intra); in ihevce_generate_sps()
1083 PUT_BITS(ps_bitstrm, ps_sps->i1_scaling_list_enable_flag, 1, return_status); in ihevce_generate_sps()
1084 ENTROPY_TRACE("scaling_list_enabled_flag", ps_sps->i1_scaling_list_enable_flag); in ihevce_generate_sps()
1086 if(ps_sps->i1_scaling_list_enable_flag) 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()
1091 "sps_scaling_list_data_present_flag", ps_sps->i1_sps_scaling_list_data_present_flag); in ihevce_generate_sps()
1094 if(ps_sps->i1_sps_scaling_list_data_present_flag) in ihevce_generate_sps()
1103 PUT_BITS(ps_bitstrm, ps_sps->i1_amp_enabled_flag, 1, return_status); in ihevce_generate_sps()
1104 ENTROPY_TRACE("asymmetric_motion_partitions_enabled_flag", ps_sps->i1_amp_enabled_flag); in ihevce_generate_sps()
1107 PUT_BITS(ps_bitstrm, ps_sps->i1_sample_adaptive_offset_enabled_flag, 1, return_status); in ihevce_generate_sps()
1109 "sample_adaptive_offset_enabled_flag", ps_sps->i1_sample_adaptive_offset_enabled_flag); in ihevce_generate_sps()
1112 PUT_BITS(ps_bitstrm, ps_sps->i1_pcm_enabled_flag, 1, return_status); in ihevce_generate_sps()
1113 ENTROPY_TRACE("pcm_enabled_flag", ps_sps->i1_pcm_enabled_flag); in ihevce_generate_sps()
1114 if(ps_sps->i1_pcm_enabled_flag) in ihevce_generate_sps()
1116 UWORD32 u4_log2_min_pcm_coding_block_size = (ps_sps->i1_log2_min_pcm_coding_block_size); in ihevce_generate_sps()
1118 (ps_sps->i1_log2_diff_max_min_pcm_coding_block_size); 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()
1122 ENTROPY_TRACE("pcm_sample_bit_depth_luma", ps_sps->i1_pcm_sample_bit_depth_luma - 1); 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()
1126 ENTROPY_TRACE("pcm_sample_bit_depth_chroma", ps_sps->i1_pcm_sample_bit_depth_chroma - 1); in ihevce_generate_sps()
1139 PUT_BITS(ps_bitstrm, ps_sps->i1_pcm_loop_filter_disable_flag, 1, return_status); in ihevce_generate_sps()
1140 ENTROPY_TRACE("pcm_loop_filter_disable_flag", ps_sps->i1_pcm_loop_filter_disable_flag); 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()
1145 ENTROPY_TRACE("num_short_term_ref_pic_sets", ps_sps->i1_num_short_term_ref_pic_sets); in ihevce_generate_sps()
1147 for(i = 0; i < ps_sps->i1_num_short_term_ref_pic_sets; i++) in ihevce_generate_sps()
1152 &ps_sps->as_stref_picset[0], in ihevce_generate_sps()
1153 ps_sps->i1_num_short_term_ref_pic_sets, 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()
1160 ENTROPY_TRACE("long_term_ref_pics_present_flag", ps_sps->i1_long_term_ref_pics_present_flag); in ihevce_generate_sps()
1162 if(ps_sps->i1_long_term_ref_pics_present_flag) 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()
1166 ENTROPY_TRACE("num_long_term_ref_pics_sps", ps_sps->i1_num_long_term_ref_pics_sps); in ihevce_generate_sps()
1168 for(i = 0; i < ps_sps->i1_num_long_term_ref_pics_sps; i++) in ihevce_generate_sps()
1173 ps_sps->au2_lt_ref_pic_poc_lsb_sps[i], in ihevce_generate_sps()
1176 ENTROPY_TRACE("lt_ref_pic_poc_lsb_sps[i]", ps_sps->au2_lt_ref_pic_poc_lsb_sps[i]); 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()
1181 "used_by_curr_pic_lt_sps_flag[i]", ps_sps->ai1_used_by_curr_pic_lt_sps_flag[i]); in ihevce_generate_sps()
1186 PUT_BITS(ps_bitstrm, ps_sps->i1_sps_temporal_mvp_enable_flag, 1, return_status); in ihevce_generate_sps()
1187 ENTROPY_TRACE("sps_temporal_mvp_enable_flag", ps_sps->i1_sps_temporal_mvp_enable_flag); in ihevce_generate_sps()
1191 PUT_BITS(ps_bitstrm, ps_sps->i1_strong_intra_smoothing_enable_flag, 1, return_status); in ihevce_generate_sps()
1193 "sps_strong_intra_smoothing_enable_flag", ps_sps->i1_strong_intra_smoothing_enable_flag); in ihevce_generate_sps()
1197 PUT_BITS(ps_bitstrm, ps_sps->i1_vui_parameters_present_flag, 1, return_status); in ihevce_generate_sps()
1198 ENTROPY_TRACE("vui_parameters_present_flag", ps_sps->i1_vui_parameters_present_flag); in ihevce_generate_sps()
1202 if(ps_sps->i1_vui_parameters_present_flag) in ihevce_generate_sps()
1205 ihevce_generate_vui(ps_bitstrm, ps_sps, ps_sps->s_vui_parameters); in ihevce_generate_sps()
1489 sps_t *ps_sps, in ihevce_generate_slice_header() argument
1507 WORD32 pic_width = ps_sps->i2_pic_width_in_luma_samples; in ihevce_generate_slice_header()
1508 WORD32 pic_height = ps_sps->i2_pic_height_in_luma_samples; in ihevce_generate_slice_header()
1512 ps_sps->i1_log2_min_coding_block_size + ps_sps->i1_log2_diff_max_min_coding_block_size; in ihevce_generate_slice_header()
1625 ps_sps->i1_log2_max_pic_order_cnt_lsb, in ihevce_generate_slice_header()
1643 WORD32 num_bits = 32 - CLZ(ps_sps->i1_num_short_term_ref_pic_sets); in ihevce_generate_slice_header()
1655 if(ps_sps->i1_long_term_ref_pics_present_flag) in ihevce_generate_slice_header()
1657 if(ps_sps->i1_num_long_term_ref_pics_sps > 0) in ihevce_generate_slice_header()
1676 WORD32 num_bits = 32 - CLZ(ps_sps->i1_num_long_term_ref_pics_sps); in ihevce_generate_slice_header()
1689 ps_sps->i1_log2_max_pic_order_cnt_lsb, in ihevce_generate_slice_header()
1725 if(ps_sps->i1_sps_temporal_mvp_enable_flag) in ihevce_generate_slice_header()
1736 if(ps_sps->i1_sample_adaptive_offset_enabled_flag) 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()
2277 sps_t *ps_sps, in ihevce_populate_sps() argument
2298 ps_sps->i1_sps_id = DEFAULT_SPS_ID; in ihevce_populate_sps()
2302 ps_sps->i1_sps_id = i4_resolution_id; in ihevce_populate_sps()
2305 ps_sps->i1_vps_id = ps_vps->i1_vps_id; in ihevce_populate_sps()
2307 ps_sps->i2_pic_height_in_luma_samples = ps_frm_ctb_prms->i4_cu_aligned_pic_ht; in ihevce_populate_sps()
2309 ps_sps->i2_pic_width_in_luma_samples = ps_frm_ctb_prms->i4_cu_aligned_pic_wd; in ihevce_populate_sps()
2311 ps_sps->i1_amp_enabled_flag = AMP_ENABLED; in ihevce_populate_sps()
2313 ps_sps->i1_chroma_format_idc = (ps_src_params->i4_chr_format == IV_YUV_422SP_UV) ? 2 : 1; in ihevce_populate_sps()
2315 ps_sps->i1_separate_colour_plane_flag = 0; in ihevce_populate_sps()
2317 ps_sps->i1_bit_depth_luma_minus8 = ps_stat_cfg_prms->s_tgt_lyr_prms.i4_internal_bit_depth - 8; in ihevce_populate_sps()
2319 ps_sps->i1_bit_depth_chroma_minus8 = ps_stat_cfg_prms->s_tgt_lyr_prms.i4_internal_bit_depth - 8; in ihevce_populate_sps()
2321 ps_sps->i1_log2_min_coding_block_size = ps_config_prms->i4_min_log2_cu_size; in ihevce_populate_sps()
2323 ps_sps->i1_log2_diff_max_min_coding_block_size = in ihevce_populate_sps()
2326 ps_sps->i1_log2_ctb_size = in ihevce_populate_sps()
2327 ps_sps->i1_log2_min_coding_block_size + ps_sps->i1_log2_diff_max_min_coding_block_size; in ihevce_populate_sps()
2329 ps_sps->i1_log2_diff_max_min_transform_block_size = in ihevce_populate_sps()
2332 ps_sps->i1_log2_min_transform_block_size = ps_config_prms->i4_min_log2_tu_size; in ihevce_populate_sps()
2334 ps_sps->i1_long_term_ref_pics_present_flag = LONG_TERM_REF_PICS_ABSENT; in ihevce_populate_sps()
2336 ps_sps->i1_max_transform_hierarchy_depth_inter = ps_config_prms->i4_max_tr_tree_depth_nI; in ihevce_populate_sps()
2338 ps_sps->i1_max_transform_hierarchy_depth_intra = ps_config_prms->i4_max_tr_tree_depth_I; in ihevce_populate_sps()
2340 ps_sps->i1_pcm_enabled_flag = PCM_DISABLED; in ihevce_populate_sps()
2342 ps_sps->i1_pcm_loop_filter_disable_flag = PCM_LOOP_FILTER_DISABLED; in ihevce_populate_sps()
2344 ps_sps->i1_pic_cropping_flag = !!ps_coding_params->i4_cropping_mode; in ihevce_populate_sps()
2349 ps_sps->i1_sample_adaptive_offset_enabled_flag = SAO_ENABLED; in ihevce_populate_sps()
2353 ps_sps->i1_sample_adaptive_offset_enabled_flag = SAO_DISABLED; in ihevce_populate_sps()
2356 ps_sps->i1_sample_adaptive_offset_enabled_flag = SAO_DISABLED; in ihevce_populate_sps()
2361 ps_sps->i1_scaling_list_enable_flag = SCALING_LIST_ENABLED; in ihevce_populate_sps()
2365 ps_sps->i1_scaling_list_enable_flag = SCALING_LIST_DISABLED; in ihevce_populate_sps()
2368 ps_sps->i1_sps_max_sub_layers = DEFAULT_SPS_MAX_SUB_LAYERS; in ihevce_populate_sps()
2372 ps_sps->i1_sps_max_sub_layers = DEFAULT_SPS_MAX_SUB_LAYERS + 1; in ihevce_populate_sps()
2375 ps_sps->i1_sps_sub_layer_ordering_info_present_flag = SPS_SUB_LAYER_ORDERING_INFO_ABSENT; in ihevce_populate_sps()
2377 ps_sps->i1_sps_scaling_list_data_present_flag = SCALING_LIST_DATA_ABSENT; in ihevce_populate_sps()
2379 if(ps_sps->i1_sps_max_sub_layers == 1) in ihevce_populate_sps()
2381 ps_sps->i1_sps_temporal_id_nesting_flag = 1; //NO_SPS_TEMPORAL_ID_NESTING_DONE; in ihevce_populate_sps()
2385 ps_sps->i1_sps_temporal_id_nesting_flag = 0; //NO_SPS_TEMPORAL_ID_NESTING_DONE; in ihevce_populate_sps()
2389 ps_sps->i1_num_short_term_ref_pic_sets = 0; in ihevce_populate_sps()
2390 ps_sps->i1_long_term_ref_pics_present_flag = 0; in ihevce_populate_sps()
2392 ps_sps->i1_num_long_term_ref_pics_sps = 0; in ihevce_populate_sps()
2393 ps_sps->i1_sps_temporal_mvp_enable_flag = !DISABLE_TMVP; in ihevce_populate_sps()
2395 ps_sps->i1_strong_intra_smoothing_enable_flag = STRONG_INTRA_SMOOTHING_FLAG_ENABLE; in ihevce_populate_sps()
2397 ps_sps->i1_vui_parameters_present_flag = ps_out_strm_params->i4_vui_enable; in ihevce_populate_sps()
2400 ps_sps->i2_pic_ht_in_ctb = ps_frm_ctb_prms->i4_num_ctbs_vert; in ihevce_populate_sps()
2402 ps_sps->i2_pic_wd_in_ctb = ps_frm_ctb_prms->i4_num_ctbs_horz; in ihevce_populate_sps()
2404 ps_sps->i1_log2_max_pic_order_cnt_lsb = DEFAULT_LOG2_MAX_POC_LSB; in ihevce_populate_sps()
2406 if(ps_sps->i1_pic_cropping_flag) in ihevce_populate_sps()
2409 ps_sps->i2_pic_height_in_luma_samples - ps_stat_cfg_prms->s_src_prms.i4_orig_height; in ihevce_populate_sps()
2411 ps_sps->i2_pic_width_in_luma_samples - ps_stat_cfg_prms->s_src_prms.i4_orig_width; in ihevce_populate_sps()
2413 ps_sps->i2_pic_crop_top_offset = DEFAULT_PIC_CROP_TOP_OFFSET; in ihevce_populate_sps()
2415 ps_sps->i2_pic_crop_left_offset = DEFAULT_PIC_CROP_LEFT_OFFSET; in ihevce_populate_sps()
2418 ps_sps->i2_pic_crop_bottom_offset = num_rows_to_pad_bottom >> 1; in ihevce_populate_sps()
2421 ps_sps->i2_pic_crop_right_offset = num_rows_to_pad_right >> 1; in ihevce_populate_sps()
2424 for(i = 0; i < (ps_sps->i1_sps_max_sub_layers); i++) in ihevce_populate_sps()
2426 ps_sps->ai1_sps_max_dec_pic_buffering[i] = in ihevce_populate_sps()
2429 ps_sps->ai1_sps_max_num_reorder_pics[i] = ps_coding_params->i4_max_temporal_layers in ihevce_populate_sps()
2432 ps_sps->ai1_sps_max_latency_increase[i] = 0; in ihevce_populate_sps()
2434 ps_sps->s_ptl.ai1_sub_layer_level_present_flag[i] = 1; //TEMPORALA_SCALABILITY CHANGES in ihevce_populate_sps()
2436 ps_sps->s_ptl.ai1_sub_layer_profile_present_flag[i] = 0; //TEMPORALA_SCALABILITY CHANGES in ihevce_populate_sps()
2438 ps_sps->s_ptl.as_ptl_sub[i].i1_profile_space = 0; // BLU_RAY specific change is default in ihevce_populate_sps()
2440 ps_sps->s_ptl.as_ptl_sub[i].i1_profile_idc = ps_out_strm_params->i4_codec_profile; in ihevce_populate_sps()
2443 ps_sps->s_ptl.as_ptl_sub[i].ai1_profile_compatibility_flag, in ihevce_populate_sps()
2447 ps_sps->s_ptl.as_ptl_sub[i] in ihevce_populate_sps()
2450 ps_sps->s_ptl.as_ptl_sub[i].u1_level_idc = in ihevce_populate_sps()
2461 ps_sps->s_ptl.as_ptl_sub[i].u1_level_idc = in ihevce_populate_sps()
2464 ps_sps->s_ptl.as_ptl_sub[i].i1_tier_flag = ps_out_strm_params->i4_codec_tier; in ihevce_populate_sps()
2468 ps_sps->s_ptl.as_ptl_sub[i].i1_general_progressive_source_flag = 1; in ihevce_populate_sps()
2470 ps_sps->s_ptl.as_ptl_sub[i].i1_general_interlaced_source_flag = 0; in ihevce_populate_sps()
2474 ps_sps->s_ptl.as_ptl_sub[i].i1_general_progressive_source_flag = 0; in ihevce_populate_sps()
2476 ps_sps->s_ptl.as_ptl_sub[i].i1_general_interlaced_source_flag = 1; in ihevce_populate_sps()
2480 ps_sps->s_ptl.as_ptl_sub[i].i1_general_progressive_source_flag = 0; in ihevce_populate_sps()
2482 ps_sps->s_ptl.as_ptl_sub[i].i1_general_interlaced_source_flag = 0; in ihevce_populate_sps()
2485 ps_sps->s_ptl.as_ptl_sub[i].i1_general_non_packed_constraint_flag = in ihevce_populate_sps()
2490 ps_sps->s_ptl.as_ptl_sub[i].i1_frame_only_constraint_flag = 1; in ihevce_populate_sps()
2494 ps_sps->s_ptl.as_ptl_sub[i].i1_frame_only_constraint_flag = in ihevce_populate_sps()
2497 if((ps_out_strm_params->i4_codec_profile == 4) && (ps_sps->i1_chroma_format_idc == 1)) in ihevce_populate_sps()
2499 ps_sps->s_ptl.as_ptl_sub[i].i1_general_max_12bit_constraint_flag = 1; in ihevce_populate_sps()
2501 ps_sps->s_ptl.as_ptl_sub[i].i1_general_max_10bit_constraint_flag = 0; in ihevce_populate_sps()
2503 ps_sps->s_ptl.as_ptl_sub[i].i1_general_max_8bit_constraint_flag = 0; in ihevce_populate_sps()
2505 ps_sps->s_ptl.as_ptl_sub[i].i1_general_max_422chroma_constraint_flag = 1; in ihevce_populate_sps()
2507 ps_sps->s_ptl.as_ptl_sub[i].i1_general_max_420chroma_constraint_flag = 1; in ihevce_populate_sps()
2509 ps_sps->s_ptl.as_ptl_sub[i].i1_general_max_monochrome_constraint_flag = 0; in ihevce_populate_sps()
2511 ps_sps->s_ptl.as_ptl_sub[i].i1_general_intra_constraint_flag = 0; in ihevce_populate_sps()
2513 ps_sps->s_ptl.as_ptl_sub[i].i1_general_one_picture_only_constraint_flag = 0; in ihevce_populate_sps()
2515 ps_sps->s_ptl.as_ptl_sub[i].i1_general_lower_bit_rate_constraint_flag = 1; in ihevce_populate_sps()
2517 else if((ps_out_strm_params->i4_codec_profile == 4) && (ps_sps->i1_chroma_format_idc == 2)) in ihevce_populate_sps()
2519 ps_sps->s_ptl.as_ptl_sub[i].i1_general_max_12bit_constraint_flag = 1; in ihevce_populate_sps()
2521 ps_sps->s_ptl.as_ptl_sub[i].i1_general_max_10bit_constraint_flag = 0; in ihevce_populate_sps()
2523 ps_sps->s_ptl.as_ptl_sub[i].i1_general_max_8bit_constraint_flag = 0; in ihevce_populate_sps()
2525 ps_sps->s_ptl.as_ptl_sub[i].i1_general_max_422chroma_constraint_flag = 1; in ihevce_populate_sps()
2527 ps_sps->s_ptl.as_ptl_sub[i].i1_general_max_420chroma_constraint_flag = 0; in ihevce_populate_sps()
2529 ps_sps->s_ptl.as_ptl_sub[i].i1_general_max_monochrome_constraint_flag = 0; in ihevce_populate_sps()
2531 ps_sps->s_ptl.as_ptl_sub[i].i1_general_intra_constraint_flag = 0; in ihevce_populate_sps()
2533 ps_sps->s_ptl.as_ptl_sub[i].i1_general_one_picture_only_constraint_flag = 0; in ihevce_populate_sps()
2535 ps_sps->s_ptl.as_ptl_sub[i].i1_general_lower_bit_rate_constraint_flag = 1; in ihevce_populate_sps()
2539 ps_sps->s_ptl.as_ptl_sub[i].i1_general_max_12bit_constraint_flag = 0; in ihevce_populate_sps()
2541 ps_sps->s_ptl.as_ptl_sub[i].i1_general_max_10bit_constraint_flag = 0; in ihevce_populate_sps()
2543 ps_sps->s_ptl.as_ptl_sub[i].i1_general_max_8bit_constraint_flag = 0; in ihevce_populate_sps()
2545 ps_sps->s_ptl.as_ptl_sub[i].i1_general_max_422chroma_constraint_flag = 0; in ihevce_populate_sps()
2547 ps_sps->s_ptl.as_ptl_sub[i].i1_general_max_420chroma_constraint_flag = 0; in ihevce_populate_sps()
2549 ps_sps->s_ptl.as_ptl_sub[i].i1_general_max_monochrome_constraint_flag = 0; in ihevce_populate_sps()
2551 ps_sps->s_ptl.as_ptl_sub[i].i1_general_intra_constraint_flag = 0; in ihevce_populate_sps()
2553 ps_sps->s_ptl.as_ptl_sub[i].i1_general_one_picture_only_constraint_flag = 0; in ihevce_populate_sps()
2555 ps_sps->s_ptl.as_ptl_sub[i].i1_general_lower_bit_rate_constraint_flag = 0; in ihevce_populate_sps()
2560 ps_sps->s_ptl.s_ptl_gen.ai1_profile_compatibility_flag, in ihevce_populate_sps()
2565 ps_sps->s_ptl.s_ptl_gen.i1_profile_space = 0; // BLU_RAY specific change is default in ihevce_populate_sps()
2567 ps_sps->s_ptl.s_ptl_gen.i1_profile_idc = ps_out_strm_params->i4_codec_profile; in ihevce_populate_sps()
2569 ps_sps->s_ptl.s_ptl_gen.ai1_profile_compatibility_flag[ps_out_strm_params->i4_codec_profile] = in ihevce_populate_sps()
2572 ps_sps->s_ptl.s_ptl_gen.u1_level_idc = in ihevce_populate_sps()
2575 ps_sps->s_ptl.s_ptl_gen.i1_tier_flag = ps_out_strm_params->i4_codec_tier; in ihevce_populate_sps()
2579 ps_sps->s_ptl.s_ptl_gen.i1_general_progressive_source_flag = 1; in ihevce_populate_sps()
2581 ps_sps->s_ptl.s_ptl_gen.i1_general_interlaced_source_flag = 0; in ihevce_populate_sps()
2585 ps_sps->s_ptl.s_ptl_gen.i1_general_progressive_source_flag = 0; in ihevce_populate_sps()
2587 ps_sps->s_ptl.s_ptl_gen.i1_general_interlaced_source_flag = 1; in ihevce_populate_sps()
2591 ps_sps->s_ptl.s_ptl_gen.i1_general_progressive_source_flag = 0; in ihevce_populate_sps()
2593 ps_sps->s_ptl.s_ptl_gen.i1_general_interlaced_source_flag = 0; in ihevce_populate_sps()
2596 ps_sps->s_ptl.s_ptl_gen.i1_general_non_packed_constraint_flag = in ihevce_populate_sps()
2601 ps_sps->s_ptl.s_ptl_gen.i1_frame_only_constraint_flag = 1; in ihevce_populate_sps()
2605 ps_sps->s_ptl.s_ptl_gen.i1_frame_only_constraint_flag = DEFAULT_FRAME_ONLY_CONSTRAINT_FLAG; in ihevce_populate_sps()
2607 if((ps_out_strm_params->i4_codec_profile == 4) && (ps_sps->i1_chroma_format_idc == 1)) in ihevce_populate_sps()
2609 ps_sps->s_ptl.s_ptl_gen.i1_general_max_12bit_constraint_flag = 1; in ihevce_populate_sps()
2611 ps_sps->s_ptl.s_ptl_gen.i1_general_max_10bit_constraint_flag = 0; in ihevce_populate_sps()
2613 ps_sps->s_ptl.s_ptl_gen.i1_general_max_8bit_constraint_flag = 0; in ihevce_populate_sps()
2615 ps_sps->s_ptl.s_ptl_gen.i1_general_max_422chroma_constraint_flag = 1; in ihevce_populate_sps()
2617 ps_sps->s_ptl.s_ptl_gen.i1_general_max_420chroma_constraint_flag = 1; in ihevce_populate_sps()
2619 ps_sps->s_ptl.s_ptl_gen.i1_general_max_monochrome_constraint_flag = 0; in ihevce_populate_sps()
2621 ps_sps->s_ptl.s_ptl_gen.i1_general_intra_constraint_flag = 0; in ihevce_populate_sps()
2623 ps_sps->s_ptl.s_ptl_gen.i1_general_one_picture_only_constraint_flag = 0; in ihevce_populate_sps()
2625 ps_sps->s_ptl.s_ptl_gen.i1_general_lower_bit_rate_constraint_flag = 1; in ihevce_populate_sps()
2627 else if((ps_out_strm_params->i4_codec_profile == 4) && (ps_sps->i1_chroma_format_idc == 2)) in ihevce_populate_sps()
2629 ps_sps->s_ptl.s_ptl_gen.i1_general_max_12bit_constraint_flag = 1; in ihevce_populate_sps()
2631 ps_sps->s_ptl.s_ptl_gen.i1_general_max_10bit_constraint_flag = 0; in ihevce_populate_sps()
2633 ps_sps->s_ptl.s_ptl_gen.i1_general_max_8bit_constraint_flag = 0; in ihevce_populate_sps()
2635 ps_sps->s_ptl.s_ptl_gen.i1_general_max_422chroma_constraint_flag = 1; in ihevce_populate_sps()
2637 ps_sps->s_ptl.s_ptl_gen.i1_general_max_420chroma_constraint_flag = 0; in ihevce_populate_sps()
2639 ps_sps->s_ptl.s_ptl_gen.i1_general_max_monochrome_constraint_flag = 0; in ihevce_populate_sps()
2641 ps_sps->s_ptl.s_ptl_gen.i1_general_intra_constraint_flag = 0; in ihevce_populate_sps()
2643 ps_sps->s_ptl.s_ptl_gen.i1_general_one_picture_only_constraint_flag = 0; in ihevce_populate_sps()
2645 ps_sps->s_ptl.s_ptl_gen.i1_general_lower_bit_rate_constraint_flag = 1; in ihevce_populate_sps()
2649 ps_sps->s_ptl.s_ptl_gen.i1_general_max_12bit_constraint_flag = 0; in ihevce_populate_sps()
2651 ps_sps->s_ptl.s_ptl_gen.i1_general_max_10bit_constraint_flag = 0; in ihevce_populate_sps()
2653 ps_sps->s_ptl.s_ptl_gen.i1_general_max_8bit_constraint_flag = 0; in ihevce_populate_sps()
2655 ps_sps->s_ptl.s_ptl_gen.i1_general_max_422chroma_constraint_flag = 0; in ihevce_populate_sps()
2657 ps_sps->s_ptl.s_ptl_gen.i1_general_max_420chroma_constraint_flag = 0; in ihevce_populate_sps()
2659 ps_sps->s_ptl.s_ptl_gen.i1_general_max_monochrome_constraint_flag = 0; in ihevce_populate_sps()
2661 ps_sps->s_ptl.s_ptl_gen.i1_general_intra_constraint_flag = 0; in ihevce_populate_sps()
2663 ps_sps->s_ptl.s_ptl_gen.i1_general_one_picture_only_constraint_flag = 0; in ihevce_populate_sps()
2665 ps_sps->s_ptl.s_ptl_gen.i1_general_lower_bit_rate_constraint_flag = 0; in ihevce_populate_sps()
2703 sps_t *ps_sps, in ihevce_populate_pps() argument
2881 ps_pps->i1_sps_id = ps_sps->i1_sps_id; in ihevce_populate_pps()
2938 sps_t *ps_sps, in ihevce_populate_slice_header() argument
2992 ASSERT(0 == ps_sps->i1_separate_colour_plane_flag); in ihevce_populate_slice_header()
2996 WORD32 log2_max_poc_lsb = ps_sps->i1_log2_max_pic_order_cnt_lsb; in ihevce_populate_slice_header()
3011 ASSERT(0 == ps_sps->i1_long_term_ref_pics_present_flag); in ihevce_populate_slice_header()
3012 if(ps_sps->i1_long_term_ref_pics_present_flag) in ihevce_populate_slice_header()
3019 if(ps_sps->i1_sample_adaptive_offset_enabled_flag) in ihevce_populate_slice_header()
3036 if(1 == ps_sps->i1_sps_temporal_mvp_enable_flag) in ihevce_populate_slice_header()
3157 ps_slice_hdr->i4_num_entry_point_offsets = ps_sps->i2_pic_ht_in_ctb - 1; in ihevce_populate_slice_header()