/external/libhevc/encoder/ |
D | ihevce_encode_header.c | 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() [all …]
|
D | ihevce_encode_header.h | 86 WORD32 ihevce_generate_pps(bitstrm_t *ps_bitstrm, pps_t *ps_pps); 92 pps_t *ps_pps, 123 pps_t *ps_pps, 138 pps_t *ps_pps, 154 pps_t *ps_pps,
|
D | ihevce_entropy_interface.c | 324 pps_t *ps_pps = ps_curr_inp->ps_pps; in ihevce_entropy_encode_frame() local 357 ps_entropy_ctxt->ps_pps = ps_pps; in ihevce_entropy_encode_frame() 413 ret |= ihevce_generate_pps(ps_bitstrm, ps_entropy_ctxt->ps_pps); in ihevce_entropy_encode_frame() 527 ps_entropy_ctxt->ps_pps, in ihevce_entropy_encode_frame() 567 if(1 == ps_pps->i1_entropy_coding_sync_enabled_flag) in ihevce_entropy_encode_frame() 573 ps_entropy_ctxt->ps_pps, in ihevce_entropy_encode_frame() 578 if(1 == ps_pps->i1_entropy_coding_sync_enabled_flag) in ihevce_entropy_encode_frame()
|
D | ihevce_cabac_rdo.c | 137 pps_t *ps_pps, in ihevce_entropy_rdo_frame_init() argument 143 WORD32 slice_qp = ps_slice_hdr->i1_slice_qp_delta + ps_pps->i1_pic_init_qp; in ihevce_entropy_rdo_frame_init() 159 ps_rdopt_entropy_ctxt->as_cu_entropy_ctxt[0].ps_pps = ps_pps; in ihevce_entropy_rdo_frame_init() 164 ps_rdopt_entropy_ctxt->as_cu_entropy_ctxt[1].ps_pps = ps_pps; in ihevce_entropy_rdo_frame_init()
|
D | ihevce_cabac_cu_pu.c | 1059 pps_t *ps_pps = ps_entropy_ctxt->ps_pps; in ihevce_cabac_encode_coding_unit() local 1085 ASSERT(ps_pps->i1_transquant_bypass_enable_flag == 0); in ihevce_cabac_encode_coding_unit() 1091 if(ps_pps->i1_transquant_bypass_enable_flag) in ihevce_cabac_encode_coding_unit() 1286 ps_entropy_ctxt->i1_log2_ctb_size - ps_entropy_ctxt->ps_pps->i1_diff_cu_qp_delta_depth; in ihevce_cabac_encode_coding_unit() 1658 pps_t *ps_pps = ps_entropy_ctxt->ps_pps; in ihevce_encode_coding_quadtree() local 1748 if((ps_pps->i1_cu_qp_delta_enabled_flag) && (ct_depth <= (ps_pps->i1_diff_cu_qp_delta_depth))) in ihevce_encode_coding_quadtree() 1884 pps_t *ps_pps = ps_entropy_ctxt->ps_pps; in ihevce_encode_slice_data() local 1914 WORD32 slice_qp = ps_slice_hdr->i1_slice_qp_delta + ps_pps->i1_pic_init_qp; in ihevce_encode_slice_data() 1957 ps_cabac->i1_entropy_coding_sync_enabled_flag = ps_pps->i1_entropy_coding_sync_enabled_flag; in ihevce_encode_slice_data() 2088 if(ps_pps->i1_entropy_coding_sync_enabled_flag && ps_entropy_ctxt->i4_ctb_x == 2) in ihevce_encode_slice_data() [all …]
|
/external/libavc/encoder/ |
D | ih264e_encode_header.c | 607 WORD32 ih264e_generate_pps(bitstrm_t *ps_bitstrm, pps_t *ps_pps, sps_t *ps_sps) in ih264e_generate_pps() argument 618 PUT_BITS_UEV(ps_bitstrm, ps_pps->u1_pps_id, return_status, "pic_parameter_set_id"); in ih264e_generate_pps() 621 PUT_BITS_UEV(ps_bitstrm, ps_pps->u1_sps_id, return_status, "seq_parameter_set_id"); in ih264e_generate_pps() 624 …PUT_BITS(ps_bitstrm, ps_pps->u1_entropy_coding_mode_flag, 1, return_status, "Entropy coding : 0-VL… in ih264e_generate_pps() 627 …PUT_BITS(ps_bitstrm, ps_pps->u1_pic_order_present_flag, 1, return_status, "Pic order present flag"… in ih264e_generate_pps() 630 …PUT_BITS_UEV(ps_bitstrm, ps_pps->u1_num_slice_groups - 1, return_status, "Number of slice groups"); in ih264e_generate_pps() 632 if (ps_pps->u1_num_slice_groups > 1) in ih264e_generate_pps() 639 …PUT_BITS_UEV(ps_bitstrm, ps_pps->i1_num_ref_idx_l0_default_active - 1, return_status, "num_ref_idx… in ih264e_generate_pps() 642 …PUT_BITS_UEV(ps_bitstrm, ps_pps->i1_num_ref_idx_l1_default_active - 1, return_status, "num_ref_idx… in ih264e_generate_pps() 645 PUT_BITS(ps_bitstrm, ps_pps->i1_weighted_pred_flag, 1, return_status, "weighted_pred_flag"); in ih264e_generate_pps() [all …]
|
D | ih264e_encode_header.h | 129 pps_t *ps_pps, 167 pps_t *ps_pps, 216 pps_t *ps_pps 248 pps_t *ps_pps,
|
/external/libavc/decoder/ |
D | ih264d_parse_headers.c | 196 dec_pic_params_t * ps_pps = NULL; in ih264d_parse_pps() local 217 ps_pps = ps_dec->pv_scratch_sps_pps; in ih264d_parse_pps() 218 *ps_pps = ps_dec->ps_pps[u4_temp]; in ih264d_parse_pps() 219 ps_pps->u1_pic_parameter_set_id = (WORD8)u4_temp; in ih264d_parse_pps() 220 COPYTHECONTEXT("PPS: pic_parameter_set_id",ps_pps->u1_pic_parameter_set_id); in ih264d_parse_pps() 225 ps_pps->i4_transform_8x8_mode_flag = 0; in ih264d_parse_pps() 226 ps_pps->i4_pic_scaling_matrix_present_flag = 0; in ih264d_parse_pps() 239 ps_pps->ps_sps = ps_sps; in ih264d_parse_pps() 244 ps_pps->u1_entropy_coding_mode = ih264d_get_bit_h264(ps_bitstrm); in ih264d_parse_pps() 245 COPYTHECONTEXT("PPS: entropy_coding_mode_flag",ps_pps->u1_entropy_coding_mode); in ih264d_parse_pps() [all …]
|
D | ih264d_parse_slice.c | 166 dec_pic_params_t *ps_pps) in ih264d_start_of_pic() argument 176 dec_seq_params_t *ps_seq = ps_pps->ps_sps; in ih264d_start_of_pic() 341 ret = ih264d_init_pic(ps_dec, u2_frame_num, i4_poc, ps_pps); in ih264d_start_of_pic() 530 ps_dec->ps_cur_pic->i4_top_field_order_cnt = ps_pps->i4_top_field_order_cnt; in ih264d_start_of_pic() 532 ps_pps->i4_bottom_field_order_cnt; in ih264d_start_of_pic() 533 ps_dec->ps_cur_pic->i4_avg_poc = ps_pps->i4_avg_poc; in ih264d_start_of_pic() 691 || (ps_pps->i4_pic_scaling_matrix_present_flag)) in ih264d_start_of_pic() 693 ret = ih264d_form_scaling_matrix_picture(ps_seq, ps_pps, ps_dec); in ih264d_start_of_pic() 701 if(ps_pps->i4_transform_8x8_mode_flag) in ih264d_start_of_pic() 1066 dec_pic_params_t *ps_pps; in ih264d_parse_decode_slice() local [all …]
|
D | ih264d_utils.h | 63 dec_pic_params_t * ps_pps); 71 dec_pic_params_t * ps_pps,
|
/external/libhevc/decoder/ |
D | ihevcd_parse_headers.c | 150 pps_t *ps_pps, in ihevcd_parse_pred_wt_ofst() argument 159 UNUSED(ps_pps); in ihevcd_parse_pred_wt_ofst() 1978 pps_t *ps_pps = ps_codec->ps_pps_base; in ihevcd_unmark_pps() local 1980 for(pps_id = 0; pps_id < MAX_PPS_CNT - 1; pps_id++, ps_pps++) in ihevcd_unmark_pps() 1982 if((ps_pps->i1_pps_valid) && in ihevcd_unmark_pps() 1983 (ps_pps->i1_sps_id == sps_id)) in ihevcd_unmark_pps() 1984 ps_pps->i1_pps_valid = 0; in ihevcd_unmark_pps() 2048 pps_t *ps_pps; in ihevcd_parse_pps() local 2068 ps_pps = (ps_codec->s_parse.ps_pps_base + MAX_PPS_CNT - 1); in ihevcd_parse_pps() 2070 ps_pps->i1_pps_id = pps_id; in ihevcd_parse_pps() [all …]
|
D | ihevcd_parse_slice_header.c | 226 pps_t *ps_pps; in ihevcd_parse_slice_header() local 260 ps_pps = ps_codec->s_parse.ps_pps_base + pps_id; in ihevcd_parse_slice_header() 261 if(0 == ps_pps->i1_pps_valid) in ihevcd_parse_slice_header() 275 sps_id = ps_pps->i1_sps_id; in ihevcd_parse_slice_header() 323 if((ps_pps->i1_dependent_slice_enabled_flag) && in ihevcd_parse_slice_header() 379 for(i = 0; i < ps_pps->i1_num_extra_slice_header_bits; i++) in ihevcd_parse_slice_header() 400 if(ps_pps->i1_output_flag_present_flag) in ihevcd_parse_slice_header() 598 ps_slice_hdr->i1_num_ref_idx_l0_active = ps_pps->i1_num_ref_idx_l0_default_active; in ihevcd_parse_slice_header() 601 … ps_slice_hdr->i1_num_ref_idx_l1_active = ps_pps->i1_num_ref_idx_l1_default_active; in ihevcd_parse_slice_header() 607 if((ps_pps->i1_lists_modification_present_flag) && (num_poc_total_curr > 1)) in ihevcd_parse_slice_header() [all …]
|
D | ihevcd_deblk.c | 127 pps_t *ps_pps; in ihevcd_deblk_ctb() local 134 ps_pps = ps_deblk->ps_pps; in ihevcd_deblk_ctb() 603 ps_pps->i1_pic_cb_qp_offset, in ihevcd_deblk_ctb() 604 ps_pps->i1_pic_cr_qp_offset, in ihevcd_deblk_ctb() 613 … ps_pps->i1_pic_cr_qp_offset, in ihevcd_deblk_ctb() 614 … ps_pps->i1_pic_cb_qp_offset, in ihevcd_deblk_ctb() 625 … ps_pps->i1_pic_cb_qp_offset, in ihevcd_deblk_ctb() 626 … ps_pps->i1_pic_cr_qp_offset, in ihevcd_deblk_ctb() 752 ps_pps->i1_pic_cb_qp_offset, in ihevcd_deblk_ctb() 753 ps_pps->i1_pic_cr_qp_offset, in ihevcd_deblk_ctb() [all …]
|
D | ihevcd_parse_slice.c | 127 pps_t *ps_pps; in ihevcd_parse_transform_tree() local 140 ps_pps = ps_codec->s_parse.ps_pps; in ihevcd_parse_transform_tree() 288 … if(ps_pps->i1_cu_qp_delta_enabled_flag && !ps_codec->s_parse.i4_is_cu_qp_delta_coded) in ihevcd_parse_transform_tree() 1171 pps_t *ps_pps; in ihevcd_parse_coding_unit() local 1190 ps_pps = ps_codec->s_parse.ps_pps; in ihevcd_parse_coding_unit() 1204 if(ps_pps->i1_transquant_bypass_enable_flag) in ihevcd_parse_coding_unit() 1692 pps_t *ps_pps; in ihevcd_parse_coding_quadtree() local 1701 ps_pps = ps_codec->s_parse.ps_pps; in ihevcd_parse_coding_quadtree() 1818 if((ps_pps->i1_cu_qp_delta_enabled_flag) && in ihevcd_parse_coding_quadtree() 1819 (log2_cb_size >= ps_pps->i1_log2_min_cu_qp_delta_size)) in ihevcd_parse_coding_quadtree() [all …]
|
D | ihevcd_process_slice.c | 113 pps_t *ps_pps = ps_proc->ps_pps; in ihevcd_proc_map_check() local 151 ps_pps = ps_proc->ps_pps; in ihevcd_proc_map_check() 152 if(ps_pps->i1_tiles_enabled_flag) in ihevcd_proc_map_check() 258 if(ps_proc->ps_pps->i1_tiles_enabled_flag) in ihevcd_ctb_pos_update() 673 s_mv_ctxt.ps_pps = ps_proc->ps_pps; in ihevcd_process() 786 if(ps_proc->ps_pps->i1_tiles_enabled_flag) in ihevcd_process() 816 ps_proc->s_bs_ctxt.ps_pps = ps_proc->ps_pps; in ihevcd_process() 1046 ps_proc->s_deblk_ctxt.ps_pps = ps_proc->ps_pps; in ihevcd_process() 1152 ps_proc->s_sao_ctxt.ps_pps = ps_proc->ps_pps; in ihevcd_process() 1384 pps_t *ps_pps; in ihevcd_init_proc_ctxt() local [all …]
|
D | ihevcd_sao.c | 536 pps_t *ps_pps; in ihevcd_sao_shift_ctb() local 585 ps_pps = ps_sao_ctxt->ps_pps; in ihevcd_sao_shift_ctb() 880 … if((!ps_slice_hdr->i1_first_slice_in_pic_flag) || (ps_pps->i1_tiles_enabled_flag)) in ihevcd_sao_shift_ctb() 1000 if(ps_pps->i1_tiles_enabled_flag) in ihevcd_sao_shift_ctb() 1006 if(!ps_pps->i1_loop_filter_across_tiles_enabled_flag) in ihevcd_sao_shift_ctb() 1046 … au4_ilf_across_tile_slice_enable[i] &= ps_pps->i1_loop_filter_across_tiles_enabled_flag; //=0 in ihevcd_sao_shift_ctb() 1111 else if((!ps_slice_hdr->i1_first_slice_in_pic_flag) || (ps_pps->i1_tiles_enabled_flag)) in ihevcd_sao_shift_ctb() 1203 … if((!ps_slice_hdr->i1_first_slice_in_pic_flag) || (ps_pps->i1_tiles_enabled_flag)) in ihevcd_sao_shift_ctb() 1310 if(ps_pps->i1_tiles_enabled_flag) in ihevcd_sao_shift_ctb() 1316 if(!ps_pps->i1_loop_filter_across_tiles_enabled_flag) in ihevcd_sao_shift_ctb() [all …]
|
D | ihevcd_utils.c | 349 IHEVCD_ERROR_T ihevcd_get_tile_pos(pps_t *ps_pps, in ihevcd_get_tile_pos() argument 373 ps_tile_tmp = ps_pps->ps_tile; in ihevcd_get_tile_pos() 374 if(0 == ps_pps->i1_tiles_enabled_flag) in ihevcd_get_tile_pos() 382 for(i = 0; i < ps_pps->i1_num_tile_columns; i++) in ihevcd_get_tile_pos() 385 ps_tile_tmp = ps_pps->ps_tile + i; //* ps_pps->i1_num_tile_rows; in ihevcd_get_tile_pos() 386 if((ps_pps->i1_num_tile_columns - 1) == i) in ihevcd_get_tile_pos() 393 ps_tile_next_tmp = ps_pps->ps_tile + i + 1; in ihevcd_get_tile_pos() 404 for(i = 0; i < ps_pps->i1_num_tile_rows; i++) in ihevcd_get_tile_pos() 407 ps_tile_tmp = ps_pps->ps_tile + i * ps_pps->i1_num_tile_columns; in ihevcd_get_tile_pos() 408 if((ps_pps->i1_num_tile_rows - 1) == i) in ihevcd_get_tile_pos() [all …]
|
D | ihevcd_boundary_strength.c | 211 pps_t *ps_pps; in ihevcd_ctb_boundary_strength_islice() local 234 ps_pps = ps_bs_ctxt->ps_pps; in ihevcd_ctb_boundary_strength_islice() 236 i1_loop_filter_across_tiles_enabled_flag = ps_pps->i1_loop_filter_across_tiles_enabled_flag; in ihevcd_ctb_boundary_strength_islice() 361 if(!ps_pps->i1_tiles_enabled_flag) in ihevcd_ctb_boundary_strength_islice() 461 pps_t *ps_pps; in ihevcd_ctb_boundary_strength_pbslice() local 486 ps_pps = ps_bs_ctxt->ps_pps; in ihevcd_ctb_boundary_strength_pbslice() 514 i1_loop_filter_across_tiles_enabled_flag = ps_pps->i1_loop_filter_across_tiles_enabled_flag; in ihevcd_ctb_boundary_strength_pbslice() 917 if(!ps_pps->i1_tiles_enabled_flag) in ihevcd_ctb_boundary_strength_pbslice()
|
D | ihevcd_structs.h | 222 pps_t *ps_pps; member 320 pps_t *ps_pps; member 469 pps_t *ps_pps; member 538 pps_t *ps_pps; member 846 pps_t *ps_pps; member 1233 pps_t *ps_pps; member
|
D | ihevcd_iquant_itrans_recon_ctb.c | 556 pps_t *ps_pps; in ihevcd_iquant_itrans_recon_ctb() local 579 ps_pps = ps_proc->ps_pps; in ihevcd_iquant_itrans_recon_ctb() 599 …if((1 == ps_sps->i1_scaling_list_enable_flag) && (1 == ps_pps->i1_pps_scaling_list_data_present_fl… in ihevcd_iquant_itrans_recon_ctb() 601 pi2_scaling_mat = ps_pps->pi2_scaling_mat; in ihevcd_iquant_itrans_recon_ctb() 896 i1_chroma_pic_qp_offset = ps_pps->i1_pic_cb_qp_offset; in ihevcd_iquant_itrans_recon_ctb() 907 i1_chroma_pic_qp_offset = ps_pps->i1_pic_cr_qp_offset; in ihevcd_iquant_itrans_recon_ctb() 962 … ps_pps->i1_constrained_intra_pred_flag, in ihevcd_iquant_itrans_recon_ctb()
|
D | ihevcd_parse_residual.c | 189 pps_t *ps_pps; in ihevcd_parse_residual_coding() local 208 ps_pps = ps_codec->s_parse.ps_pps; in ihevcd_parse_residual_coding() 210 sign_data_hiding_flag = ps_pps->i1_sign_data_hiding_flag; in ihevcd_parse_residual_coding() 212 if(ps_pps->i1_transform_skip_enabled_flag && in ihevcd_parse_residual_coding()
|
D | ihevcd_get_mv.c | 112 pps_t *ps_pps; in ihevcd_get_mv_ctb() local 136 ps_pps = ps_mv_ctxt->ps_pps; in ihevcd_get_mv_ctb() 312 …if((ps_pps->i1_log2_parallel_merge_level > 2) && cb_size == 8 && (pu_wd_single_mcl != pu_ht_single… in ihevcd_get_mv_ctb()
|
D | ihevcd_inter_pred.c | 122 pps_t *ps_pps; in ihevcd_inter_pred_ctb() local 170 ps_pps = ps_proc->ps_pps; in ihevcd_inter_pred_ctb() 225 weighted_pred = (ps_slice_hdr->i1_slice_type == PSLICE) ? ps_pps->i1_weighted_pred_flag : in ihevcd_inter_pred_ctb() 226 ps_pps->i1_weighted_bipred_flag; in ihevcd_inter_pred_ctb()
|
D | ihevcd_ref_list.h | 37 WORD32 ihevcd_ref_list(codec_t *ps_codec, pps_t *ps_pps, sps_t *ps_sps, slice_header_t *ps_slice_hd…
|
D | ihevcd_nal.c | 447 pps_t *ps_pps = ps_codec->ps_pps_base + MAX_PPS_CNT - 1; in ihevcd_nal_unit() local 448 ihevcd_copy_pps(ps_codec, ps_pps->i1_pps_id, MAX_PPS_CNT - 1); in ihevcd_nal_unit()
|