• Home
  • Raw
  • Download

Lines Matching refs:ps_dec

61 void ih264d_copy_intra_pred_line(dec_struct_t *ps_dec,
89 void ih264d_compute_bs_non_mbaff_thread(dec_struct_t * ps_dec, in ih264d_compute_bs_non_mbaff_thread() argument
117 ps_deblk_top_mb = ps_dec->ps_deblk_top_mb + u2_mbx; in ih264d_compute_bs_non_mbaff_thread()
120 ps_cur_mb_params = ps_dec->ps_deblk_pic + u4_mb_num; in ih264d_compute_bs_non_mbaff_thread()
121 ps_cur_mv_pred = ps_dec->s_cur_pic.ps_mv + (u4_mb_num << 4); in ih264d_compute_bs_non_mbaff_thread()
124 (void **)ps_dec->ps_computebs_cur_slice->ppv_map_ref_idx_to_poc in ih264d_compute_bs_non_mbaff_thread()
134 ps_cur_mb_params->u1_left_mb_qp = ps_dec->deblk_left_mb[1].u1_mb_qp; in ih264d_compute_bs_non_mbaff_thread()
135 ps_dec->deblk_left_mb[1].u1_mb_qp = ps_cur_mb_params->u1_mb_qp; in ih264d_compute_bs_non_mbaff_thread()
154 ps_dec->ps_left_mvpred_addr[!u1_pingpong][1].u4_add; in ih264d_compute_bs_non_mbaff_thread()
170 ps_dec->deblk_left_mb[1].u1_mb_type = ps_cur_mb_params->u1_mb_type; in ih264d_compute_bs_non_mbaff_thread()
191 u4_leftmbtype = ps_dec->deblk_left_mb[1].u1_mb_type; in ih264d_compute_bs_non_mbaff_thread()
202 ps_top_mv_pred = ps_cur_mv_pred - (ps_dec->u2_frm_wd_in_mbs << 4) + 12; in ih264d_compute_bs_non_mbaff_thread()
214 if(ps_dec->ps_cur_sps->u1_profile_idc == HIGH_PROFILE_IDC) in ih264d_compute_bs_non_mbaff_thread()
250 (ps_dec->ps_computebs_cur_slice->slice_type == B_SLICE); in ih264d_compute_bs_non_mbaff_thread()
267 ps_dec->pf_fill_bs1[u4_is_b][u4_is_non16x16]( in ih264d_compute_bs_non_mbaff_thread()
270 &(ps_dec->ps_left_mvpred_addr[u1_pingpong][1]), in ih264d_compute_bs_non_mbaff_thread()
287 ps_dec->ps_left_mvpred_addr[!u1_pingpong][1].u4_add; in ih264d_compute_bs_non_mbaff_thread()
302 ps_dec->deblk_left_mb[1].u1_mb_type = ps_cur_mb_params->u1_mb_type; in ih264d_compute_bs_non_mbaff_thread()
318 void ih264d_check_mb_map_deblk(dec_struct_t *ps_dec, in ih264d_check_mb_map_deblk() argument
326 volatile UWORD8 *mb_map = ps_dec->pu1_recon_mb_map; in ih264d_check_mb_map_deblk()
328 ps_dec->ps_cur_pps->i1_chroma_qp_index_offset; in ih264d_check_mb_map_deblk()
330 ps_dec->ps_cur_pps->i1_second_chroma_qp_index_offset; in ih264d_check_mb_map_deblk()
333 UWORD8 u1_field_pic_flag = ps_dec->ps_cur_slice->u1_field_pic_flag; in ih264d_check_mb_map_deblk()
336 u4_wd_y = ps_dec->u2_frm_wd_y << u1_field_pic_flag; in ih264d_check_mb_map_deblk()
337 u4_wd_uv = ps_dec->u2_frm_wd_uv << u1_field_pic_flag; in ih264d_check_mb_map_deblk()
345 u4_mb_num = ps_dec->u4_cur_deblk_mb_num; in ih264d_check_mb_map_deblk()
347 … u4_mb_num = MIN(u4_mb_num + 1, (ps_dec->u4_deblk_mb_y + 1) * ps_dec->u2_frm_wd_in_mbs - 1); in ih264d_check_mb_map_deblk()
369 ih264d_deblock_mb_nonmbaff(ps_dec, ps_tfr_cxt, in ih264d_check_mb_map_deblk()
378 void ih264d_recon_deblk_slice(dec_struct_t *ps_dec, tfr_ctxt_t *ps_tfr_cxt) in ih264d_recon_deblk_slice() argument
406 UWORD32 u4_mb_num = ps_dec->cur_recon_mb_num; in ih264d_recon_deblk_slice()
410 CHECK_MB_MAP_BYTE(u4_mb_num, ps_dec->pu1_recon_mb_map, u4_cond); in ih264d_recon_deblk_slice()
424 if(ps_dec->u4_output_present && in ih264d_recon_deblk_slice()
425 (ps_dec->u4_fmt_conv_cur_row < ps_dec->s_disp_frame_info.u4_y_ht)) in ih264d_recon_deblk_slice()
427 ps_dec->u4_fmt_conv_num_rows = in ih264d_recon_deblk_slice()
429 (ps_dec->s_disp_frame_info.u4_y_ht in ih264d_recon_deblk_slice()
430 - ps_dec->u4_fmt_conv_cur_row)); in ih264d_recon_deblk_slice()
431 ih264d_format_convert(ps_dec, &(ps_dec->s_disp_op), in ih264d_recon_deblk_slice()
432 ps_dec->u4_fmt_conv_cur_row, in ih264d_recon_deblk_slice()
433 ps_dec->u4_fmt_conv_num_rows); in ih264d_recon_deblk_slice()
434 ps_dec->u4_fmt_conv_cur_row += ps_dec->u4_fmt_conv_num_rows; in ih264d_recon_deblk_slice()
443 ps_dec->u2_cur_mb_addr); in ih264d_recon_deblk_slice()
448 u4_max_addr = ps_dec->ps_cur_sps->u2_max_mb_addr; in ih264d_recon_deblk_slice()
449 u1_mb_aff = ps_dec->ps_cur_slice->u1_mbaff_frame_flag; in ih264d_recon_deblk_slice()
450 u2_first_mb_in_slice = ps_dec->ps_computebs_cur_slice->u4_first_mb_in_slice; in ih264d_recon_deblk_slice()
451 i2_pic_wdin_mbs = ps_dec->u2_frm_wd_in_mbs; in ih264d_recon_deblk_slice()
452 u1_mbaff = ps_dec->ps_cur_slice->u1_mbaff_frame_flag; in ih264d_recon_deblk_slice()
453 ps_pad_mgr = &ps_dec->s_pad_mgr; in ih264d_recon_deblk_slice()
456 ih264d_init_deblk_tfr_ctxt(ps_dec, ps_pad_mgr, ps_tfr_cxt, in ih264d_recon_deblk_slice()
457 ps_dec->u2_frm_wd_in_mbs, 0); in ih264d_recon_deblk_slice()
463 ps_dec->i2_recon_thread_mb_y = i16_mb_y; in ih264d_recon_deblk_slice()
464 u4_frame_stride = ps_dec->u2_frm_wd_y in ih264d_recon_deblk_slice()
465 << ps_dec->ps_cur_slice->u1_field_pic_flag; in ih264d_recon_deblk_slice()
469 ps_trns_addr = &ps_dec->s_tran_iprecon; in ih264d_recon_deblk_slice()
471 ps_trns_addr->pu1_dest_y = ps_dec->s_cur_pic.pu1_buf1 + x_offset + y_offset; in ih264d_recon_deblk_slice()
473 u4_frame_stride = ps_dec->u2_frm_wd_uv in ih264d_recon_deblk_slice()
474 << ps_dec->ps_cur_slice->u1_field_pic_flag; in ih264d_recon_deblk_slice()
480 ps_trns_addr->pu1_dest_u = ps_dec->s_cur_pic.pu1_buf2 + x_offset + y_offset; in ih264d_recon_deblk_slice()
481 ps_trns_addr->pu1_dest_v = ps_dec->s_cur_pic.pu1_buf3 + x_offset + y_offset; in ih264d_recon_deblk_slice()
487 ps_dec->cur_recon_mb_num = u2_first_mb_in_slice << u1_mbaff; in ih264d_recon_deblk_slice()
490 ps_dec->u4_bs_cur_slice_num_mbs = 0; in ih264d_recon_deblk_slice()
491 ps_dec->u4_cur_bs_mb_num = in ih264d_recon_deblk_slice()
492 (ps_dec->ps_computebs_cur_slice->u4_first_mb_in_slice) in ih264d_recon_deblk_slice()
495 if(ps_dec->i1_recon_in_thread3_flag) in ih264d_recon_deblk_slice()
497 ps_dec->pv_proc_tu_coeff_data = in ih264d_recon_deblk_slice()
498 (void *) ps_dec->ps_computebs_cur_slice->pv_tu_coeff_data_start; in ih264d_recon_deblk_slice()
501 u1_slice_type = ps_dec->ps_computebs_cur_slice->slice_type; in ih264d_recon_deblk_slice()
517 if(u1_num_mbsleft <= ps_dec->u1_recon_mb_grp) in ih264d_recon_deblk_slice()
525 recon_mb_grp = ps_dec->u1_recon_mb_grp; in ih264d_recon_deblk_slice()
534 UWORD32 u4_mb_num = ps_dec->cur_recon_mb_num + recon_mb_grp - 1; in ih264d_recon_deblk_slice()
541 … u4_mb_num = MIN(u4_mb_num + 1, (ps_dec->i2_recon_thread_mb_y + 1) * i2_pic_wdin_mbs - 1); in ih264d_recon_deblk_slice()
543 CHECK_MB_MAP_BYTE(u4_mb_num, ps_dec->pu1_recon_mb_map, u4_cond); in ih264d_recon_deblk_slice()
557 if(ps_dec->u4_output_present && in ih264d_recon_deblk_slice()
558 (ps_dec->u4_fmt_conv_cur_row < ps_dec->s_disp_frame_info.u4_y_ht)) in ih264d_recon_deblk_slice()
560 ps_dec->u4_fmt_conv_num_rows = in ih264d_recon_deblk_slice()
562 (ps_dec->s_disp_frame_info.u4_y_ht in ih264d_recon_deblk_slice()
563 - ps_dec->u4_fmt_conv_cur_row)); in ih264d_recon_deblk_slice()
564 ih264d_format_convert(ps_dec, &(ps_dec->s_disp_op), in ih264d_recon_deblk_slice()
565 ps_dec->u4_fmt_conv_cur_row, in ih264d_recon_deblk_slice()
566 ps_dec->u4_fmt_conv_num_rows); in ih264d_recon_deblk_slice()
567 ps_dec->u4_fmt_conv_cur_row += ps_dec->u4_fmt_conv_num_rows; in ih264d_recon_deblk_slice()
580 GET_SLICE_NUM_MAP(ps_dec->pu2_slice_num_map, ps_dec->cur_recon_mb_num, in ih264d_recon_deblk_slice()
583 if(u2_slice_num != ps_dec->u2_cur_slice_num_bs) in ih264d_recon_deblk_slice()
588 if(ps_dec->i1_recon_in_thread3_flag) in ih264d_recon_deblk_slice()
590 ps_cur_mb_info = &ps_dec->ps_frm_mb_info[ps_dec->cur_recon_mb_num]; in ih264d_recon_deblk_slice()
594 ih264d_process_inter_mb(ps_dec, ps_cur_mb_info, j); in ih264d_recon_deblk_slice()
601 ih264d_process_intra_mb(ps_dec, ps_cur_mb_info, j); in ih264d_recon_deblk_slice()
605 ih264d_copy_intra_pred_line(ps_dec, ps_cur_mb_info, j); in ih264d_recon_deblk_slice()
607 ps_dec->cur_recon_mb_num++; in ih264d_recon_deblk_slice()
616 tfr_ctxt_t *ps_trns_addr = &ps_dec->s_tran_iprecon; in ih264d_recon_deblk_slice()
625 ps_dec->i2_recon_thread_mb_y += (1 << u1_mbaff); in ih264d_recon_deblk_slice()
626 u2_mb_y = ps_dec->i2_recon_thread_mb_y; in ih264d_recon_deblk_slice()
628 ps_trns_addr->pu1_dest_y = ps_dec->s_cur_pic.pu1_buf1 + y_offset; in ih264d_recon_deblk_slice()
630 u4_frame_stride = ps_dec->u2_frm_wd_uv in ih264d_recon_deblk_slice()
631 << ps_dec->ps_cur_slice->u1_field_pic_flag; in ih264d_recon_deblk_slice()
633 ps_trns_addr->pu1_dest_u = ps_dec->s_cur_pic.pu1_buf2 + y_offset; in ih264d_recon_deblk_slice()
634 ps_trns_addr->pu1_dest_v = ps_dec->s_cur_pic.pu1_buf3 + y_offset; in ih264d_recon_deblk_slice()
647 p_cur_mb = &ps_dec->ps_frm_mb_info[ps_dec->u4_cur_bs_mb_num]; in ih264d_recon_deblk_slice()
649 DEBUG_THREADS_PRINTF("ps_dec->u4_cur_bs_mb_num = %d\n",ps_dec->u4_cur_bs_mb_num); in ih264d_recon_deblk_slice()
650 ih264d_compute_bs_non_mbaff_thread(ps_dec, p_cur_mb, in ih264d_recon_deblk_slice()
651 ps_dec->u4_cur_bs_mb_num); in ih264d_recon_deblk_slice()
652 ps_dec->u4_cur_bs_mb_num++; in ih264d_recon_deblk_slice()
653 ps_dec->u4_bs_cur_slice_num_mbs++; in ih264d_recon_deblk_slice()
657 if(ps_dec->u4_cur_bs_mb_num > u4_max_addr) in ih264d_recon_deblk_slice()
666 if(ps_dec->u4_cur_bs_mb_num > ps_dec->u4_cur_deblk_mb_num) in ih264d_recon_deblk_slice()
670 u4_num_mbs = ps_dec->u4_cur_bs_mb_num in ih264d_recon_deblk_slice()
671 - ps_dec->u4_cur_deblk_mb_num; in ih264d_recon_deblk_slice()
675 u4_num_mbs = ps_dec->u4_cur_bs_mb_num in ih264d_recon_deblk_slice()
676 - ps_dec->u4_cur_deblk_mb_num - 1; in ih264d_recon_deblk_slice()
682 ih264d_check_mb_map_deblk(ps_dec, u4_num_mbs, ps_tfr_cxt,0); in ih264d_recon_deblk_slice()
688 void ih264d_recon_deblk_thread(dec_struct_t *ps_dec) in ih264d_recon_deblk_thread() argument
702 ih264d_recon_deblk_slice(ps_dec, ps_tfr_cxt); in ih264d_recon_deblk_thread()
706 if(ps_dec->cur_recon_mb_num > ps_dec->ps_cur_sps->u2_max_mb_addr) in ih264d_recon_deblk_thread()
712 ps_dec->ps_computebs_cur_slice++; in ih264d_recon_deblk_thread()
713 ps_dec->u2_cur_slice_num_bs++; in ih264d_recon_deblk_thread()
719 if(ps_dec->u4_output_present && in ih264d_recon_deblk_thread()
720 (3 == ps_dec->u4_num_cores) && in ih264d_recon_deblk_thread()
721 (ps_dec->u4_fmt_conv_cur_row < ps_dec->s_disp_frame_info.u4_y_ht)) in ih264d_recon_deblk_thread()
723 ps_dec->u4_fmt_conv_num_rows = in ih264d_recon_deblk_thread()
724 (ps_dec->s_disp_frame_info.u4_y_ht in ih264d_recon_deblk_thread()
725 - ps_dec->u4_fmt_conv_cur_row); in ih264d_recon_deblk_thread()
726 ih264d_format_convert(ps_dec, &(ps_dec->s_disp_op), in ih264d_recon_deblk_thread()
727 ps_dec->u4_fmt_conv_cur_row, in ih264d_recon_deblk_thread()
728 ps_dec->u4_fmt_conv_num_rows); in ih264d_recon_deblk_thread()
729 ps_dec->u4_fmt_conv_cur_row += ps_dec->u4_fmt_conv_num_rows; in ih264d_recon_deblk_thread()