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()
719 + ps_proc->i4_ctb_y * (ps_sps->i2_pic_wd_in_ctb); in ihevcd_process()
744 WORD32 rows_remaining = ps_sps->i2_pic_height_in_luma_samples in ihevcd_process()
745 - (ps_proc->i4_ctb_y << ps_sps->i1_log2_ctb_size); in ihevcd_process()
771 pu1_tile_idx[(ps_proc->i4_ctb_x + (ps_proc->i4_ctb_y * ps_sps->i2_pic_wd_in_ctb))] in ihevcd_process()
798 ps_proc->s_bs_ctxt.ps_sps = ps_proc->ps_sps; in ihevcd_process()
829 … WORD32 bs_strd = (ps_sps->i2_pic_wd_in_ctb + 1) * (ctb_size * ctb_size / 8 / 16); in ihevcd_process()
848 + ps_proc->i4_ctb_y * (ps_sps->i2_pic_wd_in_ctb); in ihevcd_process()
907 if(0 == ps_sps->i1_scaling_list_enable_flag) in ihevcd_process()
929 if(0 == ps_sps->i1_sps_scaling_list_data_present_flag) in ihevcd_process()
968 + ps_proc->i4_ctb_y * (ps_sps->i2_pic_wd_in_ctb); in ihevcd_process()
1028 ps_proc->s_deblk_ctxt.ps_sps = ps_proc->ps_sps; in ihevcd_process()
1039 WORD32 log2_ctb_size = ps_sps->i1_log2_ctb_size; in ihevcd_process()
1042 … WORD32 loop_filter_strd = ((ps_sps->i2_pic_width_in_luma_samples + 63) >> 6) << 3; in ihevcd_process()
1060 if(ps_proc->i4_ctb_x == ps_sps->i2_pic_wd_in_ctb - 1) in ihevcd_process()
1066 last_x_pos = (ps_sps->i2_pic_wd_in_ctb << ps_sps->i1_log2_ctb_size); in ihevcd_process()
1067 if(last_x_pos == ps_sps->i2_pic_width_in_luma_samples) in ihevcd_process()
1077 if(ps_proc->i4_ctb_y == ps_sps->i2_pic_ht_in_ctb - 1) in ihevcd_process()
1082 last_y_pos = (ps_sps->i2_pic_ht_in_ctb << ps_sps->i1_log2_ctb_size); in ihevcd_process()
1083 if(last_y_pos == ps_sps->i2_pic_height_in_luma_samples) in ihevcd_process()
1134 ps_proc->s_sao_ctxt.ps_sps = ps_proc->ps_sps; in ihevcd_process()
1156 if(ps_sps->i2_pic_wd_in_ctb - 1 == ps_proc->i4_ctb_x && ps_proc->i4_ctb_y > 0) in ihevcd_process()
1168 if(ps_sps->i2_pic_ht_in_ctb - 1 == ps_proc->i4_ctb_y) in ihevcd_process()
1172 for(i4_ctb_x = 0; i4_ctb_x < ps_sps->i2_pic_wd_in_ctb; i4_ctb_x++) in ihevcd_process()
1201 pad_ht_luma += (ps_sps->i2_pic_ht_in_ctb - 1) == ps_proc->i4_ctb_y ? 8 : 0; in ihevcd_process()
1208 if((ps_sps->i2_pic_wd_in_ctb - 1) == ps_proc->i4_ctb_x) in ihevcd_process()
1212 …WORD32 cols_remaining = ps_sps->i2_pic_width_in_luma_samples - (ps_proc->i4_ctb_x << ps_sps->i1_lo… in ihevcd_process()
1224 if((ps_sps->i2_pic_ht_in_ctb - 1) == ps_proc->i4_ctb_y) in ihevcd_process()
1228 …_func_selector.ihevc_pad_left_chroma_fptr(ps_proc->pu1_cur_pic_chroma + (ps_sps->i2_pic_height_in_… in ihevcd_process()
1235 if((ps_sps->i2_pic_ht_in_ctb - 1) == ps_proc->i4_ctb_y) in ihevcd_process()
1241 …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()
1242 …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()
1244 …pu1_buf = ps_proc->pu1_cur_pic_luma + ps_codec->i4_strd * ps_sps->i2_pic_height_in_luma_samples - … in ihevcd_process()
1246 …ihevc_pad_bottom(pu1_buf, ps_codec->i4_strd, ps_sps->i2_pic_width_in_luma_samples + PAD_WD, PAD_BO… in ihevcd_process()
1248 …pu1_buf = ps_proc->pu1_cur_pic_chroma + ps_codec->i4_strd * (ps_sps->i2_pic_height_in_luma_samples… in ihevcd_process()
1249 …ihevc_pad_bottom(pu1_buf, ps_codec->i4_strd, ps_sps->i2_pic_width_in_luma_samples + PAD_WD, PAD_BO… in ihevcd_process()
1266 else if((ps_sps->i2_pic_wd_in_ctb - 1) == ps_proc->i4_ctb_x) in ihevcd_process()
1270 …WORD32 cols_remaining = ps_sps->i2_pic_width_in_luma_samples - (ps_proc->i4_ctb_x << ps_sps->i1_lo… in ihevcd_process()
1272 … pad_ht_luma = ((ps_sps->i2_pic_ht_in_ctb - 1) == ps_proc->i4_ctb_y) ? 3 * ctb_size : ctb_size; in ihevcd_process()
1273 …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()
1278 if((ps_sps->i2_pic_ht_in_ctb - 1) == ps_proc->i4_ctb_y) in ihevcd_process()
1287 …hevc_pad_left_luma_fptr(ps_proc->pu1_cur_pic_luma + ps_codec->i4_strd * (ps_sps->i2_pic_height_in_… in ihevcd_process()
1289 …_pad_left_chroma_fptr(ps_proc->pu1_cur_pic_chroma + ps_codec->i4_strd * (ps_sps->i2_pic_height_in_… in ihevcd_process()
1295 …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()
1296 …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()
1298 …pu1_buf = ps_proc->pu1_cur_pic_luma + ps_codec->i4_strd * ps_sps->i2_pic_height_in_luma_samples - … in ihevcd_process()
1300 …ihevc_pad_bottom(pu1_buf, ps_codec->i4_strd, ps_sps->i2_pic_width_in_luma_samples + PAD_WD, PAD_BO… in ihevcd_process()
1302 …pu1_buf = ps_proc->pu1_cur_pic_chroma + ps_codec->i4_strd * (ps_sps->i2_pic_height_in_luma_samples… in ihevcd_process()
1303 …ihevc_pad_bottom(pu1_buf, ps_codec->i4_strd, ps_sps->i2_pic_width_in_luma_samples + PAD_WD, PAD_BO… in ihevcd_process()
1344 …_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()
1366 sps_t *ps_sps; in ihevcd_init_proc_ctxt() local
1385 ps_proc->ps_sps = ps_codec->ps_sps_base + ps_pps->i1_sps_id; in ihevcd_init_proc_ctxt()
1386 ps_sps = ps_proc->ps_sps; in ihevcd_init_proc_ctxt()
1388 ctb_size = 1 << ps_sps->i1_log2_ctb_size; in ihevcd_init_proc_ctxt()
1390 num_ctb_in_row = ps_sps->i2_pic_wd_in_ctb; in ihevcd_init_proc_ctxt()
1394 ihevcd_get_tile_pos(ps_pps, ps_sps, ps_proc->i4_ctb_x, ps_proc->i4_ctb_y, in ihevcd_init_proc_ctxt()
1409 …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()
1410 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()
1423 …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()
1450 i4_wd_in_ctb = ps_sps->i2_pic_wd_in_ctb; in ihevcd_init_proc_ctxt()
1522 ps_proc->i4_ctb_slice_x += ps_sps->i2_pic_wd_in_ctb; in ihevcd_init_proc_ctxt()
1539 ctb_luma_min_tu_cnt = (1 << ps_sps->i1_log2_ctb_size) / MIN_TU_SIZE; in ihevcd_init_proc_ctxt()
1602 sps_t *ps_sps; in ihevcd_process_thread() local
1611 ps_sps = ps_proc->ps_sps; in ihevcd_process_thread()
1614 num_rows = 1 << ps_sps->i1_log2_ctb_size; in ihevcd_process_thread()
1616 … 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()
1622 s_job.i2_ctb_y << ps_sps->i1_log2_ctb_size, num_rows); in ihevcd_process_thread()