Home
last modified time | relevance | path

Searched refs:ps_slice_hdr (Results 1 – 25 of 25) sorted by relevance

/external/libhevc/decoder/
Dihevcd_parse_slice_header.c141 slice_header_t *ps_slice_hdr, in ihevcd_ref_pic_list_modification() argument
150 ps_rplm = &(ps_slice_hdr->s_rplm); in ihevcd_ref_pic_list_modification()
162 if(ps_slice_hdr->i1_slice_type == PSLICE || ps_slice_hdr->i1_slice_type == BSLICE) in ihevcd_ref_pic_list_modification()
168 for(i = 0; i < ps_slice_hdr->i1_num_ref_idx_l0_active; i++) in ihevcd_ref_pic_list_modification()
177 if(ps_slice_hdr->i1_slice_type == BSLICE) in ihevcd_ref_pic_list_modification()
183 for(i = 0; i < ps_slice_hdr->i1_num_ref_idx_l1_active; i++) in ihevcd_ref_pic_list_modification()
227 slice_header_t *ps_slice_hdr; in ihevcd_parse_slice_header() local
314ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr_base + (ps_codec->s_parse.i4_cur_slice_idx & (MAX_SL… in ihevcd_parse_slice_header()
329 ps_slice_hdr->i1_dependent_slice_flag = value; in ihevcd_parse_slice_header()
333 ps_slice_hdr->i1_dependent_slice_flag = 0; in ihevcd_parse_slice_header()
[all …]
Dihevcd_ref_list.c93 …RD32 ihevcd_ref_list(codec_t *ps_codec, pps_t *ps_pps, sps_t *ps_sps, slice_header_t *ps_slice_hdr) in ihevcd_ref_list() argument
135 i4_pic_order_cnt_val = ps_slice_hdr->i4_abs_pic_order_cnt; in ihevcd_ref_list()
137 if(1 == ps_slice_hdr->i1_short_term_ref_pic_set_sps_flag) in ihevcd_ref_list()
139 st_rps_idx = ps_slice_hdr->i1_short_term_ref_pic_set_idx; in ihevcd_ref_list()
148 num_neg_pics = ps_slice_hdr->s_stref_picset.i1_num_neg_pics; in ihevcd_ref_list()
149 num_pos_pics = ps_slice_hdr->s_stref_picset.i1_num_pos_pics; in ihevcd_ref_list()
150 pi1_used = ps_slice_hdr->s_stref_picset.ai1_used; in ihevcd_ref_list()
151 pi2_delta_poc = ps_slice_hdr->s_stref_picset.ai2_delta_poc; in ihevcd_ref_list()
186 for(i = 0; i < ps_slice_hdr->i1_num_long_term_sps + ps_slice_hdr->i1_num_long_term_pics; i++) in ihevcd_ref_list()
188 i4_poc_lt = ps_slice_hdr->ai4_poc_lsb_lt[i]; in ihevcd_ref_list()
[all …]
Dihevcd_mv_merge.c148 slice_header_t *ps_slice_hdr = ps_mv_ctxt->ps_slice_hdr; in ihevcd_collocated_mvp() local
173 ps_ref_list[0] = ps_slice_hdr->as_ref_pic_list0; in ihevcd_collocated_mvp()
174 ps_ref_list[1] = ps_slice_hdr->as_ref_pic_list1; in ihevcd_collocated_mvp()
175 if(PSLICE == ps_slice_hdr->i1_slice_type) in ihevcd_collocated_mvp()
176 ps_ref_list[1] = ps_slice_hdr->as_ref_pic_list0; in ihevcd_collocated_mvp()
178 if((ps_slice_hdr->i1_slice_type == BSLICE) && (ps_slice_hdr->i1_collocated_from_l0_flag == 0)) in ihevcd_collocated_mvp()
181 ps_mv_buf_col = (mv_buf_t *)ps_ref_list[1][ps_slice_hdr->i1_collocated_ref_idx].pv_mv_buf; in ihevcd_collocated_mvp()
187 ps_mv_buf_col = (mv_buf_t *)ps_ref_list[0][ps_slice_hdr->i1_collocated_ref_idx].pv_mv_buf; in ihevcd_collocated_mvp()
215 || (ps_slice_hdr->i1_slice_temporal_mvp_enable_flag == 0)) in ihevcd_collocated_mvp()
255 if(1 == ps_slice_hdr->i1_low_delay_flag) in ihevcd_collocated_mvp()
[all …]
Dihevcd_inter_pred.c120 slice_header_t *ps_slice_hdr; in ihevcd_inter_pred_ctb() local
169 ps_slice_hdr = ps_proc->ps_slice_hdr; in ihevcd_inter_pred_ctb()
190 ASSERT(PSLICE == ps_slice_hdr->i1_slice_type || BSLICE == ps_slice_hdr->i1_slice_type); 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()
233 …ps_pic_buf_l0 = (pic_buf_t *)((ps_slice_hdr->as_ref_pic_list0[ps_pu->mv.i1_l0_ref_idx].pv_pic_buf)… in ihevcd_inter_pred_ctb()
238 luma_weight_l0 = ps_slice_hdr->s_wt_ofst.i2_luma_weight_l0[ps_pu->mv.i1_l0_ref_idx]; in ihevcd_inter_pred_ctb()
239 … chroma_weight_l0_cb = ps_slice_hdr->s_wt_ofst.i2_chroma_weight_l0_cb[ps_pu->mv.i1_l0_ref_idx]; in ihevcd_inter_pred_ctb()
240 … chroma_weight_l0_cr = ps_slice_hdr->s_wt_ofst.i2_chroma_weight_l0_cr[ps_pu->mv.i1_l0_ref_idx]; in ihevcd_inter_pred_ctb()
242 luma_offset_l0 = ps_slice_hdr->s_wt_ofst.i2_luma_offset_l0[ps_pu->mv.i1_l0_ref_idx]; in ihevcd_inter_pred_ctb()
243 … chroma_offset_l0_cb = ps_slice_hdr->s_wt_ofst.i2_chroma_offset_l0_cb[ps_pu->mv.i1_l0_ref_idx]; in ihevcd_inter_pred_ctb()
[all …]
Dihevcd_utils.c688 slice_header_t *ps_slice_hdr; in ihevcd_parse_pic_init() local
694 ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr; in ihevcd_parse_pic_init()
752 ps_mv_buf->i4_abs_poc = ps_slice_hdr->i4_abs_pic_order_cnt; in ihevcd_parse_pic_init()
777 ps_cur_pic->i4_abs_poc = ps_slice_hdr->i4_abs_pic_order_cnt; in ihevcd_parse_pic_init()
778 ps_cur_pic->i4_poc_lsb = ps_slice_hdr->i4_pic_order_cnt_lsb; in ihevcd_parse_pic_init()
802 …ps_pic_buf_ref = ihevc_dpb_mgr_get_ref_by_nearest_poc(ps_dpb_mgr, ps_slice_hdr->i4_abs_pic_order_c… in ihevcd_parse_pic_init()
842 for(r_idx = 0; r_idx < ps_slice_hdr->i1_num_ref_idx_l0_active; r_idx++) in ihevcd_parse_pic_init()
844 if(NULL == ps_slice_hdr->as_ref_pic_list0[r_idx].pv_pic_buf) in ihevcd_parse_pic_init()
846 ps_slice_hdr->as_ref_pic_list0[r_idx].pv_pic_buf = (void *)ps_pic_buf_ref; in ihevcd_parse_pic_init()
847 ps_slice_hdr->as_ref_pic_list0[r_idx].pv_mv_buf = (void *)ps_mv_buf_ref; in ihevcd_parse_pic_init()
[all …]
Dihevcd_process_slice.c239 ps_proc->ps_slice_hdr = ps_slice_hdr_next; in ihevcd_slice_hdr_update()
248 slice_header_t *ps_slice_hdr = ps_proc->ps_slice_hdr; in ihevcd_ctb_pos_update() local
261 …slice_start_ctb_idx = ps_slice_hdr->i2_ctb_x + (ps_slice_hdr->i2_ctb_y * ps_sps->i2_pic_wd_in_ctb); in ihevcd_ctb_pos_update()
273 if(ps_proc->i4_ctb_x > ps_slice_hdr->i2_ctb_x) in ihevcd_ctb_pos_update()
284 WORD32 temp_stride = (ps_sps->i2_pic_wd_in_ctb - ps_slice_hdr->i2_ctb_x); in ihevcd_ctb_pos_update()
314 slice_header_t *ps_slice_hdr = ps_proc->ps_slice_hdr; in ihevcd_ctb_avail_update() local
335 check_tile_wd = ps_slice_hdr->i2_ctb_x + ps_tile_prev->u2_wd; in ihevcd_ctb_avail_update()
337 || ((ps_slice_hdr->i2_ctb_x == ps_tile->u1_pos_x)))) in ihevcd_ctb_avail_update()
342 …slice_start_ctb_idx = ps_slice_hdr->i2_ctb_x + (ps_slice_hdr->i2_ctb_y * ps_sps->i2_pic_wd_in_ctb); in ihevcd_ctb_avail_update()
584 slice_header_t *ps_slice_hdr; in ihevcd_process() local
[all …]
Dihevcd_parse_slice.c628 slice_header_t *ps_slice_hdr; in ihevcd_parse_pu_mvp() local
633 ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr; in ihevcd_parse_pu_mvp()
635 if(ps_slice_hdr->i1_slice_type == BSLICE) in ihevcd_parse_pu_mvp()
674 WORD32 active_refs = ps_slice_hdr->i1_num_ref_idx_l0_active; in ihevcd_parse_pu_mvp()
723 WORD32 active_refs = ps_slice_hdr->i1_num_ref_idx_l1_active; in ihevcd_parse_pu_mvp()
759 if(ps_slice_hdr->i1_mvd_l1_zero_flag && inter_pred_idc == PRED_BI) in ihevcd_parse_pu_mvp()
809 slice_header_t *ps_slice_hdr; in ihevcd_parse_prediction_unit() local
818 ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr; in ihevcd_parse_prediction_unit()
838 if(ps_slice_hdr->i1_max_num_merge_cand > 1) in ihevcd_parse_prediction_unit()
847 if(ps_slice_hdr->i1_max_num_merge_cand > 2) in ihevcd_parse_prediction_unit()
[all …]
Dihevcd_mv_pred.c265 void GET_MV_NBR_LT(ref_list_t **ps_ref_pic_list, slice_header_t *ps_slice_hdr, WORD32 *pi4_avail_fl… in GET_MV_NBR_LT() argument
277 …CHECK_NBR_MV_LT(pi4_avail_flag, ps_cur_pic_buf_lx->u1_used_as_ref, ps_slice_hdr->i4_abs_pic_order_… in GET_MV_NBR_LT()
284 …CHECK_NBR_MV_LT(pi4_avail_flag, ps_cur_pic_buf_lx->u1_used_as_ref, ps_slice_hdr->i4_abs_pic_order_… in GET_MV_NBR_LT()
297 …CHECK_NBR_MV_LT(pi4_avail_flag, ps_cur_pic_buf_lx->u1_used_as_ref, ps_slice_hdr->i4_abs_pic_order_… in GET_MV_NBR_LT()
304 …CHECK_NBR_MV_LT(pi4_avail_flag, ps_cur_pic_buf_lx->u1_used_as_ref, ps_slice_hdr->i4_abs_pic_order_… in GET_MV_NBR_LT()
367 slice_header_t *ps_slice_hdr; in ihevcd_mv_pred() local
400 ps_slice_hdr = ps_mv_ctxt->ps_slice_hdr; in ihevcd_mv_pred()
408 ps_ref_pic_list[0] = ps_slice_hdr->as_ref_pic_list0; in ihevcd_mv_pred()
409 ps_ref_pic_list[1] = ps_slice_hdr->as_ref_pic_list1; in ihevcd_mv_pred()
410 if(PSLICE == ps_slice_hdr->i1_slice_type) in ihevcd_mv_pred()
[all …]
Dihevcd_deblk.c129 slice_header_t *ps_slice_hdr; in ihevcd_deblk_ctb() local
136 ps_slice_hdr = ps_deblk->ps_slice_hdr; in ihevcd_deblk_ctb()
260 WORD8 i1_beta_offset_div2 = ps_slice_hdr->i1_beta_offset_div2; in ihevcd_deblk_ctb()
261 WORD8 i1_tc_offset_div2 = ps_slice_hdr->i1_tc_offset_div2; in ihevcd_deblk_ctb()
329 ps_slice_hdr->i1_beta_offset_div2, in ihevcd_deblk_ctb()
330 ps_slice_hdr->i1_tc_offset_div2, in ihevcd_deblk_ctb()
402 WORD8 i1_beta_offset_div2 = ps_slice_hdr->i1_beta_offset_div2; in ihevcd_deblk_ctb()
403 WORD8 i1_tc_offset_div2 = ps_slice_hdr->i1_tc_offset_div2; in ihevcd_deblk_ctb()
471 ps_slice_hdr->i1_beta_offset_div2, in ihevcd_deblk_ctb()
472 ps_slice_hdr->i1_tc_offset_div2, in ihevcd_deblk_ctb()
[all …]
Dihevcd_ilf_padding.c82 slice_header_t *ps_slice_hdr; in ihevcd_ilf_pad_frame() local
88 ps_slice_hdr = ps_deblk_ctxt->ps_slice_hdr; in ihevcd_ilf_pad_frame()
108 if((0 == ps_slice_hdr->i1_slice_disable_deblocking_filter_flag) && in ihevcd_ilf_pad_frame()
148 if(ps_slice_hdr->i1_slice_sao_luma_flag || ps_slice_hdr->i1_slice_sao_chroma_flag) in ihevcd_ilf_pad_frame()
Dihevcd_get_mv.c429 slice_header_t *ps_slice_hdr; in ihevcd_get_mv_ctb() local
431 ps_slice_hdr = ps_mv_ctxt->ps_slice_hdr; in ihevcd_get_mv_ctb()
432 …ps_pic_buf_l0 = (pic_buf_t *)((ps_slice_hdr->as_ref_pic_list0[ps_pu->mv.i1_l0_ref_idx].pv_pic_buf)… in ihevcd_get_mv_ctb()
433 …ps_pic_buf_l1 = (pic_buf_t *)((ps_slice_hdr->as_ref_pic_list1[ps_pu->mv.i1_l1_ref_idx].pv_pic_buf)… in ihevcd_get_mv_ctb()
435 if(BSLICE == ps_slice_hdr->i1_slice_type) in ihevcd_get_mv_ctb()
Dihevcd_structs.h232 slice_header_t *ps_slice_hdr; member
340 slice_header_t *ps_slice_hdr; member
484 slice_header_t *ps_slice_hdr; member
558 slice_header_t *ps_slice_hdr; member
1090 slice_header_t *ps_slice_hdr; member
1240 slice_header_t *ps_slice_hdr; member
Dihevcd_debug.h108 #define DEBUG_PRINT_REF_LIST_POCS(i4_pic_order_cnt_val, ps_slice_hdr, ps_dpb_mgr, u4_num_st_curr_be… argument
109 …ihevcd_debug_print_ref_list_pocs(i4_pic_order_cnt_val, ps_slice_hdr, ps_dpb_mgr, u4_num_st_curr_be…
113 #define DEBUG_PRINT_REF_LIST_POCS(i4_pic_order_cnt_val, ps_slice_hdr, ps_dpb_mgr, u4_num_st_curr_be… argument
Dihevcd_parse_headers.c149 slice_header_t *ps_slice_hdr) in ihevcd_parse_pred_wt_ofst() argument
155 pred_wt_ofst_t *ps_wt_ofst = &ps_slice_hdr->s_wt_ofst; in ihevcd_parse_pred_wt_ofst()
167 for(i = 0; i < ps_slice_hdr->i1_num_ref_idx_l0_active; i++) in ihevcd_parse_pred_wt_ofst()
177 for(i = 0; i < ps_slice_hdr->i1_num_ref_idx_l0_active; i++) in ihevcd_parse_pred_wt_ofst()
185 for(i = 0; i < ps_slice_hdr->i1_num_ref_idx_l0_active; i++) in ihevcd_parse_pred_wt_ofst()
192 for(i = 0; i < ps_slice_hdr->i1_num_ref_idx_l0_active; i++) in ihevcd_parse_pred_wt_ofst()
244 if(BSLICE == ps_slice_hdr->i1_slice_type) in ihevcd_parse_pred_wt_ofst()
246 for(i = 0; i < ps_slice_hdr->i1_num_ref_idx_l1_active; i++) in ihevcd_parse_pred_wt_ofst()
254 for(i = 0; i < ps_slice_hdr->i1_num_ref_idx_l1_active; i++) in ihevcd_parse_pred_wt_ofst()
262 for(i = 0; i < ps_slice_hdr->i1_num_ref_idx_l1_active; i++) in ihevcd_parse_pred_wt_ofst()
[all …]
Dihevcd_sao.c537 slice_header_t *ps_slice_hdr, *ps_slice_hdr_base; in ihevcd_sao_shift_ctb() local
591 ps_slice_hdr = ps_slice_hdr_base + (ps_sao_ctxt->i4_cur_slice_idx & (MAX_SLICE_HDR_CNT - 1)); in ihevcd_sao_shift_ctb()
879 … if((!ps_slice_hdr->i1_first_slice_in_pic_flag) || (ps_pps->i1_tiles_enabled_flag)) in ihevcd_sao_shift_ctb()
906 if(!ps_slice_hdr->i1_first_slice_in_pic_flag) in ihevcd_sao_shift_ctb()
1110 else if((!ps_slice_hdr->i1_first_slice_in_pic_flag) || (ps_pps->i1_tiles_enabled_flag)) in ihevcd_sao_shift_ctb()
1202 … if((!ps_slice_hdr->i1_first_slice_in_pic_flag) || (ps_pps->i1_tiles_enabled_flag)) in ihevcd_sao_shift_ctb()
1226 if(!ps_slice_hdr->i1_first_slice_in_pic_flag) in ihevcd_sao_shift_ctb()
1443 else if((!ps_slice_hdr->i1_first_slice_in_pic_flag) || (ps_pps->i1_tiles_enabled_flag)) in ihevcd_sao_shift_ctb()
1573 … if((!ps_slice_hdr->i1_first_slice_in_pic_flag) || (ps_pps->i1_tiles_enabled_flag)) in ihevcd_sao_shift_ctb()
1591 if(!ps_slice_hdr->i1_first_slice_in_pic_flag) in ihevcd_sao_shift_ctb()
[all …]
Dihevcd_ref_list.h37 …D32 ihevcd_ref_list(codec_t *ps_codec, pps_t *ps_pps, sps_t *ps_sps, slice_header_t *ps_slice_hdr);
Dihevcd_parse_slice_header.h47 slice_header_t *ps_slice_hdr);
Dihevcd_iquant_itrans_recon_ctb.c537 slice_header_t *ps_slice_hdr; in ihevcd_iquant_itrans_recon_ctb() local
578 ps_slice_hdr = ps_proc->ps_slice_hdr; in ihevcd_iquant_itrans_recon_ctb()
890 i1_chroma_slice_qp_offset = ps_slice_hdr->i1_slice_cb_qp_offset; in ihevcd_iquant_itrans_recon_ctb()
901 i1_chroma_slice_qp_offset = ps_slice_hdr->i1_slice_cr_qp_offset; in ihevcd_iquant_itrans_recon_ctb()
Dihevcd_boundary_strength.c237 …i1_loop_filter_across_slices_enabled_flag = ps_bs_ctxt->ps_slice_hdr->i1_slice_loop_filter_across_… in ihevcd_ctb_boundary_strength_islice()
387 … if(!((ps_bs_ctxt->ps_slice_hdr->i1_dependent_slice_flag == 1) && (slice_idx == left_slice_idx))) in ihevcd_ctb_boundary_strength_islice()
515 …i1_loop_filter_across_slices_enabled_flag = ps_bs_ctxt->ps_slice_hdr->i1_slice_loop_filter_across_… in ihevcd_ctb_boundary_strength_pbslice()
944 … if(!((ps_bs_ctxt->ps_slice_hdr->i1_dependent_slice_flag == 1) && (slice_idx == left_slice_idx))) in ihevcd_ctb_boundary_strength_pbslice()
Dihevcd_nal.c341 s_nal.i1_nal_unit_type = ps_codec->s_parse.ps_slice_hdr->i1_nal_unit_type; in ihevcd_nal_unit()
/external/libavc/encoder/
Dih264e_encode_header.c721 slice_header_t *ps_slice_hdr, in ih264e_generate_slice_header() argument
732 …status |= ih264e_generate_nal_unit_header(ps_bitstrm, ps_slice_hdr->i1_nal_unit_type, ps_slice_hdr in ih264e_generate_slice_header()
735 … PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->u2_first_mb_in_slice, return_status, "first_mb_in_slice"); in ih264e_generate_slice_header()
738 PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->u1_slice_type, return_status, "slice_type"); in ih264e_generate_slice_header()
741 PUT_BITS_UEV(ps_bitstrm, ps_slice_hdr->u1_pps_id, return_status, "pic_parameter_set_id"); in ih264e_generate_slice_header()
744 …PUT_BITS(ps_bitstrm, ps_slice_hdr->i4_frame_num, ps_sps->i1_log2_max_frame_num, return_status, "fr… in ih264e_generate_slice_header()
749 PUT_BITS(ps_bitstrm, ps_slice_hdr->i1_field_pic_flag, 1, return_status, "field_pic_flag"); in ih264e_generate_slice_header()
751 if(ps_slice_hdr->i1_field_pic_flag) in ih264e_generate_slice_header()
754 … PUT_BITS(ps_bitstrm, ps_slice_hdr->i1_bottom_field_flag, 1, return_status, "bottom_field_flag"); in ih264e_generate_slice_header()
758 if (ps_slice_hdr->i1_nal_unit_type == 5) in ih264e_generate_slice_header()
[all …]
Dih264e_cabac_init.c202 slice_header_t *ps_slice_hdr = ps_ent_ctxt->ps_slice_hdr_base; in ih264e_init_cabac_ctxt() local
203 const UWORD8 u1_slice_type = ps_slice_hdr->u1_slice_type; in ih264e_init_cabac_ctxt()
206 UWORD8 u1_qp_y = ps_slice_hdr->i1_slice_qp; in ih264e_init_cabac_ctxt()
214 i1_cabac_init_idc = ps_slice_hdr->i1_cabac_init_idc; in ih264e_init_cabac_ctxt()
Dih264e_encode_header.h166 slice_header_t *ps_slice_hdr,
247 slice_header_t *ps_slice_hdr,
Dih264e_process.c294 …slice_header_t *ps_slice_hdr = ps_entropy->ps_slice_hdr_base + (ps_entropy->i4_cur_slice_idx % MAX… in ih264e_entropy() local
385 ih264e_populate_slice_header(ps_proc, ps_slice_hdr, ps_pps, ps_sps); in ih264e_entropy()
388 ps_entropy->i4_error_code |= ih264e_generate_slice_header(ps_bitstrm, ps_slice_hdr, in ih264e_entropy()
505ps_slice_hdr = ps_entropy->ps_slice_hdr_base+ (i4_curr_slice_idx % MAX_SLICE_HDR_CNT); in ih264e_entropy()
509 ih264e_populate_slice_header(ps_proc, ps_slice_hdr, ps_pps, in ih264e_entropy()
514 ps_bitstrm, ps_slice_hdr, ps_pps, ps_sps); in ih264e_entropy()
Dih264e_structs.h693 slice_header_t *ps_slice_hdr; member