Lines Matching refs:ps_slice_hdr
641 slice_header_t *ps_slice_hdr; in ihevcd_parse_pu_mvp() local
646 ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr; in ihevcd_parse_pu_mvp()
648 if(ps_slice_hdr->i1_slice_type == BSLICE) in ihevcd_parse_pu_mvp()
687 WORD32 active_refs = ps_slice_hdr->i1_num_ref_idx_l0_active; in ihevcd_parse_pu_mvp()
736 WORD32 active_refs = ps_slice_hdr->i1_num_ref_idx_l1_active; in ihevcd_parse_pu_mvp()
772 if(ps_slice_hdr->i1_mvd_l1_zero_flag && inter_pred_idc == PRED_BI) in ihevcd_parse_pu_mvp()
822 slice_header_t *ps_slice_hdr; in ihevcd_parse_prediction_unit() local
831 ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr; in ihevcd_parse_prediction_unit()
851 if(ps_slice_hdr->i1_max_num_merge_cand > 1) in ihevcd_parse_prediction_unit()
860 if(ps_slice_hdr->i1_max_num_merge_cand > 2) in ihevcd_parse_prediction_unit()
864 (ps_slice_hdr->i1_max_num_merge_cand - 2)); in ihevcd_parse_prediction_unit()
888 if(ps_slice_hdr->i1_max_num_merge_cand > 1) in ihevcd_parse_prediction_unit()
896 if(ps_slice_hdr->i1_max_num_merge_cand > 2) in ihevcd_parse_prediction_unit()
900 (ps_slice_hdr->i1_max_num_merge_cand - 2)); in ihevcd_parse_prediction_unit()
1173 slice_header_t *ps_slice_hdr; in ihevcd_parse_coding_unit() local
1197 ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr; in ihevcd_parse_coding_unit()
1246 if(ps_slice_hdr->i1_slice_type != ISLICE) in ihevcd_parse_coding_unit()
1376 if(ps_slice_hdr->i1_slice_type != ISLICE) in ihevcd_parse_coding_unit()
1985 slice_header_t *ps_slice_hdr; in ihevcd_parse_sao() local
1989 ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr_base; in ihevcd_parse_sao()
1990 ps_slice_hdr += (ps_codec->s_parse.i4_cur_slice_idx & (MAX_SLICE_HDR_CNT - 1)); in ihevcd_parse_sao()
2049 …if((ps_slice_hdr->i1_slice_sao_luma_flag && c_idx == 0) || (ps_slice_hdr->i1_slice_sao_chroma_flag… in ihevcd_parse_sao()
2202 slice_header_t *ps_slice_hdr; in ihevcd_parse_slice_data() local
2217 ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr_base; in ihevcd_parse_slice_data()
2222 ps_slice_hdr += (ps_codec->s_parse.i4_cur_slice_idx & (MAX_SLICE_HDR_CNT - 1)); in ihevcd_parse_slice_data()
2223 ps_pps += ps_slice_hdr->i1_pps_id; in ihevcd_parse_slice_data()
2228 if(!ps_slice_hdr->i1_dependent_slice_flag) in ihevcd_parse_slice_data()
2243 ps_codec->s_parse.i4_ctb_x = ps_slice_hdr->i2_ctb_x; in ihevcd_parse_slice_data()
2244 ps_codec->s_parse.i4_ctb_y = ps_slice_hdr->i2_ctb_y; in ihevcd_parse_slice_data()
2248 ps_codec->s_parse.ps_slice_hdr = ps_slice_hdr; in ihevcd_parse_slice_data()
2269 if(1 == ps_slice_hdr->i1_dependent_slice_flag) in ihevcd_parse_slice_data()
2279 if(!ps_slice_hdr->i1_dependent_slice_flag) in ihevcd_parse_slice_data()
2304 if(ps_slice_hdr->i1_num_ref_idx_l1_active != 0) in ihevcd_parse_slice_data()
2306 for(i = 0; i < ps_slice_hdr->i1_num_ref_idx_l1_active; i++) in ihevcd_parse_slice_data()
2308 …parse.i4_cur_slice_idx & (MAX_SLICE_HDR_CNT - 1))][i] = ((pic_buf_t *)ps_slice_hdr->as_ref_pic_lis… in ihevcd_parse_slice_data()
2309 …parse.i4_cur_slice_idx & (MAX_SLICE_HDR_CNT - 1))][i] = ((pic_buf_t *)ps_slice_hdr->as_ref_pic_lis… in ihevcd_parse_slice_data()
2313 if(ps_slice_hdr->i1_num_ref_idx_l0_active != 0) in ihevcd_parse_slice_data()
2315 for(i = 0; i < ps_slice_hdr->i1_num_ref_idx_l0_active; i++) in ihevcd_parse_slice_data()
2317 …parse.i4_cur_slice_idx & (MAX_SLICE_HDR_CNT - 1))][i] = ((pic_buf_t *)ps_slice_hdr->as_ref_pic_lis… in ihevcd_parse_slice_data()
2318 …parse.i4_cur_slice_idx & (MAX_SLICE_HDR_CNT - 1))][i] = ((pic_buf_t *)ps_slice_hdr->as_ref_pic_lis… in ihevcd_parse_slice_data()
2328 cur_poc = ps_slice_hdr->i4_abs_pic_order_cnt; in ihevcd_parse_slice_data()
2329 for(i = 0; i < ps_slice_hdr->i1_num_ref_idx_l0_active; i++) in ihevcd_parse_slice_data()
2331 ref_list_poc = ((mv_buf_t *)ps_slice_hdr->as_ref_pic_list0[i].pv_mv_buf)->i4_abs_poc; in ihevcd_parse_slice_data()
2338 if(flag && (ps_slice_hdr->i1_slice_type == BSLICE)) in ihevcd_parse_slice_data()
2340 for(i = 0; i < ps_slice_hdr->i1_num_ref_idx_l1_active; i++) in ihevcd_parse_slice_data()
2342 … ref_list_poc = ((mv_buf_t *)ps_slice_hdr->as_ref_pic_list1[i].pv_mv_buf)->i4_abs_poc; in ihevcd_parse_slice_data()
2350 ps_slice_hdr->i1_low_delay_flag = flag; in ihevcd_parse_slice_data()
2354 if(ps_slice_hdr->i1_slice_type == ISLICE) in ihevcd_parse_slice_data()
2358 else if(ps_slice_hdr->i1_slice_type == PSLICE) in ihevcd_parse_slice_data()
2360 cabac_init_idc = ps_slice_hdr->i1_cabac_init_flag ? 2 : 1; in ihevcd_parse_slice_data()
2364 cabac_init_idc = ps_slice_hdr->i1_cabac_init_flag ? 1 : 2; in ihevcd_parse_slice_data()
2367 slice_qp = ps_slice_hdr->i1_slice_qp_delta + ps_pps->i1_pic_init_qp; in ihevcd_parse_slice_data()
2371 if((0 == ps_slice_hdr->i1_dependent_slice_flag) || in ihevcd_parse_slice_data()
2372 …((1 == ps_slice_hdr->i1_dependent_slice_flag) && ((0 == ps_codec->s_parse.i4_ctb_tile_x) && (0 == … in ihevcd_parse_slice_data()
2379 …if((1 == ps_slice_hdr->i1_dependent_slice_flag) && (!((ps_codec->s_parse.i4_ctb_tile_x == 0) && (p… in ihevcd_parse_slice_data()
2431 slice_qp = ps_slice_hdr->i1_slice_qp_delta + ps_pps->i1_pic_init_qp; in ihevcd_parse_slice_data()
2448 slice_start_ctb_idx = ps_slice_hdr->i2_ctb_x in ihevcd_parse_slice_data()
2449 + ps_slice_hdr->i2_ctb_y * (ps_sps->i2_pic_wd_in_ctb); in ihevcd_parse_slice_data()
2457 ps_codec->s_parse.i4_ctb_slice_y = ps_tile->u1_pos_y - ps_slice_hdr->i2_ctb_y; in ihevcd_parse_slice_data()
2458 …if(!(((ps_slice_hdr->i2_ctb_x + ps_tile_prev->u2_wd) % ps_sps->i2_pic_wd_in_ctb) == ps_tile->u1_po… in ihevcd_parse_slice_data()
2460 if(ps_slice_hdr->i2_ctb_y <= ps_tile->u1_pos_y) in ihevcd_parse_slice_data()
2463 if(ps_slice_hdr->i2_ctb_x > ps_tile->u1_pos_x) in ihevcd_parse_slice_data()
2550 … if((0 == ps_codec->s_parse.i4_ctb_slice_y) && (!ps_slice_hdr->i1_dependent_slice_flag)) in ihevcd_parse_slice_data()
2595 if(ps_slice_hdr->i1_slice_sao_luma_flag || ps_slice_hdr->i1_slice_sao_chroma_flag) in ihevcd_parse_slice_data()
2881 (1 == ps_slice_hdr->i1_slice_disable_deblocking_filter_flag)) in ihevcd_parse_slice_data()
2967 slice_start_ctb_idx = ps_slice_hdr->i2_ctb_x in ihevcd_parse_slice_data()
2968 + ps_slice_hdr->i2_ctb_y * (ps_sps->i2_pic_wd_in_ctb); in ihevcd_parse_slice_data()
3027 if(PSLICE == ps_slice_hdr->i1_slice_type in ihevcd_parse_slice_data()
3028 || BSLICE == ps_slice_hdr->i1_slice_type) in ihevcd_parse_slice_data()
3057 s_mv_ctxt.ps_slice_hdr = ps_slice_hdr; in ihevcd_parse_slice_data()
3209 ps_codec->s_parse.s_bs_ctxt.ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr; in ihevcd_parse_slice_data()
3212 if(ISLICE == ps_slice_hdr->i1_slice_type) in ihevcd_parse_slice_data()
3223 if(0 != ps_slice_hdr->i1_slice_disable_deblocking_filter_flag) in ihevcd_parse_slice_data()
3266 slice_start_ctb_idx = ps_slice_hdr->i2_ctb_x in ihevcd_parse_slice_data()
3267 + ps_slice_hdr->i2_ctb_y * (ps_sps->i2_pic_wd_in_ctb); in ihevcd_parse_slice_data()
3342 slice_header_t *ps_slice_hdr_next = ps_slice_hdr + 1; in ihevcd_parse_slice_data()
3425 if(ps_slice_hdr->i4_abs_pic_order_cnt == 0) in ihevcd_parse_slice_data()
3447 DUMP_OFFSETS(ps_slice_hdr->i1_beta_offset_div2, in ihevcd_parse_slice_data()
3448 ps_slice_hdr->i1_tc_offset_div2, in ihevcd_parse_slice_data()
3455 ps_codec->s_parse.s_deblk_ctxt.ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr; in ihevcd_parse_slice_data()
3461 ps_codec->s_parse.s_sao_ctxt.ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr; in ihevcd_parse_slice_data()