Home | History | Annotate | Download | only in decoder

Lines Matching refs:ps_bs_ctxt

209 WORD32 ihevcd_ctb_boundary_strength_islice(bs_ctxt_t *ps_bs_ctxt)
234 ps_pps = ps_bs_ctxt->ps_pps;
235 ps_sps = ps_bs_ctxt->ps_sps;
237 i1_loop_filter_across_slices_enabled_flag = ps_bs_ctxt->ps_slice_hdr->i1_slice_loop_filter_across_slices_enabled_flag;
238 i4_tu_cnt = ps_bs_ctxt->i4_ctb_tu_cnt;
247 pu4_vert_bs = (UWORD32 *)((UWORD8 *)ps_bs_ctxt->pu4_pic_vert_bs +
248 (ps_bs_ctxt->i4_ctb_x << (2 * log2_ctb_size - 7)) +
249 ps_bs_ctxt->i4_ctb_y * bs_strd);
250 pu4_horz_bs = (UWORD32 *)((UWORD8 *)ps_bs_ctxt->pu4_pic_horz_bs +
251 (ps_bs_ctxt->i4_ctb_x << (2 * log2_ctb_size - 7)) +
252 ps_bs_ctxt->i4_ctb_y * bs_strd);
256 pu1_qp = ps_bs_ctxt->pu1_pic_qp + ((ps_bs_ctxt->i4_ctb_x + ps_bs_ctxt->i4_ctb_y * qp_strd) << (log2_ctb_size - 3));
258 ctb_indx = ps_bs_ctxt->i4_ctb_x + ps_sps->i2_pic_wd_in_ctb * ps_bs_ctxt->i4_ctb_y;
259 u4_qp_const_in_ctb = ps_bs_ctxt->pu1_pic_qp_const_in_ctb[ctb_indx >> 3] & (1 << (ctb_indx & 7));
276 if(0 != ps_bs_ctxt->i4_ctb_x)
282 if(0 != ps_bs_ctxt->i4_ctb_y)
287 ps_tu = ps_bs_ctxt->ps_tu;
301 ps_tu = ps_bs_ctxt->ps_tu + i;
363 if((0 == i1_loop_filter_across_tiles_enabled_flag && 0 == ps_bs_ctxt->i4_ctb_tile_x) ||
364 (0 == i1_loop_filter_across_slices_enabled_flag && 0 == ps_bs_ctxt->i4_ctb_slice_x && 0 == ps_bs_ctxt->i4_ctb_slice_y) ||
365 (0 == ps_bs_ctxt->i4_ctb_x))
373 if((0 == i1_loop_filter_across_tiles_enabled_flag && 0 == ps_bs_ctxt->i4_ctb_tile_x))
379 ctb_addr = ps_bs_ctxt->i4_ctb_x + (ps_bs_ctxt->i4_ctb_y * ps_sps->i2_pic_wd_in_ctb);
380 slice_idx = ps_bs_ctxt->pu1_slice_idx[ctb_addr];
381 if(ps_bs_ctxt->i4_ctb_x)
383 ctb_addr = (ps_bs_ctxt->i4_ctb_x - 1) + (ps_bs_ctxt->i4_ctb_y * ps_sps->i2_pic_wd_in_ctb);
384 left_slice_idx = ps_bs_ctxt->pu1_slice_idx[ctb_addr];
387 if(!((ps_bs_ctxt->ps_slice_hdr->i1_dependent_slice_flag == 1) && (slice_idx == left_slice_idx)))
391 ((slice_idx != left_slice_idx) && 0 == ps_bs_ctxt->i4_ctb_slice_y) ||
392 ((0 == ps_bs_ctxt->i4_ctb_tile_x) && (slice_idx != left_slice_idx)))) ||
393 (0 == ps_bs_ctxt->i4_ctb_x))
401 ctb_addr = ps_bs_ctxt->i4_ctb_x + (ps_bs_ctxt->i4_ctb_y * ps_sps->i2_pic_wd_in_ctb);
402 slice_idx = ps_bs_ctxt->pu1_slice_idx[ctb_addr];
403 if(ps_bs_ctxt->i4_ctb_y)
405 ctb_addr = (ps_bs_ctxt->i4_ctb_x) + ((ps_bs_ctxt->i4_ctb_y - 1) * ps_sps->i2_pic_wd_in_ctb);
406 top_slice_idx = ps_bs_ctxt->pu1_slice_idx[ctb_addr];
411 if((0 == i1_loop_filter_across_tiles_enabled_flag && 0 == ps_bs_ctxt->i4_ctb_tile_y)
413 || (0 == ps_bs_ctxt->i4_ctb_y))
424 WORD32 num_rows_remaining = (ps_sps->i2_pic_height_in_luma_samples - (ps_bs_ctxt->i4_ctb_y << log2_ctb_size)) >> 3;
425 WORD32 num_cols_remaining = (ps_sps->i2_pic_width_in_luma_samples - (ps_bs_ctxt->i4_ctb_x << log2_ctb_size)) >> 3;
458 WORD32 ihevcd_ctb_boundary_strength_pbslice(bs_ctxt_t *ps_bs_ctxt)
485 ps_sps = ps_bs_ctxt->ps_sps;
486 ps_pps = ps_bs_ctxt->ps_pps;
495 pu4_vert_bs = (UWORD32 *)((UWORD8 *)ps_bs_ctxt->pu4_pic_vert_bs +
496 (ps_bs_ctxt->i4_ctb_x << (2 * log2_ctb_size - 7)) +
497 ps_bs_ctxt->i4_ctb_y * bs_strd);
498 pu4_horz_bs = (UWORD32 *)((UWORD8 *)ps_bs_ctxt->pu4_pic_horz_bs +
499 (ps_bs_ctxt->i4_ctb_x << (2 * log2_ctb_size - 7)) +
500 ps_bs_ctxt->i4_ctb_y * bs_strd);
505 ps_tu = ps_bs_ctxt->ps_tu;
509 pu1_qp = ps_bs_ctxt->pu1_pic_qp + ((ps_bs_ctxt->i4_ctb_x + ps_bs_ctxt->i4_ctb_y * qp_strd) << (log2_ctb_size - 3));
511 ctb_indx = ps_bs_ctxt->i4_ctb_x + ps_sps->i2_pic_wd_in_ctb * ps_bs_ctxt->i4_ctb_y;
512 u4_qp_const_in_ctb = ps_bs_ctxt->pu1_pic_qp_const_in_ctb[ctb_indx >> 3] & (1 << (ctb_indx & 7));
515 i1_loop_filter_across_slices_enabled_flag = ps_bs_ctxt->ps_slice_hdr->i1_slice_loop_filter_across_slices_enabled_flag;
529 if(0 != ps_bs_ctxt->i4_ctb_x)
535 if(0 != ps_bs_ctxt->i4_ctb_y)
542 cur_ctb_idx = ps_bs_ctxt->i4_ctb_x
543 + ps_bs_ctxt->i4_ctb_y * (ps_sps->i2_pic_wd_in_ctb);
544 next_ctb_idx = ps_bs_ctxt->i4_next_tu_ctb_cnt;
545 if(1 == ps_bs_ctxt->ps_codec->i4_num_cores)
547 i4_tu_cnt = ps_bs_ctxt->pu4_pic_tu_idx[next_ctb_idx] - ps_bs_ctxt->pu4_pic_tu_idx[cur_ctb_idx % RESET_TU_BUF_NCTB];
551 i4_tu_cnt = ps_bs_ctxt->pu4_pic_tu_idx[next_ctb_idx] - ps_bs_ctxt->pu4_pic_tu_idx[cur_ctb_idx];
554 ps_tu = ps_bs_ctxt->ps_tu;
570 ps_tu = ps_bs_ctxt->ps_tu + i;
582 WORD32 tu_abs_x = (ps_bs_ctxt->i4_ctb_x << log2_ctb_size) + (start_pos_x << 2);
583 WORD32 tu_abs_y = (ps_bs_ctxt->i4_ctb_y << log2_ctb_size) + (start_pos_y << 2);
587 pu1_pic_intra_flag = ps_bs_ctxt->ps_codec->pu1_pic_intra_flag;
661 if(!(ctb_size / 8 == (end_pos_x >> 1) && ps_bs_ctxt->i4_ctb_x == ps_sps->i2_pic_wd_in_ctb - 1))
706 cur_ctb_idx = ps_bs_ctxt->i4_ctb_x
707 + ps_bs_ctxt->i4_ctb_y * (ps_sps->i2_pic_wd_in_ctb);
711 next_ctb_idx = ps_bs_ctxt->i4_next_pu_ctb_cnt;
712 i4_pu_cnt = ps_bs_ctxt->pu4_pic_pu_idx[next_ctb_idx] - ps_bs_ctxt->pu4_pic_pu_idx[cur_ctb_idx];
723 pu_t *ps_pu = ps_bs_ctxt->ps_pu + i;
777 if(0 != ps_bs_ctxt->i4_ctb_x + start_pos_x)
786 u4_ngbr_pu_indx = ps_bs_ctxt->pu4_pic_pu_idx_map[(start_pos_y + 1) * ngbr_pu_idx_strd + (start_pos_x)];
787 ps_ngbr_pu = ps_bs_ctxt->ps_pic_pu + u4_ngbr_pu_indx;
844 if(0 != ps_bs_ctxt->i4_ctb_y + start_pos_y)
852 u4_ngbr_pu_indx = ps_bs_ctxt->pu4_pic_pu_idx_map[(start_pos_y)*ngbr_pu_idx_strd + (start_pos_x + 1)];
853 ps_ngbr_pu = ps_bs_ctxt->ps_pic_pu + u4_ngbr_pu_indx;
919 if((0 == i1_loop_filter_across_tiles_enabled_flag && 0 == ps_bs_ctxt->i4_ctb_tile_x) ||
920 (0 == i1_loop_filter_across_slices_enabled_flag && 0 == ps_bs_ctxt->i4_ctb_slice_x && 0 == ps_bs_ctxt->i4_ctb_slice_y) ||
921 (0 == ps_bs_ctxt->i4_ctb_x))
928 if((0 == i1_loop_filter_across_tiles_enabled_flag && 0 == ps_bs_ctxt->i4_ctb_tile_x))
935 ctb_addr = ps_bs_ctxt->i4_ctb_x + (ps_bs_ctxt->i4_ctb_y * ps_sps->i2_pic_wd_in_ctb);
936 slice_idx = ps_bs_ctxt->pu1_slice_idx[ctb_addr];
938 if(ps_bs_ctxt->i4_ctb_x)
940 ctb_addr = (ps_bs_ctxt->i4_ctb_x - 1) + (ps_bs_ctxt->i4_ctb_y * ps_sps->i2_pic_wd_in_ctb);
941 left_slice_idx = ps_bs_ctxt->pu1_slice_idx[ctb_addr];
944 if(!((ps_bs_ctxt->ps_slice_hdr->i1_dependent_slice_flag == 1) && (slice_idx == left_slice_idx)))
948 (0 == ps_bs_ctxt->i4_ctb_slice_x && 0 == ps_bs_ctxt->i4_ctb_slice_y) ||
949 ((0 == ps_bs_ctxt->i4_ctb_tile_x) && (slice_idx != left_slice_idx)))) || (0 == ps_bs_ctxt->i4_ctb_x))
957 ctb_addr = ps_bs_ctxt->i4_ctb_x + (ps_bs_ctxt->i4_ctb_y * ps_sps->i2_pic_wd_in_ctb);
958 slice_idx = ps_bs_ctxt->pu1_slice_idx[ctb_addr];
959 if(ps_bs_ctxt->i4_ctb_y)
961 ctb_addr = (ps_bs_ctxt->i4_ctb_x) + ((ps_bs_ctxt->i4_ctb_y - 1) * ps_sps->i2_pic_wd_in_ctb);
962 top_slice_idx = ps_bs_ctxt->pu1_slice_idx[ctb_addr];
966 if((0 == i1_loop_filter_across_tiles_enabled_flag && 0 == ps_bs_ctxt->i4_ctb_tile_y)
968 || (0 == ps_bs_ctxt->i4_ctb_y))
978 WORD32 num_rows_remaining = (ps_sps->i2_pic_height_in_luma_samples - (ps_bs_ctxt->i4_ctb_y << log2_ctb_size)) >> 3;
979 WORD32 num_cols_remaining = (ps_sps->i2_pic_width_in_luma_samples - (ps_bs_ctxt->i4_ctb_x << log2_ctb_size)) >> 3;