• Home
  • Raw
  • Download

Lines Matching refs:ps_pps

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
572 (void)ps_pps; in ihevce_generate_pred_weight_table()
1236 WORD32 ihevce_generate_pps(bitstrm_t *ps_bitstrm, pps_t *ps_pps) in ihevce_generate_pps() argument
1248 PUT_BITS_UEV(ps_bitstrm, ps_pps->i1_pps_id, return_status); in ihevce_generate_pps()
1249 ENTROPY_TRACE("pic_parameter_set_id", ps_pps->i1_pps_id); in ihevce_generate_pps()
1252 PUT_BITS_UEV(ps_bitstrm, ps_pps->i1_sps_id, return_status); in ihevce_generate_pps()
1253 ENTROPY_TRACE("seq_parameter_set_id", ps_pps->i1_sps_id); in ihevce_generate_pps()
1256 PUT_BITS(ps_bitstrm, ps_pps->i1_dependent_slice_enabled_flag, 1, return_status); in ihevce_generate_pps()
1257 ENTROPY_TRACE("dependent_slices_enabled_flag", ps_pps->i1_dependent_slice_enabled_flag); in ihevce_generate_pps()
1260 PUT_BITS(ps_bitstrm, ps_pps->i1_output_flag_present_flag, 1, return_status); in ihevce_generate_pps()
1261 ENTROPY_TRACE("output_flag_present_flag", ps_pps->i1_output_flag_present_flag); in ihevce_generate_pps()
1264 PUT_BITS(ps_bitstrm, ps_pps->i1_num_extra_slice_header_bits, 3, return_status); in ihevce_generate_pps()
1265 ENTROPY_TRACE("num_extra_slice_header_bits", ps_pps->i1_num_extra_slice_header_bits); in ihevce_generate_pps()
1268 PUT_BITS(ps_bitstrm, ps_pps->i1_sign_data_hiding_flag, 1, return_status); in ihevce_generate_pps()
1269 ENTROPY_TRACE("sign_data_hiding_flag", ps_pps->i1_sign_data_hiding_flag); in ihevce_generate_pps()
1272 PUT_BITS(ps_bitstrm, ps_pps->i1_cabac_init_present_flag, 1, return_status); in ihevce_generate_pps()
1273 ENTROPY_TRACE("cabac_init_present_flag", ps_pps->i1_cabac_init_present_flag); 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()
1278 "num_ref_idx_l0_default_active_minus1", ps_pps->i1_num_ref_idx_l0_default_active - 1); 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()
1283 "num_ref_idx_l1_default_active_minus1", ps_pps->i1_num_ref_idx_l1_default_active - 1); in ihevce_generate_pps()
1286 PUT_BITS_SEV(ps_bitstrm, ps_pps->i1_pic_init_qp - 26, return_status); in ihevce_generate_pps()
1287 ENTROPY_TRACE("pic_init_qp_minus26", ps_pps->i1_pic_init_qp - 26); in ihevce_generate_pps()
1290 PUT_BITS(ps_bitstrm, ps_pps->i1_constrained_intra_pred_flag, 1, return_status); in ihevce_generate_pps()
1291 ENTROPY_TRACE("constrained_intra_pred_flag", ps_pps->i1_constrained_intra_pred_flag); in ihevce_generate_pps()
1294 PUT_BITS(ps_bitstrm, ps_pps->i1_transform_skip_enabled_flag, 1, return_status); in ihevce_generate_pps()
1295 ENTROPY_TRACE("transform_skip_enabled_flag", ps_pps->i1_transform_skip_enabled_flag); in ihevce_generate_pps()
1298 PUT_BITS(ps_bitstrm, ps_pps->i1_cu_qp_delta_enabled_flag, 1, return_status); in ihevce_generate_pps()
1299 ENTROPY_TRACE("cu_qp_delta_enabled_flag", ps_pps->i1_cu_qp_delta_enabled_flag); in ihevce_generate_pps()
1301 if(ps_pps->i1_cu_qp_delta_enabled_flag) in ihevce_generate_pps()
1304 PUT_BITS_UEV(ps_bitstrm, ps_pps->i1_diff_cu_qp_delta_depth, return_status); in ihevce_generate_pps()
1305 ENTROPY_TRACE("diff_cu_qp_delta_depth", ps_pps->i1_diff_cu_qp_delta_depth); in ihevce_generate_pps()
1309 PUT_BITS_SEV(ps_bitstrm, ps_pps->i1_pic_cb_qp_offset, return_status); in ihevce_generate_pps()
1310 ENTROPY_TRACE("cb_qp_offset", ps_pps->i1_pic_cb_qp_offset); in ihevce_generate_pps()
1313 PUT_BITS_SEV(ps_bitstrm, ps_pps->i1_pic_cr_qp_offset, return_status); in ihevce_generate_pps()
1314 ENTROPY_TRACE("cr_qp_offset", ps_pps->i1_pic_cr_qp_offset); 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()
1320 "slicelevel_chroma_qp_flag", ps_pps->i1_pic_slice_level_chroma_qp_offsets_present_flag); in ihevce_generate_pps()
1323 PUT_BITS(ps_bitstrm, ps_pps->i1_weighted_pred_flag, 1, return_status); in ihevce_generate_pps()
1324 ENTROPY_TRACE("weighted_pred_flag", ps_pps->i1_weighted_pred_flag); in ihevce_generate_pps()
1327 PUT_BITS(ps_bitstrm, ps_pps->i1_weighted_bipred_flag, 1, return_status); in ihevce_generate_pps()
1328 ENTROPY_TRACE("weighted_bipred_flag", ps_pps->i1_weighted_bipred_flag); in ihevce_generate_pps()
1331 PUT_BITS(ps_bitstrm, ps_pps->i1_transquant_bypass_enable_flag, 1, return_status); in ihevce_generate_pps()
1332 ENTROPY_TRACE("transquant_bypass_enable_flag", ps_pps->i1_transquant_bypass_enable_flag); in ihevce_generate_pps()
1335 PUT_BITS(ps_bitstrm, ps_pps->i1_tiles_enabled_flag, 1, return_status); in ihevce_generate_pps()
1336 ENTROPY_TRACE("tiles_enabled_flag", ps_pps->i1_tiles_enabled_flag); in ihevce_generate_pps()
1339 PUT_BITS(ps_bitstrm, ps_pps->i1_entropy_coding_sync_enabled_flag, 1, return_status); in ihevce_generate_pps()
1340 ENTROPY_TRACE("entropy_coding_sync_enabled_flag", ps_pps->i1_entropy_coding_sync_enabled_flag); in ihevce_generate_pps()
1342 if(ps_pps->i1_tiles_enabled_flag) in ihevce_generate_pps()
1345 PUT_BITS_UEV(ps_bitstrm, ps_pps->i1_num_tile_columns - 1, return_status); in ihevce_generate_pps()
1346 ENTROPY_TRACE("num_tile_columns_minus1", ps_pps->i1_num_tile_columns - 1); in ihevce_generate_pps()
1349 PUT_BITS_UEV(ps_bitstrm, ps_pps->i1_num_tile_rows - 1, return_status); in ihevce_generate_pps()
1350 ENTROPY_TRACE("num_tile_rows_minus1", ps_pps->i1_num_tile_rows - 1); in ihevce_generate_pps()
1353 PUT_BITS(ps_bitstrm, ps_pps->i1_uniform_spacing_flag, 1, return_status); in ihevce_generate_pps()
1354 ENTROPY_TRACE("uniform_spacing_flag", ps_pps->i1_uniform_spacing_flag); in ihevce_generate_pps()
1356 if(!ps_pps->i1_uniform_spacing_flag) in ihevce_generate_pps()
1358 for(i = 0; i < ps_pps->i1_num_tile_columns - 1; i++) in ihevce_generate_pps()
1361 PUT_BITS_UEV(ps_bitstrm, ps_pps->ps_tile[i].u2_wd - 1, return_status); in ihevce_generate_pps()
1362 ENTROPY_TRACE("column_width_minus1[i]", ps_pps->ps_tile[i].u2_wd - 1); in ihevce_generate_pps()
1364 for(i = 0; i < ps_pps->i1_num_tile_rows - 1; i++) in ihevce_generate_pps()
1367 PUT_BITS_UEV(ps_bitstrm, ps_pps->ps_tile[i].u2_ht - 1, return_status); in ihevce_generate_pps()
1368 ENTROPY_TRACE("row_height_minus1[i]", ps_pps->ps_tile[i].u2_ht - 1); 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()
1376 ps_pps->i1_loop_filter_across_tiles_enabled_flag); 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()
1383 ps_pps->i1_loop_filter_across_slices_enabled_flag); in ihevce_generate_pps()
1386 PUT_BITS(ps_bitstrm, ps_pps->i1_deblocking_filter_control_present_flag, 1, return_status); in ihevce_generate_pps()
1389 ps_pps->i1_deblocking_filter_control_present_flag); in ihevce_generate_pps()
1391 if(ps_pps->i1_deblocking_filter_control_present_flag) in ihevce_generate_pps()
1394 PUT_BITS(ps_bitstrm, ps_pps->i1_deblocking_filter_override_enabled_flag, 1, return_status); in ihevce_generate_pps()
1397 ps_pps->i1_deblocking_filter_override_enabled_flag); in ihevce_generate_pps()
1400 PUT_BITS(ps_bitstrm, ps_pps->i1_pic_disable_deblocking_filter_flag, 1, return_status); in ihevce_generate_pps()
1402 "pic_disable_deblocking_filter_flag", ps_pps->i1_pic_disable_deblocking_filter_flag); in ihevce_generate_pps()
1404 if(!ps_pps->i1_pic_disable_deblocking_filter_flag) in ihevce_generate_pps()
1407 PUT_BITS_SEV(ps_bitstrm, ps_pps->i1_beta_offset_div2 >> 1, return_status); in ihevce_generate_pps()
1408 ENTROPY_TRACE("beta_offset_div2", ps_pps->i1_beta_offset_div2 >> 1); in ihevce_generate_pps()
1411 PUT_BITS_SEV(ps_bitstrm, ps_pps->i1_tc_offset_div2 >> 1, return_status); in ihevce_generate_pps()
1412 ENTROPY_TRACE("tc_offset_div2", ps_pps->i1_tc_offset_div2 >> 1); 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()
1419 "pps_scaling_list_data_present_flag", ps_pps->i1_pps_scaling_list_data_present_flag); in ihevce_generate_pps()
1422 if(ps_pps->i1_pps_scaling_list_data_present_flag ) in ihevce_generate_pps()
1430 PUT_BITS(ps_bitstrm, ps_pps->i1_lists_modification_present_flag, 1, return_status); in ihevce_generate_pps()
1431 ENTROPY_TRACE("lists_modification_present_flag", ps_pps->i1_lists_modification_present_flag); in ihevce_generate_pps()
1434 UWORD32 u4_log2_parallel_merge_level_minus2 = ps_pps->i1_log2_parallel_merge_level; in ihevce_generate_pps()
1444 PUT_BITS(ps_bitstrm, ps_pps->i1_slice_header_extension_present_flag, 1, return_status); in ihevce_generate_pps()
1446 "slice_header_extension_present_flag", ps_pps->i1_slice_header_extension_present_flag); in ihevce_generate_pps()
1488 pps_t *ps_pps, in ihevce_generate_slice_header() argument
1538 if((1 == ps_pps->i1_dependent_slice_enabled_flag) && in ihevce_generate_slice_header()
1576 if((ps_pps->i1_dependent_slice_enabled_flag) && (!ps_slice_hdr->i1_first_slice_in_pic_flag)) in ihevce_generate_slice_header()
1602 for(i = 0; i < ps_pps->i1_num_extra_slice_header_bits; i++) in ihevce_generate_slice_header()
1612 if(ps_pps->i1_output_flag_present_flag) in ihevce_generate_slice_header()
1772 if(ps_pps->i1_lists_modification_present_flag && i4_NumPocTotalCurr > 1) in ihevce_generate_slice_header()
1784 if(ps_pps->i1_cabac_init_present_flag) in ihevce_generate_slice_header()
1812 if((ps_pps->i1_weighted_pred_flag && (PSLICE == ps_slice_hdr->i1_slice_type)) || in ihevce_generate_slice_header()
1813 (ps_pps->i1_weighted_bipred_flag && (BSLICE == ps_slice_hdr->i1_slice_type))) 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()
1834 if(ps_pps->i1_pic_slice_level_chroma_qp_offsets_present_flag) in ihevce_generate_slice_header()
1845 if(ps_pps->i1_deblocking_filter_control_present_flag) in ihevce_generate_slice_header()
1847 if(ps_pps->i1_deblocking_filter_override_enabled_flag) in ihevce_generate_slice_header()
1883 ps_pps->i1_pic_disable_deblocking_filter_flag; in ihevce_generate_slice_header()
1885 if(ps_pps->i1_loop_filter_across_slices_enabled_flag && in ihevce_generate_slice_header()
1901 if((ps_pps->i1_tiles_enabled_flag) || (ps_pps->i1_entropy_coding_sync_enabled_flag)) in ihevce_generate_slice_header()
1943 if(ps_pps->i1_slice_header_extension_present_flag) in ihevce_generate_slice_header()
2702 pps_t *ps_pps, in ihevce_populate_pps() argument
2718 ps_pps->i1_beta_offset_div2 = DEFAULT_BETA_OFFSET; in ihevce_populate_pps()
2720 ps_pps->i1_cabac_init_present_flag = CABAC_INIT_ABSENT; in ihevce_populate_pps()
2722 ps_pps->i1_constrained_intra_pred_flag = CONSTR_IPRED_DISABLED; in ihevce_populate_pps()
2724 ps_pps->i1_cu_qp_delta_enabled_flag = ps_config_prms->i4_cu_level_rc; in ihevce_populate_pps()
2726 ps_pps->i1_deblocking_filter_control_present_flag = DEBLOCKING_FILTER_CONTROL_PRESENT; in ihevce_populate_pps()
2728 ps_pps->i1_deblocking_filter_override_enabled_flag = DEBLOCKING_FILTER_OVERRIDE_DISABLED; in ihevce_populate_pps()
2730 ps_pps->i1_pic_disable_deblocking_filter_flag = ps_coding_params->i4_deblocking_type; in ihevce_populate_pps()
2734 ps_pps->i1_dependent_slice_enabled_flag = DEPENDENT_SLICE_ENABLED; in ihevce_populate_pps()
2738 ps_pps->i1_dependent_slice_enabled_flag = DEPENDENT_SLICE_DISABLED; in ihevce_populate_pps()
2743 ps_pps->i1_diff_cu_qp_delta_depth = CU_LEVEL_QP_LIMIT_8x8; in ihevce_populate_pps()
2747 ps_pps->i1_entropy_coding_sync_enabled_flag = ENTROPY_CODING_SYNC_ENABLED; in ihevce_populate_pps()
2751 ps_pps->i1_entropy_coding_sync_enabled_flag = ENTROPY_CODING_SYNC_DISABLED; in ihevce_populate_pps()
2754 ps_pps->i1_entropy_slice_enabled_flag = ENTROPY_SLICE_DISABLED; in ihevce_populate_pps()
2756 ps_pps->i1_lists_modification_present_flag = ps_coding_params->i4_weighted_pred_enable; in ihevce_populate_pps()
2758 ps_pps->i1_log2_parallel_merge_level = DEFAULT_PARALLEL_MERGE_LEVEL; in ihevce_populate_pps()
2760 ps_pps->i1_num_extra_slice_header_bits = 0; in ihevce_populate_pps()
2765 ps_pps->i1_loop_filter_across_slices_enabled_flag = LF_ACROSS_SLICES_ENABLED; in ihevce_populate_pps()
2767 ps_pps->i1_num_ref_idx_l0_default_active = DEFAULT_NUM_REF_IDX_L0_DEFAULT_ACTIVE; in ihevce_populate_pps()
2769 ps_pps->i1_num_ref_idx_l1_default_active = DEFAULT_NUM_REF_IDX_L1_DEFAULT_ACTIVE; in ihevce_populate_pps()
2773 ps_pps->i1_num_tile_columns = NUM_TILES_COLS; in ihevce_populate_pps()
2775 ps_pps->i1_num_tile_rows = NUM_TILES_ROWS; in ihevce_populate_pps()
2777 ps_pps->i1_tiles_enabled_flag = TILES_DISABLED; in ihevce_populate_pps()
2779 ps_pps->i1_uniform_spacing_flag = SPACING_IS_UNIFORM; in ihevce_populate_pps()
2783 ps_pps->i1_num_tile_columns = ps_tile_params_base->i4_num_tile_cols; in ihevce_populate_pps()
2785 ps_pps->i1_num_tile_rows = ps_tile_params_base->i4_num_tile_rows; in ihevce_populate_pps()
2787 ps_pps->i1_tiles_enabled_flag = TILES_ENABLED; in ihevce_populate_pps()
2789 ps_pps->i1_uniform_spacing_flag = ps_tile_params_base->i4_uniform_spacing_flag; in ihevce_populate_pps()
2791 if(SPACING_IS_NONUNIFORM == ps_pps->i1_uniform_spacing_flag) in ihevce_populate_pps()
2796 ps_pps->ps_tile[i4_i].u2_wd = pi4_column_width_array[i4_i] >> in ihevce_populate_pps()
2801 ps_pps->ps_tile[i4_i].u2_ht = pi4_row_height_array[i4_i] >> in ihevce_populate_pps()
2812 ps_pps->i1_loop_filter_across_tiles_enabled_flag = 1; in ihevce_populate_pps()
2816 ps_pps->i1_loop_filter_across_tiles_enabled_flag = 0; in ihevce_populate_pps()
2819 ps_pps->i1_output_flag_present_flag = OUTPUT_FLAG_ABSENT; in ihevce_populate_pps()
2821 ps_pps->i1_pic_cb_qp_offset = DEFAULT_PIC_CB_QP_OFFSET; in ihevce_populate_pps()
2823 ps_pps->i1_pic_cr_qp_offset = DEFAULT_PIC_CR_QP_OFFSET; in ihevce_populate_pps()
2826 ps_pps->i1_pic_init_qp = CLIP3( in ihevce_populate_pps()
2839 ps_pps->i1_pic_slice_level_chroma_qp_offsets_present_flag = in ihevce_populate_pps()
2844 ps_pps->i1_pic_slice_level_chroma_qp_offsets_present_flag = in ihevce_populate_pps()
2848 ps_pps->i1_pps_id = DEFAULT_PPS_ID; in ihevce_populate_pps()
2852 ps_pps->i1_pps_id = i4_resolution_id; in ihevce_populate_pps()
2855 ps_pps->i1_pps_scaling_list_data_present_flag = SCALING_LIST_DATA_ABSENT; in ihevce_populate_pps()
2860 ps_pps->i1_sign_data_hiding_flag = SIGN_DATA_HIDDEN; in ihevce_populate_pps()
2866 ps_pps->i1_sign_data_hiding_flag = SIGN_DATA_UNHIDDEN; in ihevce_populate_pps()
2870 ps_pps->i1_sign_data_hiding_flag = SIGN_DATA_UNHIDDEN; in ihevce_populate_pps()
2874 ps_pps->i1_sign_data_hiding_flag = SIGN_DATA_UNHIDDEN; in ihevce_populate_pps()
2877 ps_pps->i1_slice_extension_present_flag = SLICE_EXTENSION_ABSENT; in ihevce_populate_pps()
2879 ps_pps->i1_slice_header_extension_present_flag = SLICE_HEADER_EXTENSION_ABSENT; in ihevce_populate_pps()
2881 ps_pps->i1_sps_id = ps_sps->i1_sps_id; in ihevce_populate_pps()
2883 ps_pps->i1_tc_offset_div2 = DEFAULT_TC_OFFSET; in ihevce_populate_pps()
2885 ps_pps->i1_transform_skip_enabled_flag = TRANSFORM_SKIP_DISABLED; in ihevce_populate_pps()
2887 ps_pps->i1_transquant_bypass_enable_flag = TRANSFORM_BYPASS_DISABLED; in ihevce_populate_pps()
2889 ps_pps->i1_weighted_bipred_flag = ps_coding_params->i4_weighted_pred_enable; in ihevce_populate_pps()
2891 ps_pps->i1_weighted_pred_flag = ps_coding_params->i4_weighted_pred_enable; in ihevce_populate_pps()
2937 pps_t *ps_pps, in ihevce_populate_slice_header() argument
2973 ps_slice_hdr->i1_pps_id = ps_pps->i1_pps_id; in ihevce_populate_slice_header()
2985 if(ps_pps->i1_output_flag_present_flag) in ihevce_populate_slice_header()
3070 ps_slice_hdr->i1_cabac_init_flag = ps_pps->i1_cabac_init_present_flag ? 1 : 0; in ihevce_populate_slice_header()
3100 ps_slice_hdr->i1_slice_qp_delta = (WORD8)cur_slice_qp - ps_pps->i1_pic_init_qp; in ihevce_populate_slice_header()
3102 if(!ps_pps->i1_pic_slice_level_chroma_qp_offsets_present_flag || !stasino_enabled) in ihevce_populate_slice_header()
3116 if(ps_pps->i1_deblocking_filter_control_present_flag) in ihevce_populate_slice_header()
3120 if(ps_pps->i1_deblocking_filter_override_enabled_flag) in ihevce_populate_slice_header()
3143 ps_pps->i1_pic_disable_deblocking_filter_flag; in ihevce_populate_slice_header()
3145 if(ps_pps->i1_loop_filter_across_slices_enabled_flag && in ihevce_populate_slice_header()
3154 if(1 == ps_pps->i1_entropy_coding_sync_enabled_flag) in ihevce_populate_slice_header()
3236 pps_t *ps_pps, in ihevce_insert_entry_offset_slice_header() argument
3287 if(ps_pps->i1_slice_header_extension_present_flag) in ihevce_insert_entry_offset_slice_header()