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()
2294 slice_header_t *ps_slice_hdr; in ihevcd_parse_slice_data() local
2309 ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr_base; in ihevcd_parse_slice_data()
2314 ps_slice_hdr += (ps_codec->s_parse.i4_cur_slice_idx & (MAX_SLICE_HDR_CNT - 1)); in ihevcd_parse_slice_data()
2315 ps_pps += ps_slice_hdr->i1_pps_id; in ihevcd_parse_slice_data()
2320 if(!ps_slice_hdr->i1_dependent_slice_flag) in ihevcd_parse_slice_data()
2335 ps_codec->s_parse.i4_ctb_x = ps_slice_hdr->i2_ctb_x; in ihevcd_parse_slice_data()
2336 ps_codec->s_parse.i4_ctb_y = ps_slice_hdr->i2_ctb_y; in ihevcd_parse_slice_data()
2340 ps_codec->s_parse.ps_slice_hdr = ps_slice_hdr; in ihevcd_parse_slice_data()
2361 if(1 == ps_slice_hdr->i1_dependent_slice_flag) in ihevcd_parse_slice_data()
2371 if(!ps_slice_hdr->i1_dependent_slice_flag) in ihevcd_parse_slice_data()
2396 if(ps_slice_hdr->i1_num_ref_idx_l1_active != 0) in ihevcd_parse_slice_data()
2398 for(i = 0; i < ps_slice_hdr->i1_num_ref_idx_l1_active; i++) in ihevcd_parse_slice_data()
2400 …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()
2401 …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()
2405 if(ps_slice_hdr->i1_num_ref_idx_l0_active != 0) in ihevcd_parse_slice_data()
2407 for(i = 0; i < ps_slice_hdr->i1_num_ref_idx_l0_active; i++) in ihevcd_parse_slice_data()
2409 …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()
2410 …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()
2420 cur_poc = ps_slice_hdr->i4_abs_pic_order_cnt; in ihevcd_parse_slice_data()
2421 for(i = 0; i < ps_slice_hdr->i1_num_ref_idx_l0_active; i++) in ihevcd_parse_slice_data()
2423 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()
2430 if(flag && (ps_slice_hdr->i1_slice_type == BSLICE)) in ihevcd_parse_slice_data()
2432 for(i = 0; i < ps_slice_hdr->i1_num_ref_idx_l1_active; i++) in ihevcd_parse_slice_data()
2434 … 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()
2442 ps_slice_hdr->i1_low_delay_flag = flag; in ihevcd_parse_slice_data()
2446 if(ps_slice_hdr->i1_slice_type == ISLICE) in ihevcd_parse_slice_data()
2450 else if(ps_slice_hdr->i1_slice_type == PSLICE) in ihevcd_parse_slice_data()
2452 cabac_init_idc = ps_slice_hdr->i1_cabac_init_flag ? 2 : 1; in ihevcd_parse_slice_data()
2456 cabac_init_idc = ps_slice_hdr->i1_cabac_init_flag ? 1 : 2; in ihevcd_parse_slice_data()
2459 slice_qp = ps_slice_hdr->i1_slice_qp_delta + ps_pps->i1_pic_init_qp; in ihevcd_parse_slice_data()
2463 if((0 == ps_slice_hdr->i1_dependent_slice_flag) || in ihevcd_parse_slice_data()
2464 …((1 == ps_slice_hdr->i1_dependent_slice_flag) && ((0 == ps_codec->s_parse.i4_ctb_tile_x) && (0 == … in ihevcd_parse_slice_data()
2473 …if((1 == ps_slice_hdr->i1_dependent_slice_flag) && (!((ps_codec->s_parse.i4_ctb_tile_x == 0) && (p… in ihevcd_parse_slice_data()
2526 slice_qp = ps_slice_hdr->i1_slice_qp_delta + ps_pps->i1_pic_init_qp; in ihevcd_parse_slice_data()
2543 slice_start_ctb_idx = ps_slice_hdr->i2_ctb_x in ihevcd_parse_slice_data()
2544 + ps_slice_hdr->i2_ctb_y * (ps_sps->i2_pic_wd_in_ctb); in ihevcd_parse_slice_data()
2552 ps_codec->s_parse.i4_ctb_slice_y = ps_tile->u1_pos_y - ps_slice_hdr->i2_ctb_y; in ihevcd_parse_slice_data()
2553 …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()
2555 if(ps_slice_hdr->i2_ctb_y <= ps_tile->u1_pos_y) in ihevcd_parse_slice_data()
2558 if(ps_slice_hdr->i2_ctb_x > ps_tile->u1_pos_x) in ihevcd_parse_slice_data()
2646 … if((0 == ps_codec->s_parse.i4_ctb_slice_y) && (!ps_slice_hdr->i1_dependent_slice_flag)) in ihevcd_parse_slice_data()
2691 if(ps_slice_hdr->i1_slice_sao_luma_flag || ps_slice_hdr->i1_slice_sao_chroma_flag) in ihevcd_parse_slice_data()
2902 (1 == ps_slice_hdr->i1_slice_disable_deblocking_filter_flag)) in ihevcd_parse_slice_data()
2988 slice_start_ctb_idx = ps_slice_hdr->i2_ctb_x in ihevcd_parse_slice_data()
2989 + ps_slice_hdr->i2_ctb_y * (ps_sps->i2_pic_wd_in_ctb); in ihevcd_parse_slice_data()
3048 if(PSLICE == ps_slice_hdr->i1_slice_type in ihevcd_parse_slice_data()
3049 || BSLICE == ps_slice_hdr->i1_slice_type) in ihevcd_parse_slice_data()
3078 s_mv_ctxt.ps_slice_hdr = ps_slice_hdr; in ihevcd_parse_slice_data()
3247 ps_codec->s_parse.s_bs_ctxt.ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr; in ihevcd_parse_slice_data()
3250 if(ISLICE == ps_slice_hdr->i1_slice_type) in ihevcd_parse_slice_data()
3261 if(0 != ps_slice_hdr->i1_slice_disable_deblocking_filter_flag) in ihevcd_parse_slice_data()
3304 slice_start_ctb_idx = ps_slice_hdr->i2_ctb_x in ihevcd_parse_slice_data()
3305 + ps_slice_hdr->i2_ctb_y * (ps_sps->i2_pic_wd_in_ctb); in ihevcd_parse_slice_data()
3380 slice_header_t *ps_slice_hdr_next = ps_slice_hdr + 1; in ihevcd_parse_slice_data()
3463 if(ps_slice_hdr->i4_abs_pic_order_cnt == 0) in ihevcd_parse_slice_data()
3485 DUMP_OFFSETS(ps_slice_hdr->i1_beta_offset_div2, in ihevcd_parse_slice_data()
3486 ps_slice_hdr->i1_tc_offset_div2, in ihevcd_parse_slice_data()
3493 ps_codec->s_parse.s_deblk_ctxt.ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr; in ihevcd_parse_slice_data()
3499 ps_codec->s_parse.s_sao_ctxt.ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr; in ihevcd_parse_slice_data()