Lines Matching refs:ps_sps
112 sps_t *ps_sps = ps_proc->ps_sps; in ihevcd_proc_map_check() local
143 * ps_sps->i2_pic_wd_in_ctb); in ihevcd_proc_map_check()
158 idx = x_pos + (ps_proc->i4_ctb_y * ps_sps->i2_pic_wd_in_ctb); in ihevcd_proc_map_check()
167 idx = x_pos + ((ps_proc->i4_ctb_y - 1) * ps_sps->i2_pic_wd_in_ctb); in ihevcd_proc_map_check()
209 sps_t *ps_sps = ps_proc->ps_sps; in ihevcd_proc_map_update() local
212 idx += ((ps_proc->i4_ctb_y) * ps_sps->i2_pic_wd_in_ctb); in ihevcd_proc_map_update()
250 sps_t *ps_sps = ps_proc->ps_sps; 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()
262 tile_start_ctb_idx = ps_tile->u1_pos_x + (ps_tile->u1_pos_y * ps_sps->i2_pic_wd_in_ctb); 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()
315 sps_t *ps_sps = ps_proc->ps_sps; in ihevcd_ctb_avail_update() local
336 …if(!(((check_tile_wd >= ps_sps->i2_pic_wd_in_ctb) && (check_tile_wd % ps_sps->i2_pic_wd_in_ctb == … 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()
343 tile_start_ctb_idx = ps_tile->u1_pos_x + (ps_tile->u1_pos_y * ps_sps->i2_pic_wd_in_ctb); in ihevcd_ctb_avail_update()
348 i2_wd_in_ctb = ps_sps->i2_pic_wd_in_ctb; in ihevcd_ctb_avail_update()
355 + ps_proc->i4_ctb_y * (ps_sps->i2_pic_wd_in_ctb); in ihevcd_ctb_avail_update()
407 …if((ps_proc->i4_ctb_x == (ps_sps->i2_pic_wd_in_ctb - 1)) || ((ps_tile->u2_wd - 1) == ps_proc->i4_c… in ihevcd_ctb_avail_update()
422 …e_y + 1 + ps_tile->u1_pos_y) == ps_sps->i2_pic_ht_in_ctb) && ((ps_proc->i4_ctb_tile_x + 1 + ps_til… in ihevcd_ctb_avail_update()
429 … next_ctb_idx = ps_tile_next->u1_pos_x + (ps_tile_next->u1_pos_y * ps_sps->i2_pic_wd_in_ctb); in ihevcd_ctb_avail_update()
434 …next_ctb_idx = ((ps_tile->u1_pos_y + ps_proc->i4_ctb_tile_y + 1) * ps_sps->i2_pic_wd_in_ctb) + ps_… in ihevcd_ctb_avail_update()
449 sps_t *ps_sps = ps_proc->ps_sps; in ihevcd_update_ctb_tu_cnt() local
454 + ps_proc->i4_ctb_y * (ps_sps->i2_pic_wd_in_ctb); in ihevcd_update_ctb_tu_cnt()
470 …e_y + 1 + ps_tile->u1_pos_y) == ps_sps->i2_pic_ht_in_ctb) && ((ps_proc->i4_ctb_tile_x + 1 + ps_til… in ihevcd_update_ctb_tu_cnt()
477 … next_ctb_tu_idx = ps_tile_next->u1_pos_x + (ps_tile_next->u1_pos_y * ps_sps->i2_pic_wd_in_ctb); in ihevcd_update_ctb_tu_cnt()
482 …next_ctb_tu_idx = ((ps_tile->u1_pos_y + ps_proc->i4_ctb_tile_y + 1) * ps_sps->i2_pic_wd_in_ctb) + … in ihevcd_update_ctb_tu_cnt()
496 …e_y + 1 + ps_tile->u1_pos_y) == ps_sps->i2_pic_ht_in_ctb) && ((ps_proc->i4_ctb_tile_x + 1 + ps_til… in ihevcd_update_ctb_tu_cnt()
503 … next_ctb_tu_idx = ps_tile_next->u1_pos_x + (ps_tile_next->u1_pos_y * ps_sps->i2_pic_wd_in_ctb); in ihevcd_update_ctb_tu_cnt()
508 …next_ctb_tu_idx = ((ps_tile->u1_pos_y + ps_proc->i4_ctb_tile_y + 1) * ps_sps->i2_pic_wd_in_ctb) + … in ihevcd_update_ctb_tu_cnt()
522 sps_t *ps_sps = ps_proc->ps_sps; in ihevcd_process() local
537 WORD32 ctb_size = 1 << ps_sps->i1_log2_ctb_size; in ihevcd_process()
547 if(ps_proc->i4_cur_slice_idx > (MAX_SLICE_HDR_CNT - 2 * ps_sps->i2_pic_wd_in_ctb)) in ihevcd_process()
604 idx += (ps_proc->i4_ctb_y * ps_sps->i2_pic_wd_in_ctb); in ihevcd_process()
651 … au1_pic_avail_ctb_flags[ps_proc->i4_ctb_x + ps_proc->i4_ctb_y * ps_sps->i2_pic_wd_in_ctb] = in ihevcd_process()
653 … au4_pic_ctb_slice_xy[ps_proc->i4_ctb_x + ps_proc->i4_ctb_y * ps_sps->i2_pic_wd_in_ctb] = in ihevcd_process()
674 s_mv_ctxt.ps_sps = ps_proc->ps_sps; in ihevcd_process()
703 … (ps_proc->i4_ctb_x + ps_proc->i4_ctb_y * ps_sps->i2_pic_wd_in_ctb) * num_minpu_in_ctb; in ihevcd_process()
713 + ps_proc->i4_ctb_y * (ps_sps->i2_pic_wd_in_ctb); in ihevcd_process()
738 WORD32 rows_remaining = ps_sps->i2_pic_height_in_luma_samples in ihevcd_process()
739 - (ps_proc->i4_ctb_y << ps_sps->i1_log2_ctb_size); in ihevcd_process()
763 … UWORD32 cur_ctb_ht_in_min_pu = MIN(((ps_sps->i2_pic_height_in_luma_samples in ihevcd_process()
764 … - (ps_proc->i4_ctb_y << ps_sps->i1_log2_ctb_size)) / MIN_PU_SIZE), ctb_size_in_min_pu); in ihevcd_process()
765 … UWORD32 cur_ctb_wd_in_min_pu = MIN(((ps_sps->i2_pic_width_in_luma_samples in ihevcd_process()
766 … - (ps_proc->i4_ctb_x << ps_sps->i1_log2_ctb_size)) / MIN_PU_SIZE), ctb_size_in_min_pu); in ihevcd_process()
790 pu1_tile_idx[(ps_proc->i4_ctb_x + (ps_proc->i4_ctb_y * ps_sps->i2_pic_wd_in_ctb))] in ihevcd_process()
817 ps_proc->s_bs_ctxt.ps_sps = ps_proc->ps_sps; in ihevcd_process()
848 … WORD32 bs_strd = (ps_sps->i2_pic_wd_in_ctb + 1) * (ctb_size * ctb_size / 8 / 16); in ihevcd_process()
867 + ps_proc->i4_ctb_y * (ps_sps->i2_pic_wd_in_ctb); in ihevcd_process()
926 if(0 == ps_sps->i1_scaling_list_enable_flag) in ihevcd_process()
948 if(0 == ps_sps->i1_sps_scaling_list_data_present_flag) in ihevcd_process()
987 + ps_proc->i4_ctb_y * (ps_sps->i2_pic_wd_in_ctb); in ihevcd_process()
1047 ps_proc->s_deblk_ctxt.ps_sps = ps_proc->ps_sps; in ihevcd_process()
1058 WORD32 log2_ctb_size = ps_sps->i1_log2_ctb_size; in ihevcd_process()
1061 … WORD32 loop_filter_strd = ((ps_sps->i2_pic_width_in_luma_samples + 63) >> 6) << 3; in ihevcd_process()
1079 if(ps_proc->i4_ctb_x == ps_sps->i2_pic_wd_in_ctb - 1) in ihevcd_process()
1085 last_x_pos = (ps_sps->i2_pic_wd_in_ctb << ps_sps->i1_log2_ctb_size); in ihevcd_process()
1086 if(last_x_pos == ps_sps->i2_pic_width_in_luma_samples) in ihevcd_process()
1096 if(ps_proc->i4_ctb_y == ps_sps->i2_pic_ht_in_ctb - 1) in ihevcd_process()
1101 last_y_pos = (ps_sps->i2_pic_ht_in_ctb << ps_sps->i1_log2_ctb_size); in ihevcd_process()
1102 if(last_y_pos == ps_sps->i2_pic_height_in_luma_samples) in ihevcd_process()
1153 ps_proc->s_sao_ctxt.ps_sps = ps_proc->ps_sps; in ihevcd_process()
1175 if(ps_sps->i2_pic_wd_in_ctb - 1 == ps_proc->i4_ctb_x && ps_proc->i4_ctb_y > 0) in ihevcd_process()
1187 if(ps_sps->i2_pic_ht_in_ctb - 1 == ps_proc->i4_ctb_y) in ihevcd_process()
1191 for(i4_ctb_x = 0; i4_ctb_x < ps_sps->i2_pic_wd_in_ctb; i4_ctb_x++) in ihevcd_process()
1220 pad_ht_luma += (ps_sps->i2_pic_ht_in_ctb - 1) == ps_proc->i4_ctb_y ? 8 : 0; in ihevcd_process()
1227 if((ps_sps->i2_pic_wd_in_ctb - 1) == ps_proc->i4_ctb_x) in ihevcd_process()
1231 …WORD32 cols_remaining = ps_sps->i2_pic_width_in_luma_samples - (ps_proc->i4_ctb_x << ps_sps->i1_lo… in ihevcd_process()
1243 if((ps_sps->i2_pic_ht_in_ctb - 1) == ps_proc->i4_ctb_y) in ihevcd_process()
1247 …_func_selector.ihevc_pad_left_chroma_fptr(ps_proc->pu1_cur_pic_chroma + (ps_sps->i2_pic_height_in_… in ihevcd_process()
1254 if((ps_sps->i2_pic_ht_in_ctb - 1) == ps_proc->i4_ctb_y) in ihevcd_process()
1260 …ihevc_pad_top(ps_proc->pu1_cur_pic_luma - PAD_LEFT, ps_codec->i4_strd, ps_sps->i2_pic_width_in_lum… in ihevcd_process()
1261 …ihevc_pad_top(ps_proc->pu1_cur_pic_chroma - PAD_LEFT, ps_codec->i4_strd, ps_sps->i2_pic_width_in_l… in ihevcd_process()
1263 …pu1_buf = ps_proc->pu1_cur_pic_luma + ps_codec->i4_strd * ps_sps->i2_pic_height_in_luma_samples - … in ihevcd_process()
1265 …ihevc_pad_bottom(pu1_buf, ps_codec->i4_strd, ps_sps->i2_pic_width_in_luma_samples + PAD_WD, PAD_BO… in ihevcd_process()
1267 …pu1_buf = ps_proc->pu1_cur_pic_chroma + ps_codec->i4_strd * (ps_sps->i2_pic_height_in_luma_samples… in ihevcd_process()
1268 …ihevc_pad_bottom(pu1_buf, ps_codec->i4_strd, ps_sps->i2_pic_width_in_luma_samples + PAD_WD, PAD_BO… in ihevcd_process()
1285 else if((ps_sps->i2_pic_wd_in_ctb - 1) == ps_proc->i4_ctb_x) in ihevcd_process()
1289 …WORD32 cols_remaining = ps_sps->i2_pic_width_in_luma_samples - (ps_proc->i4_ctb_x << ps_sps->i1_lo… in ihevcd_process()
1291 … pad_ht_luma = ((ps_sps->i2_pic_ht_in_ctb - 1) == ps_proc->i4_ctb_y) ? 3 * ctb_size : ctb_size; in ihevcd_process()
1292 …pad_ht_chroma = ((ps_sps->i2_pic_ht_in_ctb - 1) == ps_proc->i4_ctb_y) ? 3 * ctb_size / 2 : ctb_siz… in ihevcd_process()
1297 if((ps_sps->i2_pic_ht_in_ctb - 1) == ps_proc->i4_ctb_y) in ihevcd_process()
1306 …hevc_pad_left_luma_fptr(ps_proc->pu1_cur_pic_luma + ps_codec->i4_strd * (ps_sps->i2_pic_height_in_… in ihevcd_process()
1308 …_pad_left_chroma_fptr(ps_proc->pu1_cur_pic_chroma + ps_codec->i4_strd * (ps_sps->i2_pic_height_in_… in ihevcd_process()
1314 …ihevc_pad_top(ps_proc->pu1_cur_pic_luma - PAD_LEFT, ps_codec->i4_strd, ps_sps->i2_pic_width_in_lum… in ihevcd_process()
1315 …ihevc_pad_top(ps_proc->pu1_cur_pic_chroma - PAD_LEFT, ps_codec->i4_strd, ps_sps->i2_pic_width_in_l… in ihevcd_process()
1317 …pu1_buf = ps_proc->pu1_cur_pic_luma + ps_codec->i4_strd * ps_sps->i2_pic_height_in_luma_samples - … in ihevcd_process()
1319 …ihevc_pad_bottom(pu1_buf, ps_codec->i4_strd, ps_sps->i2_pic_width_in_luma_samples + PAD_WD, PAD_BO… in ihevcd_process()
1321 …pu1_buf = ps_proc->pu1_cur_pic_chroma + ps_codec->i4_strd * (ps_sps->i2_pic_height_in_luma_samples… in ihevcd_process()
1322 …ihevc_pad_bottom(pu1_buf, ps_codec->i4_strd, ps_sps->i2_pic_width_in_luma_samples + PAD_WD, PAD_BO… in ihevcd_process()
1363 …_tile->u2_ht + ps_tile->u1_pos_y == ps_sps->i2_pic_ht_in_ctb) && (ps_tile->u2_wd + ps_tile->u1_p… in ihevcd_process()
1385 sps_t *ps_sps; in ihevcd_init_proc_ctxt() local
1404 ps_proc->ps_sps = ps_codec->ps_sps_base + ps_pps->i1_sps_id; in ihevcd_init_proc_ctxt()
1405 ps_sps = ps_proc->ps_sps; in ihevcd_init_proc_ctxt()
1407 ctb_size = 1 << ps_sps->i1_log2_ctb_size; in ihevcd_init_proc_ctxt()
1409 num_ctb_in_row = ps_sps->i2_pic_wd_in_ctb; in ihevcd_init_proc_ctxt()
1413 ihevcd_get_tile_pos(ps_pps, ps_sps, ps_proc->i4_ctb_x, ps_proc->i4_ctb_y, in ihevcd_init_proc_ctxt()
1428 …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_init_proc_ctxt()
1429 tile_start_ctb_idx = ps_tile->u1_pos_x + (ps_tile->u1_pos_y * ps_sps->i2_pic_wd_in_ctb); in ihevcd_init_proc_ctxt()
1442 …if(!(((check_tile_wd >= ps_sps->i2_pic_wd_in_ctb) && (check_tile_wd % ps_sps->i2_pic_wd_in_ctb == … in ihevcd_init_proc_ctxt()
1469 i4_wd_in_ctb = ps_sps->i2_pic_wd_in_ctb; in ihevcd_init_proc_ctxt()
1541 ps_proc->i4_ctb_slice_x += ps_sps->i2_pic_wd_in_ctb; in ihevcd_init_proc_ctxt()
1558 ctb_luma_min_tu_cnt = (1 << ps_sps->i1_log2_ctb_size) / MIN_TU_SIZE; in ihevcd_init_proc_ctxt()
1621 sps_t *ps_sps; in ihevcd_process_thread() local
1630 ps_sps = ps_proc->ps_sps; in ihevcd_process_thread()
1633 num_rows = 1 << ps_sps->i1_log2_ctb_size; in ihevcd_process_thread()
1635 … num_rows = MIN(num_rows, (ps_codec->i4_disp_ht - (s_job.i2_ctb_y << ps_sps->i1_log2_ctb_size))); in ihevcd_process_thread()
1641 s_job.i2_ctb_y << ps_sps->i1_log2_ctb_size, num_rows); in ihevcd_process_thread()