Lines Matching refs:ps_pu
123 pu_t *ps_pu; in ihevcd_inter_pred_ctb() local
181 ps_pu = ps_proc->ps_pu; in ihevcd_inter_pred_ctb()
214 for(pu_indx = 0; pu_indx < i4_pu_cnt; pu_indx++, ps_pu++) in ihevcd_inter_pred_ctb()
217 if(1 == ps_pu->b1_intra_flag) in ihevcd_inter_pred_ctb()
219 pu_x = (ps_proc->i4_ctb_x << ps_sps->i1_log2_ctb_size) + (ps_pu->b4_pos_x << 2); in ihevcd_inter_pred_ctb()
220 pu_y = (ps_proc->i4_ctb_y << ps_sps->i1_log2_ctb_size) + (ps_pu->b4_pos_y << 2); in ihevcd_inter_pred_ctb()
222 pu_wd = (ps_pu->b4_wd + 1) << 2; in ihevcd_inter_pred_ctb()
223 pu_ht = (ps_pu->b4_ht + 1) << 2; in ihevcd_inter_pred_ctb()
227 bi_pred = (ps_pu->b2_pred_mode == PRED_BI); in ihevcd_inter_pred_ctb()
229 if(ps_pu->b2_pred_mode != PRED_L1) 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()
244 … chroma_offset_l0_cr = ps_slice_hdr->s_wt_ofst.i2_chroma_offset_l0_cr[ps_pu->mv.i1_l0_ref_idx]; in ihevcd_inter_pred_ctb()
247 if(ps_pu->b2_pred_mode != PRED_L0) in ihevcd_inter_pred_ctb()
250 …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_inter_pred_ctb()
254 luma_weight_l1 = ps_slice_hdr->s_wt_ofst.i2_luma_weight_l1[ps_pu->mv.i1_l1_ref_idx]; in ihevcd_inter_pred_ctb()
255 … chroma_weight_l1_cb = ps_slice_hdr->s_wt_ofst.i2_chroma_weight_l1_cb[ps_pu->mv.i1_l1_ref_idx]; in ihevcd_inter_pred_ctb()
256 … chroma_weight_l1_cr = ps_slice_hdr->s_wt_ofst.i2_chroma_weight_l1_cr[ps_pu->mv.i1_l1_ref_idx]; in ihevcd_inter_pred_ctb()
258 luma_offset_l1 = ps_slice_hdr->s_wt_ofst.i2_luma_offset_l1[ps_pu->mv.i1_l1_ref_idx]; in ihevcd_inter_pred_ctb()
259 … chroma_offset_l1_cb = ps_slice_hdr->s_wt_ofst.i2_chroma_offset_l1_cb[ps_pu->mv.i1_l1_ref_idx]; in ihevcd_inter_pred_ctb()
260 … chroma_offset_l1_cr = ps_slice_hdr->s_wt_ofst.i2_chroma_offset_l1_cr[ps_pu->mv.i1_l1_ref_idx]; in ihevcd_inter_pred_ctb()
272 if(ps_pu->b2_pred_mode != PRED_L1) in ihevcd_inter_pred_ctb()
274 …mv = CLIP3(ps_pu->mv.s_l0_mv.i2_mvx, (-((MAX_CTB_SIZE + pu_x + 7) << 2)), ((ps_sps->i2_pic_width_i… in ihevcd_inter_pred_ctb()
278 …mv = CLIP3(ps_pu->mv.s_l0_mv.i2_mvy, (-((MAX_CTB_SIZE + pu_y + 7) << 2)), ((ps_sps->i2_pic_height_… in ihevcd_inter_pred_ctb()
290 if(ps_pu->b2_pred_mode != PRED_L0) in ihevcd_inter_pred_ctb()
293 …mv = CLIP3(ps_pu->mv.s_l1_mv.i2_mvx, (-((MAX_CTB_SIZE + pu_x + 7) << 2)), ((ps_sps->i2_pic_width_i… in ihevcd_inter_pred_ctb()
297 …mv = CLIP3(ps_pu->mv.s_l1_mv.i2_mvy, (-((MAX_CTB_SIZE + pu_y + 7) << 2)), ((ps_sps->i2_pic_height_… in ihevcd_inter_pred_ctb()
319 if(ps_pu->b2_pred_mode != PRED_L1) in ihevcd_inter_pred_ctb()
321 …mv = CLIP3(ps_pu->mv.s_l0_mv.i2_mvx, (-((MAX_CTB_SIZE + pu_x + 7) << 2)), ((ps_sps->i2_pic_width_i… in ihevcd_inter_pred_ctb()
325 …mv = CLIP3(ps_pu->mv.s_l0_mv.i2_mvy, (-((MAX_CTB_SIZE + pu_y + 7) << 2)), ((ps_sps->i2_pic_height_… in ihevcd_inter_pred_ctb()
337 if(ps_pu->b2_pred_mode != PRED_L0) in ihevcd_inter_pred_ctb()
339 …mv = CLIP3(ps_pu->mv.s_l1_mv.i2_mvx, (-((MAX_CTB_SIZE + pu_x + 7) << 2)), ((ps_sps->i2_pic_width_i… in ihevcd_inter_pred_ctb()
343 …mv = CLIP3(ps_pu->mv.s_l1_mv.i2_mvy, (-((MAX_CTB_SIZE + pu_y + 7) << 2)), ((ps_sps->i2_pic_height_… in ihevcd_inter_pred_ctb()
360 if(ps_pu->b2_pred_mode != PRED_L1) in ihevcd_inter_pred_ctb()
377 if(ps_pu->b2_pred_mode != PRED_L0) in ihevcd_inter_pred_ctb()
572 if(ps_pu->b2_pred_mode == PRED_L0) in ihevcd_inter_pred_ctb()
588 …ps_codec->s_func_selector.ihevc_weighted_pred_uni_fptr(ps_pu->b2_pred_mode == PRED_L0 ? pi2_tmp1 :… in ihevcd_inter_pred_ctb()
592 … ps_pu->b2_pred_mode == PRED_L0 ? luma_weight_l0 : luma_weight_l1, in ihevcd_inter_pred_ctb()
593 … ps_pu->b2_pred_mode == PRED_L0 ? luma_offset_l0 : luma_offset_l1, in ihevcd_inter_pred_ctb()
606 …ps_codec->s_func_selector.ihevc_weighted_pred_chroma_uni_fptr(ps_pu->b2_pred_mode == PRED_L0 ? pi2… in ihevcd_inter_pred_ctb()
610 … ps_pu->b2_pred_mode == PRED_L0 ? chroma_weight_l0_cr : chroma_weight_l1_cr, in ihevcd_inter_pred_ctb()
611 … ps_pu->b2_pred_mode == PRED_L0 ? chroma_weight_l0_cb : chroma_weight_l1_cb, in ihevcd_inter_pred_ctb()
612 … ps_pu->b2_pred_mode == PRED_L0 ? chroma_offset_l0_cr : chroma_offset_l1_cr, in ihevcd_inter_pred_ctb()
613 … ps_pu->b2_pred_mode == PRED_L0 ? chroma_offset_l0_cb : chroma_offset_l1_cb, in ihevcd_inter_pred_ctb()
621 …ps_codec->s_func_selector.ihevc_weighted_pred_chroma_uni_fptr(ps_pu->b2_pred_mode == PRED_L0 ? pi2… in ihevcd_inter_pred_ctb()
625 … ps_pu->b2_pred_mode == PRED_L0 ? chroma_weight_l0_cb : chroma_weight_l1_cb, in ihevcd_inter_pred_ctb()
626 … ps_pu->b2_pred_mode == PRED_L0 ? chroma_weight_l0_cr : chroma_weight_l1_cr, in ihevcd_inter_pred_ctb()
627 … ps_pu->b2_pred_mode == PRED_L0 ? chroma_offset_l0_cb : chroma_offset_l1_cb, in ihevcd_inter_pred_ctb()
628 … ps_pu->b2_pred_mode == PRED_L0 ? chroma_offset_l0_cr : chroma_offset_l1_cr, in ihevcd_inter_pred_ctb()