• Home
  • Raw
  • Download

Lines Matching refs:ps_proc

216 IH264E_ERROR_T ih264e_init_entropy_ctxt(process_ctxt_t *ps_proc)  in ih264e_init_entropy_ctxt()  argument
219 codec_t *ps_codec = ps_proc->ps_codec; in ih264e_init_entropy_ctxt()
222 entropy_ctxt_t *ps_entropy = &ps_proc->s_entropy; in ih264e_init_entropy_ctxt()
231 ps_entropy->i4_cur_slice_idx = ps_proc->pu1_slice_idx[ps_entropy->i4_mb_start_add]; in ih264e_init_entropy_ctxt()
276 IH264E_ERROR_T ih264e_entropy(process_ctxt_t *ps_proc) in ih264e_entropy() argument
279 codec_t *ps_codec = ps_proc->ps_codec; in ih264e_entropy()
282 entropy_ctxt_t *ps_entropy = &ps_proc->s_entropy; in ih264e_entropy()
297 WORD32 i4_slice_type = ps_proc->i4_slice_type; in ih264e_entropy()
312 WORD32 ctxt_sel = ps_proc->i4_encode_api_call_cnt % MAX_CTXT_SETS; in ih264e_entropy()
338 pu1_proc_map = ps_proc->pu1_proc_map + ps_entropy->i4_mb_y * i4_wd_mbs; in ih264e_entropy()
385 ih264e_populate_slice_header(ps_proc, ps_slice_hdr, ps_pps, ps_sps); in ih264e_entropy()
421 pu1_proc_map = ps_proc->pu1_proc_map + ps_entropy->i4_mb_y * i4_wd_mbs; in ih264e_entropy()
509 ih264e_populate_slice_header(ps_proc, ps_slice_hdr, ps_pps, in ih264e_entropy()
587 (ps_proc->ps_codec->i4_poc == 0)); in ih264e_entropy()
645 IH264E_ERROR_T ih264e_pack_header_data(process_ctxt_t *ps_proc) in ih264e_pack_header_data() argument
648 UWORD32 u4_mb_type = ps_proc->u4_mb_type; in ih264e_pack_header_data()
654 UWORD8 *pu1_ptr = ps_proc->pv_mb_header_data; in ih264e_pack_header_data()
655 mb_hdr_i4x4_t *ps_mb_hdr = (mb_hdr_i4x4_t *)ps_proc->pv_mb_header_data; in ih264e_pack_header_data()
661 ps_mb_hdr->common.u1_mb_type_mode = (ps_proc->u1_c_i8_mode << 6) + u4_mb_type; in ih264e_pack_header_data()
664 ps_mb_hdr->common.u1_cbp = ps_proc->u4_cbp; in ih264e_pack_header_data()
667 ps_mb_hdr->common.u1_mb_qp_delta = ps_proc->u4_mb_qp - ps_proc->u4_mb_qp_prev; in ih264e_pack_header_data()
674 if (ps_proc->au1_predicted_intra_luma_mb_4x4_modes[i4] == in ih264e_pack_header_data()
675 ps_proc->au1_intra_luma_mb_4x4_modes[i4]) in ih264e_pack_header_data()
682 if (ps_proc->au1_intra_luma_mb_4x4_modes[i4] < in ih264e_pack_header_data()
683 ps_proc->au1_predicted_intra_luma_mb_4x4_modes[i4]) in ih264e_pack_header_data()
685 byte |= (ps_proc->au1_intra_luma_mb_4x4_modes[i4] << 1); in ih264e_pack_header_data()
689 byte |= (ps_proc->au1_intra_luma_mb_4x4_modes[i4] - 1) << 1; in ih264e_pack_header_data()
695 if (ps_proc->au1_predicted_intra_luma_mb_4x4_modes[i4] == in ih264e_pack_header_data()
696 ps_proc->au1_intra_luma_mb_4x4_modes[i4]) in ih264e_pack_header_data()
703 if (ps_proc->au1_intra_luma_mb_4x4_modes[i4] < in ih264e_pack_header_data()
704 ps_proc->au1_predicted_intra_luma_mb_4x4_modes[i4]) in ih264e_pack_header_data()
706 byte |= (ps_proc->au1_intra_luma_mb_4x4_modes[i4] << 5); in ih264e_pack_header_data()
710 byte |= (ps_proc->au1_intra_luma_mb_4x4_modes[i4] - 1) << 5; in ih264e_pack_header_data()
719 ps_proc->pv_mb_header_data = pu1_ptr; in ih264e_pack_header_data()
724 UWORD8 *pu1_ptr = ps_proc->pv_mb_header_data; in ih264e_pack_header_data()
725 mb_hdr_i16x16_t *ps_mb_hdr = (mb_hdr_i16x16_t *)ps_proc->pv_mb_header_data; in ih264e_pack_header_data()
728 …ps_mb_hdr->common.u1_mb_type_mode = (ps_proc->u1_c_i8_mode << 6) + (ps_proc->u1_l_i16_mode << 4) +… in ih264e_pack_header_data()
731 ps_mb_hdr->common.u1_cbp = ps_proc->u4_cbp; in ih264e_pack_header_data()
734 ps_mb_hdr->common.u1_mb_qp_delta = ps_proc->u4_mb_qp - ps_proc->u4_mb_qp_prev; in ih264e_pack_header_data()
738 ps_proc->pv_mb_header_data = pu1_ptr; in ih264e_pack_header_data()
743 UWORD8 *pu1_ptr = ps_proc->pv_mb_header_data; in ih264e_pack_header_data()
744 mb_hdr_p16x16_t *ps_mb_hdr = (mb_hdr_p16x16_t *)ps_proc->pv_mb_header_data; in ih264e_pack_header_data()
750 ps_mb_hdr->common.u1_cbp = ps_proc->u4_cbp; in ih264e_pack_header_data()
753 ps_mb_hdr->common.u1_mb_qp_delta = ps_proc->u4_mb_qp - ps_proc->u4_mb_qp_prev; in ih264e_pack_header_data()
755 …ps_mb_hdr->ai2_mv[0] = ps_proc->ps_pu->s_me_info[0].s_mv.i2_mvx - ps_proc->ps_pred_mv[0].s_mv.i2_m… in ih264e_pack_header_data()
757 …ps_mb_hdr->ai2_mv[1] = ps_proc->ps_pu->s_me_info[0].s_mv.i2_mvy - ps_proc->ps_pred_mv[0].s_mv.i2_m… in ih264e_pack_header_data()
761 ps_proc->pv_mb_header_data = pu1_ptr; in ih264e_pack_header_data()
766 UWORD8 *pu1_ptr = ps_proc->pv_mb_header_data; in ih264e_pack_header_data()
767 mb_hdr_pskip_t *ps_mb_hdr = (mb_hdr_pskip_t *)ps_proc->pv_mb_header_data; in ih264e_pack_header_data()
774 ps_proc->pv_mb_header_data = pu1_ptr; in ih264e_pack_header_data()
780 UWORD8 *pu1_ptr = ps_proc->pv_mb_header_data; in ih264e_pack_header_data()
781 mb_hdr_b16x16_t *ps_mb_hdr = (mb_hdr_b16x16_t *)ps_proc->pv_mb_header_data; in ih264e_pack_header_data()
783 UWORD32 u4_pred_mode = ps_proc->ps_pu->b2_pred_mode; in ih264e_pack_header_data()
789 ps_mb_hdr->common.u1_cbp = ps_proc->u4_cbp; in ih264e_pack_header_data()
792 ps_mb_hdr->common.u1_mb_qp_delta = ps_proc->u4_mb_qp - ps_proc->u4_mb_qp_prev; in ih264e_pack_header_data()
797 ps_mb_hdr->ai2_mv[0][0] = ps_proc->ps_pu->s_me_info[0].s_mv.i2_mvx in ih264e_pack_header_data()
798 - ps_proc->ps_pred_mv[0].s_mv.i2_mvx; in ih264e_pack_header_data()
800 ps_mb_hdr->ai2_mv[0][1] = ps_proc->ps_pu->s_me_info[0].s_mv.i2_mvy in ih264e_pack_header_data()
801 - ps_proc->ps_pred_mv[0].s_mv.i2_mvy; in ih264e_pack_header_data()
805 ps_mb_hdr->ai2_mv[1][0] = ps_proc->ps_pu->s_me_info[1].s_mv.i2_mvx in ih264e_pack_header_data()
806 - ps_proc->ps_pred_mv[1].s_mv.i2_mvx; in ih264e_pack_header_data()
808 ps_mb_hdr->ai2_mv[1][1] = ps_proc->ps_pu->s_me_info[1].s_mv.i2_mvy in ih264e_pack_header_data()
809 - ps_proc->ps_pred_mv[1].s_mv.i2_mvy; in ih264e_pack_header_data()
814 ps_proc->pv_mb_header_data = pu1_ptr; in ih264e_pack_header_data()
820 UWORD8 *pu1_ptr = ps_proc->pv_mb_header_data; in ih264e_pack_header_data()
821 mb_hdr_bdirect_t *ps_mb_hdr = (mb_hdr_bdirect_t *)ps_proc->pv_mb_header_data; in ih264e_pack_header_data()
827 ps_mb_hdr->common.u1_cbp = ps_proc->u4_cbp; in ih264e_pack_header_data()
830 ps_mb_hdr->common.u1_mb_qp_delta = ps_proc->u4_mb_qp - ps_proc->u4_mb_qp_prev; in ih264e_pack_header_data()
834 ps_proc->pv_mb_header_data = pu1_ptr; in ih264e_pack_header_data()
839 UWORD32 u4_pred_mode = ps_proc->ps_pu->b2_pred_mode; in ih264e_pack_header_data()
842 UWORD8 *pu1_ptr = ps_proc->pv_mb_header_data; in ih264e_pack_header_data()
843 mb_hdr_bskip_t *ps_mb_hdr = (mb_hdr_bskip_t *)ps_proc->pv_mb_header_data; in ih264e_pack_header_data()
850 ps_proc->pv_mb_header_data = pu1_ptr; in ih264e_pack_header_data()
883 WORD32 ih264e_update_proc_ctxt(process_ctxt_t *ps_proc) in ih264e_update_proc_ctxt() argument
889 codec_t *ps_codec = ps_proc->ps_codec; in ih264e_update_proc_ctxt()
892 WORD32 i4_mb_x = ps_proc->i4_mb_x; in ih264e_update_proc_ctxt()
893 WORD32 i4_mb_y = ps_proc->i4_mb_y; in ih264e_update_proc_ctxt()
896 mb_info_t *ps_left_syn = &ps_proc->s_left_mb_syntax_ele; in ih264e_update_proc_ctxt()
897 mb_info_t *ps_top_syn = ps_proc->ps_top_row_mb_syntax_ele + i4_mb_x; in ih264e_update_proc_ctxt()
898 mb_info_t *ps_top_left_syn = &ps_proc->s_top_left_mb_syntax_ele; in ih264e_update_proc_ctxt()
901 UWORD32 u4_mb_type = ps_proc->u4_mb_type; in ih264e_update_proc_ctxt()
904 UWORD32 u4_is_intra = ps_proc->u4_is_intra; in ih264e_update_proc_ctxt()
907 WORD32 i4_wd_mbs = ps_proc->i4_wd_mbs; in ih264e_update_proc_ctxt()
910 WORD32 i4_ht_mbs = ps_proc->i4_ht_mbs; in ih264e_update_proc_ctxt()
913 UWORD8 *pu1_proc_map = ps_proc->pu1_proc_map + (i4_mb_y * i4_wd_mbs); in ih264e_update_proc_ctxt()
916 deblk_ctxt_t *ps_deblk = &ps_proc->s_deblk_ctxt; in ih264e_update_proc_ctxt()
922 enc_pu_t *ps_top_row_pu = ps_proc->ps_top_row_pu + i4_mb_x; in ih264e_update_proc_ctxt()
925 enc_pu_t *ps_top_left_mb_pu = &ps_proc->s_top_left_mb_pu; in ih264e_update_proc_ctxt()
928 enc_pu_t *ps_left_mb_pu = &ps_proc->s_left_mb_pu; in ih264e_update_proc_ctxt()
931 UWORD8 *pu1_top_mb_intra_modes = ps_proc->pu1_top_mb_intra_modes + (i4_mb_x << 4); in ih264e_update_proc_ctxt()
943 if (ps_proc->i4_slice_type != ISLICE) in ih264e_update_proc_ctxt()
963 ps_left_syn->u4_csbp = ps_top_syn->u4_csbp = ps_proc->u4_csbp; in ih264e_update_proc_ctxt()
966 ps_left_syn->i4_mb_distortion = ps_top_syn->i4_mb_distortion = ps_proc->i4_mb_distortion; in ih264e_update_proc_ctxt()
973 … pu1_top_mb_intra_modes[0] = ps_proc->au1_left_mb_intra_modes[0] = ps_proc->u1_l_i16_mode; in ih264e_update_proc_ctxt()
977 …ps_codec->pf_mem_cpy_mul8(ps_proc->au1_left_mb_intra_modes, ps_proc->au1_intra_luma_mb_4x4_modes, … in ih264e_update_proc_ctxt()
978 … ps_codec->pf_mem_cpy_mul8(pu1_top_mb_intra_modes, ps_proc->au1_intra_luma_mb_4x4_modes, 16); in ih264e_update_proc_ctxt()
982 memcpy(ps_proc->au1_left_mb_intra_modes, ps_proc->au1_intra_luma_mb_8x8_modes, 4); in ih264e_update_proc_ctxt()
983 memcpy(pu1_top_mb_intra_modes, ps_proc->au1_intra_luma_mb_8x8_modes, 4); in ih264e_update_proc_ctxt()
986 if ((ps_proc->i4_slice_type == PSLICE) ||(ps_proc->i4_slice_type == BSLICE)) in ih264e_update_proc_ctxt()
989 *ps_left_mb_pu = *ps_top_row_pu = *(ps_proc->ps_pu); in ih264e_update_proc_ctxt()
992 *ps_proc->pu4_mb_pu_cnt = 1; in ih264e_update_proc_ctxt()
997 *ps_left_mb_pu = *ps_top_row_pu = *(ps_proc->ps_pu); in ih264e_update_proc_ctxt()
1004 ps_proc->pu1_is_intra_coded[i4_mb_x + (i4_mb_y * i4_wd_mbs)] = u4_is_intra; in ih264e_update_proc_ctxt()
1009 ih264e_pack_header_data(ps_proc); in ih264e_update_proc_ctxt()
1012 ps_proc->u4_mb_qp_prev = ps_proc->u4_mb_qp; in ih264e_update_proc_ctxt()
1015 ps_proc->s_deblk_ctxt.s_bs_ctxt.pu1_pic_qp[(i4_mb_y * i4_wd_mbs) + i4_mb_x] = ps_proc->u4_mb_qp; in ih264e_update_proc_ctxt()
1045 s_job.i2_mb_y = ps_proc->i4_mb_y; in ih264e_update_proc_ctxt()
1051 error_status |= ih264_list_queue(ps_proc->pv_entropy_jobq, &s_job, 1); in ih264e_update_proc_ctxt()
1053 if(ps_proc->i4_mb_y == (i4_ht_mbs - 1)) in ih264e_update_proc_ctxt()
1065 ps_proc->i4_mb_x = i4_mb_x; in ih264e_update_proc_ctxt()
1067 if (ps_proc->i4_mb_x == i4_wd_mbs) in ih264e_update_proc_ctxt()
1069 ps_proc->i4_mb_y++; in ih264e_update_proc_ctxt()
1070 ps_proc->i4_mb_x = 0; in ih264e_update_proc_ctxt()
1074ps_proc->i4_cur_slice_idx = ps_proc->pu1_slice_idx[ps_proc->i4_mb_y * i4_wd_mbs + ps_proc->i4_mb_x… in ih264e_update_proc_ctxt()
1077 ps_proc->pu1_src_buf_luma += MB_SIZE; in ih264e_update_proc_ctxt()
1078 ps_proc->pu1_rec_buf_luma += MB_SIZE; in ih264e_update_proc_ctxt()
1079 ps_proc->apu1_ref_buf_luma[0] += MB_SIZE; in ih264e_update_proc_ctxt()
1080 ps_proc->apu1_ref_buf_luma[1] += MB_SIZE; in ih264e_update_proc_ctxt()
1086 ps_proc->pu1_src_buf_chroma += MB_SIZE; in ih264e_update_proc_ctxt()
1087 ps_proc->pu1_rec_buf_chroma += MB_SIZE; in ih264e_update_proc_ctxt()
1088 ps_proc->apu1_ref_buf_chroma[0] += MB_SIZE; in ih264e_update_proc_ctxt()
1089 ps_proc->apu1_ref_buf_chroma[1] += MB_SIZE; in ih264e_update_proc_ctxt()
1094 ps_proc->i4_mb_cost = INT_MAX; in ih264e_update_proc_ctxt()
1095 ps_proc->i4_mb_distortion = SHRT_MAX; in ih264e_update_proc_ctxt()
1097 ps_proc->ps_pu += *ps_proc->pu4_mb_pu_cnt; in ih264e_update_proc_ctxt()
1099 ps_proc->pu4_mb_pu_cnt += 1; in ih264e_update_proc_ctxt()
1102 if (ps_proc->i4_slice_type == BSLICE) in ih264e_update_proc_ctxt()
1103ps_proc->ps_colpu += *(ps_proc->aps_mv_buf[1]->pu4_mb_pu_cnt + (i4_mb_y * ps_proc->i4_wd_mbs) + i… in ih264e_update_proc_ctxt()
1106 if (ps_proc->u4_disable_deblock_level != 1) in ih264e_update_proc_ctxt()
1109 ps_bs->i4_mb_x = ps_proc->i4_mb_x; in ih264e_update_proc_ctxt()
1110 ps_bs->i4_mb_y = ps_proc->i4_mb_y; in ih264e_update_proc_ctxt()
1148 IH264E_ERROR_T ih264e_init_proc_ctxt(process_ctxt_t *ps_proc) in ih264e_init_proc_ctxt() argument
1151 codec_t *ps_codec = ps_proc->ps_codec; in ih264e_init_proc_ctxt()
1154 n_mb_process_ctxt_t *ps_n_mb_ctxt = &ps_proc->s_n_mb_ctxt; in ih264e_init_proc_ctxt()
1160 WORD32 i4_src_strd = ps_proc->i4_src_strd; in ih264e_init_proc_ctxt()
1161 WORD32 i4_src_chroma_strd = ps_proc->i4_src_chroma_strd; in ih264e_init_proc_ctxt()
1162 WORD32 i4_rec_strd = ps_proc->i4_rec_strd; in ih264e_init_proc_ctxt()
1165 quant_params_t *ps_qp_params = ps_proc->ps_qp_params[0]; in ih264e_init_proc_ctxt()
1168 deblk_ctxt_t *ps_deblk = &ps_proc->s_deblk_ctxt; in ih264e_init_proc_ctxt()
1174 mv_buf_t *ps_cur_mv_buf = ps_proc->ps_cur_mv_buf; in ih264e_init_proc_ctxt()
1189 i4_mb_x = ps_proc->i4_mb_x; in ih264e_init_proc_ctxt()
1190 i4_mb_y = ps_proc->i4_mb_y; in ih264e_init_proc_ctxt()
1193 ps_proc->i4_nmb_ntrpy = ps_proc->i4_wd_mbs; in ih264e_init_proc_ctxt()
1194 ps_proc->u4_nmb_me = ps_proc->i4_wd_mbs; in ih264e_init_proc_ctxt()
1201 if (ps_proc->i4_mb_y == ps_proc->i4_ht_mbs - 1) in ih264e_init_proc_ctxt()
1203 ps_proc->pu1_src_buf_luma_base = ps_codec->pu1_y_csc_buf_base; in ih264e_init_proc_ctxt()
1204 i4_src_strd = ps_proc->i4_src_strd = ps_codec->s_cfg.u4_max_wd; in ih264e_init_proc_ctxt()
1205ps_proc->pu1_src_buf_luma = ps_proc->pu1_src_buf_luma_base + (i4_mb_x * MB_SIZE) + ps_codec->s_cfg… in ih264e_init_proc_ctxt()
1210 i4_src_strd = ps_proc->i4_src_strd = ps_proc->s_inp_buf.s_raw_buf.au4_strd[0]; in ih264e_init_proc_ctxt()
1211ps_proc->pu1_src_buf_luma = ps_proc->pu1_src_buf_luma_base + (i4_mb_x * MB_SIZE) + i4_src_strd * (… in ih264e_init_proc_ctxt()
1217 ps_proc->i4_mb_y == (ps_proc->i4_ht_mbs - 1) || in ih264e_init_proc_ctxt()
1222 ps_proc->pu1_src_buf_chroma_base = ps_codec->pu1_uv_csc_buf_base; in ih264e_init_proc_ctxt()
1224ps_proc->pu1_src_buf_chroma = ps_proc->pu1_src_buf_chroma_base + (i4_mb_x * MB_SIZE) + ps_codec->s… in ih264e_init_proc_ctxt()
1225 i4_src_chroma_strd = ps_proc->i4_src_chroma_strd = ps_codec->s_cfg.u4_max_wd; in ih264e_init_proc_ctxt()
1229 i4_src_chroma_strd = ps_proc->i4_src_chroma_strd = ps_proc->s_inp_buf.s_raw_buf.au4_strd[1]; in ih264e_init_proc_ctxt()
1230ps_proc->pu1_src_buf_chroma = ps_proc->pu1_src_buf_chroma_base + (i4_mb_x * MB_SIZE) + i4_src_chro… in ih264e_init_proc_ctxt()
1233ps_proc->pu1_rec_buf_luma = ps_proc->pu1_rec_buf_luma_base + (i4_mb_x * MB_SIZE) + i4_rec_strd * (… in ih264e_init_proc_ctxt()
1234ps_proc->pu1_rec_buf_chroma = ps_proc->pu1_rec_buf_chroma_base + (i4_mb_x * MB_SIZE) + i4_rec_strd… in ih264e_init_proc_ctxt()
1237ps_proc->apu1_ref_buf_luma[0] = ps_proc->apu1_ref_buf_luma_base[0] + (i4_mb_x * MB_SIZE) + i4_rec_… in ih264e_init_proc_ctxt()
1238ps_proc->apu1_ref_buf_chroma[0] = ps_proc->apu1_ref_buf_chroma_base[0] + (i4_mb_x * MB_SIZE) + i4_… in ih264e_init_proc_ctxt()
1239ps_proc->apu1_ref_buf_luma[1] = ps_proc->apu1_ref_buf_luma_base[1] + (i4_mb_x * MB_SIZE) + i4_rec_… in ih264e_init_proc_ctxt()
1240ps_proc->apu1_ref_buf_chroma[1] = ps_proc->apu1_ref_buf_chroma_base[1] + (i4_mb_x * MB_SIZE) + i4_… in ih264e_init_proc_ctxt()
1253 if (ps_proc->i4_mb_y == (ps_proc->i4_ht_mbs - 1) || u4_pad_bottom_sz || u4_pad_right_sz) in ih264e_init_proc_ctxt()
1259 pu1_src = (UWORD8 *)ps_proc->s_inp_buf.s_raw_buf.apv_bufs[0] + (i4_mb_x * MB_SIZE) + in ih264e_init_proc_ctxt()
1260 ps_proc->s_inp_buf.s_raw_buf.au4_strd[0] * (i4_mb_y * MB_SIZE); in ih264e_init_proc_ctxt()
1262 pu1_dst = ps_proc->pu1_src_buf_luma; in ih264e_init_proc_ctxt()
1266 if (ps_proc->i4_mb_y == (ps_proc->i4_ht_mbs - 1)) in ih264e_init_proc_ctxt()
1271 pu1_src += ps_proc->s_inp_buf.s_raw_buf.au4_strd[0]; in ih264e_init_proc_ctxt()
1272 pu1_dst += ps_proc->i4_src_strd; in ih264e_init_proc_ctxt()
1275 … pu1_src = (UWORD8 *)ps_proc->s_inp_buf.s_raw_buf.apv_bufs[1] + (i4_mb_x * BLK8x8SIZE) + in ih264e_init_proc_ctxt()
1276 ps_proc->s_inp_buf.s_raw_buf.au4_strd[1] * (i4_mb_y * BLK8x8SIZE); in ih264e_init_proc_ctxt()
1277 pu1_dst = ps_proc->pu1_src_buf_chroma; in ih264e_init_proc_ctxt()
1282 if (ps_proc->i4_mb_y == (ps_proc->i4_ht_mbs - 1)) in ih264e_init_proc_ctxt()
1283 num_rows = (ps_codec->s_cfg.u4_disp_ht >> 1) - (ps_proc->i4_mb_y * BLK8x8SIZE); in ih264e_init_proc_ctxt()
1289 pu1_src += ps_proc->s_inp_buf.s_raw_buf.au4_strd[1]; in ih264e_init_proc_ctxt()
1290 pu1_dst += ps_proc->i4_src_chroma_strd; in ih264e_init_proc_ctxt()
1297 … pu1_y_buf_base = (UWORD8 *)ps_proc->s_inp_buf.s_raw_buf.apv_bufs[0] + (i4_mb_x * MB_SIZE) + in ih264e_init_proc_ctxt()
1298 ps_proc->s_inp_buf.s_raw_buf.au4_strd[0] * (i4_mb_y * MB_SIZE); in ih264e_init_proc_ctxt()
1300 … pu1_u_buf_base = (UWORD8 *)ps_proc->s_inp_buf.s_raw_buf.apv_bufs[1] + (i4_mb_x * BLK8x8SIZE) + in ih264e_init_proc_ctxt()
1301 ps_proc->s_inp_buf.s_raw_buf.au4_strd[1] * (i4_mb_y * BLK8x8SIZE); in ih264e_init_proc_ctxt()
1303 … pu1_v_buf_base = (UWORD8 *)ps_proc->s_inp_buf.s_raw_buf.apv_bufs[2] + (i4_mb_x * BLK8x8SIZE) + in ih264e_init_proc_ctxt()
1304 ps_proc->s_inp_buf.s_raw_buf.au4_strd[2] * (i4_mb_y * BLK8x8SIZE); in ih264e_init_proc_ctxt()
1308 ps_proc->pu1_src_buf_luma, in ih264e_init_proc_ctxt()
1309 ps_proc->pu1_src_buf_chroma, u2_num_rows, in ih264e_init_proc_ctxt()
1311 ps_proc->s_inp_buf.s_raw_buf.au4_strd[0], in ih264e_init_proc_ctxt()
1312 ps_proc->s_inp_buf.s_raw_buf.au4_strd[1], in ih264e_init_proc_ctxt()
1313 ps_proc->s_inp_buf.s_raw_buf.au4_strd[2], in ih264e_init_proc_ctxt()
1314 ps_proc->i4_src_strd, ps_proc->i4_src_chroma_strd, in ih264e_init_proc_ctxt()
1319 … pu1_y_buf_base = (UWORD8 *)ps_proc->s_inp_buf.s_raw_buf.apv_bufs[0] + (i4_mb_x * MB_SIZE * 2) in ih264e_init_proc_ctxt()
1320 + ps_proc->s_inp_buf.s_raw_buf.au4_strd[0] * (i4_mb_y * MB_SIZE); in ih264e_init_proc_ctxt()
1323 ps_proc->pu1_src_buf_luma, in ih264e_init_proc_ctxt()
1324 ps_proc->pu1_src_buf_chroma, in ih264e_init_proc_ctxt()
1325 ps_proc->pu1_src_buf_chroma + 1, pu1_y_buf_base, in ih264e_init_proc_ctxt()
1327 ps_proc->i4_src_strd, ps_proc->i4_src_chroma_strd, in ih264e_init_proc_ctxt()
1328 ps_proc->i4_src_chroma_strd, in ih264e_init_proc_ctxt()
1329 ps_proc->s_inp_buf.s_raw_buf.au4_strd[0] >> 1); in ih264e_init_proc_ctxt()
1336 if (u4_pad_right_sz && (ps_proc->i4_mb_x == 0)) in ih264e_init_proc_ctxt()
1339 u4_pad_wd = (UWORD32)(ps_proc->i4_src_strd - ps_codec->s_cfg.u4_disp_wd); in ih264e_init_proc_ctxt()
1342 if(ps_proc->i4_mb_y == ps_proc->i4_ht_mbs - 1) in ih264e_init_proc_ctxt()
1346 ps_proc->pu1_src_buf_luma + ps_codec->s_cfg.u4_disp_wd, in ih264e_init_proc_ctxt()
1347 ps_proc->i4_src_strd, u4_pad_ht, u4_pad_wd); in ih264e_init_proc_ctxt()
1350 ps_proc->pu1_src_buf_chroma + ps_codec->s_cfg.u4_disp_wd, in ih264e_init_proc_ctxt()
1351 ps_proc->i4_src_chroma_strd, u4_pad_ht / 2, u4_pad_wd); in ih264e_init_proc_ctxt()
1355 if (u4_pad_bottom_sz && (ps_proc->i4_mb_y == ps_proc->i4_ht_mbs - 1) && ps_proc->i4_mb_x == 0) in ih264e_init_proc_ctxt()
1357 … ih264_pad_bottom(ps_proc->pu1_src_buf_luma + (MB_SIZE - u4_pad_bottom_sz) * ps_proc->i4_src_strd, in ih264e_init_proc_ctxt()
1358 ps_proc->i4_src_strd, ps_proc->i4_src_strd, u4_pad_bottom_sz); in ih264e_init_proc_ctxt()
1360 …ih264_pad_bottom(ps_proc->pu1_src_buf_chroma + (MB_SIZE - u4_pad_bottom_sz) * ps_proc->i4_src_chro… in ih264e_init_proc_ctxt()
1361ps_proc->i4_src_chroma_strd, ps_proc->i4_src_chroma_strd, (u4_pad_bottom_sz / 2)); in ih264e_init_proc_ctxt()
1366ps_proc->pv_mb_coeff_data = ((UWORD8 *)ps_proc->pv_pic_mb_coeff_data) + i4_mb_y * ps_codec->u4_siz… in ih264e_init_proc_ctxt()
1369ps_proc->pv_mb_header_data = ((UWORD8 *)ps_proc->pv_pic_mb_header_data) + i4_mb_y * ps_codec->u4_s… in ih264e_init_proc_ctxt()
1372 ps_proc->i4_cur_slice_idx = ps_proc->pu1_slice_idx[i4_mb_y * ps_proc->i4_wd_mbs + i4_mb_x]; in ih264e_init_proc_ctxt()
1382 ps_proc->ps_pu = ps_cur_mv_buf->ps_pic_pu + (i4_mb_y * ps_proc->i4_wd_mbs * in ih264e_init_proc_ctxt()
1386 ps_proc->ps_colpu = ps_proc->aps_mv_buf[1]->ps_pic_pu + (i4_mb_y * ps_proc->i4_wd_mbs * in ih264e_init_proc_ctxt()
1391 ps_proc->ps_top_row_pu_ME = ps_cur_mv_buf->ps_pic_pu; in ih264e_init_proc_ctxt()
1395 ps_proc->ps_top_row_pu_ME = ps_cur_mv_buf->ps_pic_pu + ((i4_mb_y - 1) * ps_proc->i4_wd_mbs * in ih264e_init_proc_ctxt()
1399 ps_proc->pu4_mb_pu_cnt = ps_cur_mv_buf->pu4_mb_pu_cnt + (i4_mb_y * ps_proc->i4_wd_mbs); in ih264e_init_proc_ctxt()
1402 ps_proc->u4_mb_type = I16x16; in ih264e_init_proc_ctxt()
1405 ps_proc->u4_lambda = gu1_qp0[ps_qp_params->u1_mb_qp]; in ih264e_init_proc_ctxt()
1408 ps_proc->i4_mb_distortion = SHRT_MAX; in ih264e_init_proc_ctxt()
1412 ps_proc->s_left_mb_syntax_ele.i4_mb_distortion = 0; in ih264e_init_proc_ctxt()
1414 ps_proc->s_top_left_mb_syntax_ele.i4_mb_distortion = 0; in ih264e_init_proc_ctxt()
1416 ps_proc->s_top_left_mb_syntax_ME.i4_mb_distortion = 0; in ih264e_init_proc_ctxt()
1420 … memset(ps_proc->ps_top_row_mb_syntax_ele, 0, (ps_proc->i4_wd_mbs + 1)*sizeof(mb_info_t)); in ih264e_init_proc_ctxt()
1425 ps_proc->i4_mb_cost = INT_MAX; in ih264e_init_proc_ctxt()
1430 ps_deblk->i4_mb_x = ps_proc->i4_mb_x; in ih264e_init_proc_ctxt()
1435 ps_deblk->i4_mb_y = ps_proc->i4_mb_y - 1; in ih264e_init_proc_ctxt()
1438 …ps_deblk->pu1_cur_pic_luma = ps_proc->pu1_rec_buf_luma_base + i4_rec_strd * (ps_deblk->i4_mb_y * M… in ih264e_init_proc_ctxt()
1439 …ps_deblk->pu1_cur_pic_chroma = ps_proc->pu1_rec_buf_chroma_base + i4_rec_strd * (ps_deblk->i4_mb_y… in ih264e_init_proc_ctxt()
1443 ps_bs->i4_mb_x = ps_proc->i4_mb_x; in ih264e_init_proc_ctxt()
1444 ps_bs->i4_mb_y = ps_proc->i4_mb_y; in ih264e_init_proc_ctxt()
1449 ps_n_mb_ctxt->i4_n_mbs = ps_proc->i4_nmb_ntrpy; in ih264e_init_proc_ctxt()
1485 IH264E_ERROR_T ih264e_pad_recon_buffer(process_ctxt_t *ps_proc, in ih264e_pad_recon_buffer() argument
1493 codec_t *ps_codec = ps_proc->ps_codec; in ih264e_pad_recon_buffer()
1496 WORD32 i4_rec_strd = ps_proc->i4_rec_strd; in ih264e_pad_recon_buffer()
1506 if (i4_mb_x == ps_proc->i4_wd_mbs - 1) in ih264e_pad_recon_buffer()
1514 if (i4_mb_y == ps_proc->i4_ht_mbs - 1) in ih264e_pad_recon_buffer()
1540 if (i4_mb_x == ps_proc->i4_wd_mbs - 1) in ih264e_pad_recon_buffer()
1587 IH264E_ERROR_T ih264e_dblk_pad_hpel_processing_n_mbs(process_ctxt_t *ps_proc, in ih264e_dblk_pad_hpel_processing_n_mbs() argument
1594 codec_t *ps_codec = ps_proc->ps_codec; in ih264e_dblk_pad_hpel_processing_n_mbs()
1597 n_mb_process_ctxt_t *ps_n_mb_ctxt = &ps_proc->s_n_mb_ctxt; in ih264e_dblk_pad_hpel_processing_n_mbs()
1600 deblk_ctxt_t *ps_deblk = &ps_proc->s_deblk_ctxt; in ih264e_dblk_pad_hpel_processing_n_mbs()
1603 WORD32 i4_rec_strd = ps_proc->i4_rec_strd; in ih264e_dblk_pad_hpel_processing_n_mbs()
1612 UWORD8 *pu1_deblk_map = ps_proc->pu1_deblk_map + ps_deblk->i4_mb_y * ps_proc->i4_wd_mbs; in ih264e_dblk_pad_hpel_processing_n_mbs()
1615 UWORD8 *pu1_deblk_map_prev_row = pu1_deblk_map - ps_proc->i4_wd_mbs; in ih264e_dblk_pad_hpel_processing_n_mbs()
1633 if (ps_proc->u4_disable_deblock_level == 1) in ih264e_dblk_pad_hpel_processing_n_mbs()
1645 if (i4_mb_x == (ps_proc->i4_wd_mbs - 1)) in ih264e_dblk_pad_hpel_processing_n_mbs()
1655 if ((i4_mb_y > 0) || (i4_mb_y == (ps_proc->i4_ht_mbs - 1))) in ih264e_dblk_pad_hpel_processing_n_mbs()
1659 …if ( ((i4_mb_x - (ps_n_mb_ctxt->i4_mb_x - 1)) < i4_n_mbs) && (i4_mb_x < (ps_proc->i4_wd_mbs - 1)) ) in ih264e_dblk_pad_hpel_processing_n_mbs()
1668 if ((i4_mb_y > 0) && (ps_proc->u4_disable_deblock_level != 1)) in ih264e_dblk_pad_hpel_processing_n_mbs()
1679 if ((ps_deblk->i4_mb_x + i4_n_mb_process_count) != ps_proc->i4_wd_mbs) in ih264e_dblk_pad_hpel_processing_n_mbs()
1692 ih264e_deblock_mb(ps_proc, ps_deblk); in ih264e_dblk_pad_hpel_processing_n_mbs()
1707 if (ps_deblk->i4_mb_x == (ps_proc->i4_wd_mbs - 1))/*last column*/ in ih264e_dblk_pad_hpel_processing_n_mbs()
1742 if (i4_mb_x == ps_proc->i4_wd_mbs - 1) in ih264e_dblk_pad_hpel_processing_n_mbs()
1748 …ps_codec->pf_pad_top(ps_proc->pu1_rec_buf_luma_base + u4_pad_top, i4_rec_strd, u4_pad_wd, PAD_TOP); in ih264e_dblk_pad_hpel_processing_n_mbs()
1751 …ps_codec->pf_pad_top(ps_proc->pu1_rec_buf_chroma_base + u4_pad_top, i4_rec_strd, u4_pad_wd, (PAD_T… in ih264e_dblk_pad_hpel_processing_n_mbs()
1756 if (i4_mb_x == ps_proc->i4_wd_mbs - 1) in ih264e_dblk_pad_hpel_processing_n_mbs()
1758 if (ps_proc->i4_mb_y == ps_proc->i4_ht_mbs - 1) in ih264e_dblk_pad_hpel_processing_n_mbs()
1761 if (ps_proc->u4_disable_deblock_level != 1) in ih264e_dblk_pad_hpel_processing_n_mbs()
1763 …ps_deblk->pu1_cur_pic_luma = ps_proc->pu1_rec_buf_luma_base + (ps_proc->i4_ht_mbs - 1) * i4_rec_st… in ih264e_dblk_pad_hpel_processing_n_mbs()
1765 …ps_deblk->pu1_cur_pic_chroma = ps_proc->pu1_rec_buf_chroma_base + (ps_proc->i4_ht_mbs - 1) * i4_re… in ih264e_dblk_pad_hpel_processing_n_mbs()
1768 ps_n_mb_ctxt->i4_mb_y = ps_proc->i4_mb_y; in ih264e_dblk_pad_hpel_processing_n_mbs()
1770 ps_deblk->i4_mb_y = ps_proc->i4_mb_y; in ih264e_dblk_pad_hpel_processing_n_mbs()
1773ps_proc->s_deblk_ctxt.s_bs_ctxt.pu1_pic_qp[(i4_mb_y * ps_proc->i4_wd_mbs) + i4_mb_x] = ps_proc->u4… in ih264e_dblk_pad_hpel_processing_n_mbs()
1775 i4_n_mb_process_count = (ps_proc->i4_wd_mbs) % i4_n_mbs; in ih264e_dblk_pad_hpel_processing_n_mbs()
1777 j = (ps_proc->i4_wd_mbs) / i4_n_mbs; in ih264e_dblk_pad_hpel_processing_n_mbs()
1783 ih264e_deblock_mb(ps_proc, ps_deblk); in ih264e_dblk_pad_hpel_processing_n_mbs()
1796 ih264e_deblock_mb(ps_proc, ps_deblk); in ih264e_dblk_pad_hpel_processing_n_mbs()
1806 …pu1_pad_src_luma = ps_proc->pu1_rec_buf_luma_base + (ps_proc->i4_ht_mbs - 2) * MB_SIZE * i4_rec_st… in ih264e_dblk_pad_hpel_processing_n_mbs()
1808 …pu1_pad_src_chroma = ps_proc->pu1_rec_buf_chroma_base + (ps_proc->i4_ht_mbs - 2) * BLK8x8SIZE * i4… in ih264e_dblk_pad_hpel_processing_n_mbs()
1825 …pu1_pad_src_luma = ps_proc->pu1_rec_buf_luma_base + (ps_proc->i4_ht_mbs - 2) * MB_SIZE * i4_rec_st… in ih264e_dblk_pad_hpel_processing_n_mbs()
1827 …pu1_pad_src_chroma = ps_proc->pu1_rec_buf_chroma_base + (ps_proc->i4_ht_mbs - 2) * BLK8x8SIZE * i4… in ih264e_dblk_pad_hpel_processing_n_mbs()
1847 if (ps_proc->i4_ht_mbs <= 2) in ih264e_dblk_pad_hpel_processing_n_mbs()
1851 pu1_pad_top_src = ps_proc->pu1_rec_buf_luma_base - PAD_LEFT; in ih264e_dblk_pad_hpel_processing_n_mbs()
1855 pu1_pad_top_src = ps_proc->pu1_rec_buf_chroma_base - PAD_LEFT; in ih264e_dblk_pad_hpel_processing_n_mbs()
1860 …pu1_pad_bottom_src = ps_proc->pu1_rec_buf_luma_base + ps_proc->i4_ht_mbs * MB_SIZE * i4_rec_strd -… in ih264e_dblk_pad_hpel_processing_n_mbs()
1864 …pu1_pad_bottom_src = ps_proc->pu1_rec_buf_chroma_base + ps_proc->i4_ht_mbs * (MB_SIZE >> 1) * i4_r… in ih264e_dblk_pad_hpel_processing_n_mbs()
1898 WORD32 ih264e_process(process_ctxt_t *ps_proc) in ih264e_process() argument
1904 codec_t *ps_codec = ps_proc->ps_codec; in ih264e_process()
1910 WORD32 i4_wd_mbs = ps_proc->i4_wd_mbs; in ih264e_process()
1913 WORD32 i4_mb_idx, i4_mb_cnt = ps_proc->i4_mb_cnt; in ih264e_process()
1925 WORD32 ctxt_sel = ps_proc->i4_encode_api_call_cnt % MAX_CTXT_SETS; in ih264e_process()
1936 if (ps_proc->i4_slice_type == ISLICE) in ih264e_process()
1938 if (ps_proc->u4_frame_qp > 10) in ih264e_process()
1949 u4_valid_modes |= (ps_proc->u4_frame_qp <= 10) << I4x4; in ih264e_process()
1952 else if (ps_proc->i4_slice_type == PSLICE) in ih264e_process()
1954 if (ps_proc->u4_frame_qp > 10) in ih264e_process()
1965 u4_valid_modes |= (ps_proc->u4_frame_qp <= 10) << I4x4; in ih264e_process()
1970 else if (ps_proc->i4_slice_type == BSLICE) in ih264e_process()
1972 if (ps_proc->u4_frame_qp > 10) in ih264e_process()
1983 u4_valid_modes |= (ps_proc->u4_frame_qp <= 10) << I4x4; in ih264e_process()
1991 ps_proc->s_entropy.i4_mb_x = ps_proc->i4_mb_x; in ih264e_process()
1992 ps_proc->s_entropy.i4_mb_y = ps_proc->i4_mb_y; in ih264e_process()
1993 ps_proc->s_entropy.i4_mb_cnt = MIN(ps_proc->i4_nmb_ntrpy, i4_wd_mbs - ps_proc->i4_mb_x); in ih264e_process()
1999 ps_proc->u4_compute_recon = ps_codec->u4_is_curr_frm_ref || in ih264e_process()
2009 ps_proc->u4_min_sad = ps_codec->s_cfg.i4_min_sad; in ih264e_process()
2010 ps_proc->u4_min_sad_reached = 0; in ih264e_process()
2015 WORD32 i4_mb_id = ps_proc->i4_mb_x + ps_proc->i4_mb_y * i4_wd_mbs; in ih264e_process()
2025 if (ps_proc->i4_mb_x % ps_proc->u4_nmb_me == 0) in ih264e_process()
2027 ih264e_compute_me_nmb(ps_proc, MIN((WORD32)ps_proc->u4_nmb_me, in ih264e_process()
2028 i4_wd_mbs - ps_proc->i4_mb_x)); in ih264e_process()
2033 UWORD32 u4_mb_index = ps_proc->i4_mb_x % ps_proc->u4_nmb_me ; in ih264e_process()
2036ps_proc->u4_min_sad_reached = ps_proc->ps_nmb_info[u4_mb_index].u4_min_sad_reached; in ih264e_process()
2037 ps_proc->u4_min_sad = ps_proc->ps_nmb_info[u4_mb_index].u4_min_sad; in ih264e_process()
2039 ps_proc->ps_skip_mv = &(ps_proc->ps_nmb_info[u4_mb_index].as_skip_mv[0]); in ih264e_process()
2040 ps_proc->ps_ngbr_avbl = &(ps_proc->ps_nmb_info[u4_mb_index].s_ngbr_avbl); in ih264e_process()
2041 ps_proc->ps_pred_mv = &(ps_proc->ps_nmb_info[u4_mb_index].as_pred_mv[0]); in ih264e_process()
2043 ps_proc->i4_mb_distortion = ps_proc->ps_nmb_info[u4_mb_index].i4_mb_distortion; in ih264e_process()
2044 ps_proc->i4_mb_cost = ps_proc->ps_nmb_info[u4_mb_index].i4_mb_cost; in ih264e_process()
2045 ps_proc->u4_min_sad = ps_proc->ps_nmb_info[u4_mb_index].u4_min_sad; in ih264e_process()
2046ps_proc->u4_min_sad_reached = ps_proc->ps_nmb_info[u4_mb_index].u4_min_sad_reached; in ih264e_process()
2047 ps_proc->u4_mb_type = ps_proc->ps_nmb_info[u4_mb_index].u4_mb_type; in ih264e_process()
2050ps_proc->pu1_best_subpel_buf = ps_proc->ps_nmb_info[u4_mb_index].pu1_best_sub_pel_buf; in ih264e_process()
2051ps_proc->u4_bst_spel_buf_strd = ps_proc->ps_nmb_info[u4_mb_index].u4_bst_spel_buf_strd; in ih264e_process()
2053 ih264e_derive_nghbr_avbl_of_mbs(ps_proc); in ih264e_process()
2058 ps_proc->ps_ngbr_avbl = &ps_proc->s_ngbr_avbl; in ih264e_process()
2060 ih264e_derive_nghbr_avbl_of_mbs(ps_proc); in ih264e_process()
2069 ps_proc->u4_min_sad_reached = 0; in ih264e_process()
2070 ps_proc->i4_mb_cost = INT_MAX; in ih264e_process()
2071 ps_proc->i4_mb_distortion = INT_MAX; in ih264e_process()
2073 else if (ps_proc->u4_mb_type == PSKIP) in ih264e_process()
2080 if(ps_proc->i4_mb_y > 0) in ih264e_process()
2085 pu1_proc_map_top = ps_proc->pu1_proc_map + ((ps_proc->i4_mb_y - 1) * i4_wd_mbs); in ih264e_process()
2101 if (ps_proc->u4_min_sad_reached == 0) in ih264e_process()
2105 … if (i4_air_enable_inter && ps_proc->i4_slice_type != ISLICE && ps_codec->u4_inter_gate) in ih264e_process()
2110 i4_distortion[0] = ps_proc->s_left_mb_syntax_ele.i4_mb_distortion; in ih264e_process()
2112 … i4_distortion[1] = ps_proc->ps_top_row_mb_syntax_ele[ps_proc->i4_mb_x].i4_mb_distortion; in ih264e_process()
2114 … i4_distortion[2] = ps_proc->ps_top_row_mb_syntax_ele[ps_proc->i4_mb_x + 1].i4_mb_distortion; in ih264e_process()
2116 i4_distortion[3] = ps_proc->s_top_left_mb_syntax_ele.i4_mb_distortion; in ih264e_process()
2124 …!i4_air_enable_inter) || ((i4_gate_threshold + 16 *((WORD32) ps_proc->u4_lambda)) < ps_proc->i4_mb… in ih264e_process()
2131 ih264e_evaluate_intra4x4_modes_for_least_cost_rdopton(ps_proc); in ih264e_process()
2135 ih264e_evaluate_intra4x4_modes_for_least_cost_rdoptoff(ps_proc); in ih264e_process()
2142 ih264e_evaluate_intra16x16_modes_for_least_cost_rdoptoff(ps_proc); in ih264e_process()
2148 ih264e_evaluate_intra8x8_modes_for_least_cost_rdoptoff(ps_proc); in ih264e_process()
2156 … if (ps_proc->u4_mb_type == I4x4 || ps_proc->u4_mb_type == I16x16 || ps_proc->u4_mb_type == I8x8) in ih264e_process()
2158 luma_idx = ps_proc->u4_mb_type; in ih264e_process()
2163 ih264e_evaluate_chroma_intra8x8_modes_for_least_cost_rdoptoff(ps_proc); in ih264e_process()
2171 ps_proc->u4_is_intra = is_intra; in ih264e_process()
2172 ps_proc->ps_pu->b1_intra_flag = is_intra; in ih264e_process()
2177 if (ps_proc->i4_slice_type != ISLICE) in ih264e_process()
2179 ih264e_mv_pred(ps_proc, ps_proc->i4_slice_type); in ih264e_process()
2183 u4_cbp_l = (ps_codec->luma_energy_compaction)[luma_idx](ps_proc); in ih264e_process()
2186 u4_cbp_c = (ps_codec->chroma_energy_compaction)[chroma_idx](ps_proc); in ih264e_process()
2189 ps_proc->u4_cbp = (u4_cbp_c << 4) | u4_cbp_l; in ih264e_process()
2191 if (!ps_proc->u4_is_intra) in ih264e_process()
2193 if (ps_proc->i4_slice_type == BSLICE) in ih264e_process()
2195 if (ih264e_find_bskip_params(ps_proc, PRED_L0)) in ih264e_process()
2197 ps_proc->u4_mb_type = (ps_proc->u4_cbp) ? BDIRECT : BSKIP; in ih264e_process()
2200 else if(!ps_proc->u4_cbp) in ih264e_process()
2202 if (ih264e_find_pskip_params(ps_proc, PRED_L0)) in ih264e_process()
2204 ps_proc->u4_mb_type = PSKIP; in ih264e_process()
2212 ih264e_update_rc_mb_info(&ps_proc->s_frame_info, ps_proc); in ih264e_process()
2228 if (ps_proc->u4_compute_recon) in ih264e_process()
2232 UWORD8 *pu1_cur_pic_luma = ps_proc->pu1_rec_buf_luma; in ih264e_process()
2233 UWORD8 *pu1_cur_pic_chroma = ps_proc->pu1_rec_buf_chroma; in ih264e_process()
2236 UWORD32 i4_mb_x = ps_proc->i4_mb_x; in ih264e_process()
2237 UWORD32 i4_mb_y = ps_proc->i4_mb_y; in ih264e_process()
2240 if (ps_proc->u4_disable_deblock_level != 1) in ih264e_process()
2242 ih264e_compute_bs(ps_proc); in ih264e_process()
2246 ih264e_dblk_pad_hpel_processing_n_mbs(ps_proc, pu1_cur_pic_luma, in ih264e_process()
2252 error_status |= ih264e_update_proc_ctxt(ps_proc); in ih264e_process()
2255 if (ps_proc->i4_ht_mbs == ps_proc->i4_mb_y) in ih264e_process()
2258 pic_buf_t *ps_cur_pic = ps_proc->ps_cur_pic; in ih264e_process()
2261 mv_buf_t *ps_cur_mv_buf = ps_proc->ps_cur_mv_buf; in ih264e_process()
2283 ps_codec->as_rec_buf[ctxt_sel].i4_pic_cnt = ps_proc->i4_pic_cnt; in ih264e_process()
2286 ps_codec->as_rec_buf[ctxt_sel].s_pic_buf = *ps_proc->ps_cur_pic; in ih264e_process()
2289 ps_codec->as_rec_buf[ctxt_sel].u4_is_last = ps_proc->s_entropy.u4_is_last; in ih264e_process()
2292 … ps_codec->as_rec_buf[ctxt_sel].u4_timestamp_high = ps_proc->s_entropy.u4_timestamp_high; in ih264e_process()
2293 … ps_codec->as_rec_buf[ctxt_sel].u4_timestamp_low = ps_proc->s_entropy.u4_timestamp_low; in ih264e_process()
2299 DEBUG_HISTOGRAM_DUMP(ps_codec->s_cfg.i4_ht_mbs == ps_proc->i4_mb_y); in ih264e_process()
2338 process_ctxt_t *ps_proc = &ps_codec->as_process[i4_proc_ctxt_sel_base]; in ih264e_update_rc_post_enc() local
2370 s_frame_info.num_mbs[j] += ps_proc[i].s_frame_info.num_mbs[j]; in ih264e_update_rc_post_enc()
2372 s_frame_info.tot_mb_sad[j] += ps_proc[i].s_frame_info.tot_mb_sad[j]; in ih264e_update_rc_post_enc()
2374 s_frame_info.qp_sum[j] += ps_proc[i].s_frame_info.qp_sum[j]; in ih264e_update_rc_post_enc()
2377 s_frame_info.intra_mb_cost_sum += ps_proc[i].s_frame_info.intra_mb_cost_sum; in ih264e_update_rc_post_enc()
2379 s_frame_info.activity_sum += ps_proc[i].s_frame_info.activity_sum; in ih264e_update_rc_post_enc()
2384 ih264e_update_rc_bits_info(&s_frame_info, &ps_proc[i].s_entropy); in ih264e_update_rc_post_enc()
2411 (ps_proc->i4_wd_mbs * ps_proc->i4_ht_mbs), in ih264e_update_rc_post_enc()
2447 process_ctxt_t *ps_proc = pv_proc; in ih264e_process_thread() local
2450 codec_t *ps_codec = ps_proc->ps_codec; in ih264e_process_thread()
2460 ithread_set_affinity(ps_proc->i4_id); in ih264e_process_thread()
2479 ret = ih264_list_dequeue(ps_proc->pv_entropy_jobq, &s_job, is_blocking); in ih264e_process_thread()
2497 ret = ih264_list_dequeue(ps_proc->pv_proc_jobq, &s_job, 1); in ih264e_process_thread()
2500 if(ps_proc->i4_id) in ih264e_process_thread()
2511 ps_proc = &ps_codec->as_process[ps_proc->i4_id + s_job.i2_proc_base_idx]; in ih264e_process_thread()
2516 ps_proc->i4_mb_cnt = s_job.i2_mb_cnt; in ih264e_process_thread()
2517 ps_proc->i4_mb_x = s_job.i2_mb_x; in ih264e_process_thread()
2518 ps_proc->i4_mb_y = s_job.i2_mb_y; in ih264e_process_thread()
2521 ih264e_init_proc_ctxt(ps_proc); in ih264e_process_thread()
2524 error_status |= ih264e_process(ps_proc); in ih264e_process_thread()
2528 ps_proc->s_entropy.i4_mb_x = s_job.i2_mb_x; in ih264e_process_thread()
2529 ps_proc->s_entropy.i4_mb_y = s_job.i2_mb_y; in ih264e_process_thread()
2530 ps_proc->s_entropy.i4_mb_cnt = s_job.i2_mb_cnt; in ih264e_process_thread()
2533 ih264e_init_entropy_ctxt(ps_proc); in ih264e_process_thread()
2536 error_status |= ih264e_entropy(ps_proc); in ih264e_process_thread()
2546 ps_proc->i4_error_code = error_status; in ih264e_process_thread()