Lines Matching refs:s_cfg
264 i4_force_idr |= !(ps_codec->i4_pic_cnt % ps_codec->s_cfg.u4_idr_frm_interval); in ih264e_input_queue_update()
283 < (WORD32)(ps_codec->s_cfg.u4_num_bframes)) in ih264e_input_queue_update()
403 && ps_codec->s_cfg.u4_num_bframes && (ps_codec->i4_poc > 1)) in ih264e_input_queue_update()
802 * (ps_codec->s_cfg.u4_ht + PAD_HT); in ih264e_pic_buf_mgr_add_bufs()
880 WORD32 num_luma_samples = ALIGN16(ps_codec->s_cfg.u4_wd) in ih264e_mv_buf_mgr_add_bufs()
881 * ALIGN16(ps_codec->s_cfg.u4_ht); in ih264e_mv_buf_mgr_add_bufs()
1052 if (ps_proc->ps_codec->s_cfg.u4_enable_satqd) in ih264e_init_quant_params()
1103 IVE_AIR_MODE_T air_mode = ps_codec->s_cfg.e_air_mode; in ih264e_init_air_map()
1106 UWORD32 air_period = ps_codec->s_cfg.u4_air_refresh_period; in ih264e_init_air_map()
1109 UWORD32 u4_mb_cnt = ps_codec->s_cfg.i4_wd_mbs * ps_codec->s_cfg.i4_ht_mbs; in ih264e_init_air_map()
1170 if (ps_codec->s_cfg.u4_enc_speed_preset != IVE_CONFIG) in ih264e_codec_init()
1172 if (ps_codec->s_cfg.u4_enc_speed_preset == IVE_SLOWEST) in ih264e_codec_init()
1175 ps_codec->s_cfg.u4_me_speed_preset = DMND_SRCH; in ih264e_codec_init()
1176 ps_codec->s_cfg.u4_enable_fast_sad = 0; in ih264e_codec_init()
1179 ps_codec->s_cfg.u4_enable_intra_4x4 = 1; in ih264e_codec_init()
1184 ps_codec->s_cfg.u4_enable_hpel = 1; in ih264e_codec_init()
1187 ps_codec->s_cfg.u4_disable_deblock_level = DISABLE_DEBLK_LEVEL_0; in ih264e_codec_init()
1192 else if (ps_codec->s_cfg.u4_enc_speed_preset == IVE_NORMAL) in ih264e_codec_init()
1195 ps_codec->s_cfg.u4_me_speed_preset = DMND_SRCH; in ih264e_codec_init()
1196 ps_codec->s_cfg.u4_enable_fast_sad = 0; in ih264e_codec_init()
1199 ps_codec->s_cfg.u4_enable_intra_4x4 = 1; in ih264e_codec_init()
1202 ps_codec->s_cfg.u4_enable_hpel = 1; in ih264e_codec_init()
1205 ps_codec->s_cfg.u4_disable_deblock_level = DISABLE_DEBLK_LEVEL_0; in ih264e_codec_init()
1210 else if (ps_codec->s_cfg.u4_enc_speed_preset == IVE_FAST) in ih264e_codec_init()
1213 ps_codec->s_cfg.u4_me_speed_preset = DMND_SRCH; in ih264e_codec_init()
1214 ps_codec->s_cfg.u4_enable_fast_sad = 0; in ih264e_codec_init()
1217 ps_codec->s_cfg.u4_enable_intra_4x4 = 0; in ih264e_codec_init()
1220 ps_codec->s_cfg.u4_enable_hpel = 1; in ih264e_codec_init()
1223 ps_codec->s_cfg.u4_disable_deblock_level = DISABLE_DEBLK_LEVEL_0; in ih264e_codec_init()
1228 else if (ps_codec->s_cfg.u4_enc_speed_preset == IVE_HIGH_SPEED) in ih264e_codec_init()
1231 ps_codec->s_cfg.u4_me_speed_preset = DMND_SRCH; in ih264e_codec_init()
1232 ps_codec->s_cfg.u4_enable_fast_sad = 0; in ih264e_codec_init()
1235 ps_codec->s_cfg.u4_enable_intra_4x4 = 0; in ih264e_codec_init()
1238 ps_codec->s_cfg.u4_enable_hpel = 0; in ih264e_codec_init()
1241 ps_codec->s_cfg.u4_disable_deblock_level = DISABLE_DEBLK_LEVEL_4; in ih264e_codec_init()
1246 else if (ps_codec->s_cfg.u4_enc_speed_preset == IVE_FASTEST) in ih264e_codec_init()
1249 ps_codec->s_cfg.u4_me_speed_preset = DMND_SRCH; in ih264e_codec_init()
1252 ps_codec->s_cfg.u4_enable_intra_4x4 = 0; in ih264e_codec_init()
1255 ps_codec->s_cfg.u4_enable_hpel = 0; in ih264e_codec_init()
1258 ps_codec->s_cfg.u4_disable_deblock_level = DISABLE_DEBLK_LEVEL_4; in ih264e_codec_init()
1268 if (IVE_AIR_MODE_NONE != ps_codec->s_cfg.e_air_mode) in ih264e_codec_init()
1286 au1_init_qp[0] = gau1_h264_to_mpeg2_qmap[ps_codec->s_cfg.u4_i_qp]; in ih264e_codec_init()
1287 au1_init_qp[1] = gau1_h264_to_mpeg2_qmap[ps_codec->s_cfg.u4_p_qp]; in ih264e_codec_init()
1288 au1_init_qp[2] = gau1_h264_to_mpeg2_qmap[ps_codec->s_cfg.u4_b_qp]; in ih264e_codec_init()
1292 gau1_h264_to_mpeg2_qmap[ps_codec->s_cfg.u4_i_qp_min]; in ih264e_codec_init()
1294 gau1_h264_to_mpeg2_qmap[ps_codec->s_cfg.u4_i_qp_max]; in ih264e_codec_init()
1297 gau1_h264_to_mpeg2_qmap[ps_codec->s_cfg.u4_p_qp_min]; in ih264e_codec_init()
1299 gau1_h264_to_mpeg2_qmap[ps_codec->s_cfg.u4_p_qp_max]; in ih264e_codec_init()
1302 gau1_h264_to_mpeg2_qmap[ps_codec->s_cfg.u4_b_qp_min]; in ih264e_codec_init()
1304 gau1_h264_to_mpeg2_qmap[ps_codec->s_cfg.u4_b_qp_max]; in ih264e_codec_init()
1307 switch (ps_codec->s_cfg.e_rc_mode) in ih264e_codec_init()
1330 ps_codec->s_cfg.u4_max_framerate, in ih264e_codec_init()
1331 ps_codec->s_cfg.u4_src_frame_rate, in ih264e_codec_init()
1332 ps_codec->s_cfg.u4_tgt_frame_rate, in ih264e_codec_init()
1334 ps_codec->s_cfg.u4_target_bitrate, in ih264e_codec_init()
1335 ps_codec->s_cfg.u4_max_bitrate, in ih264e_codec_init()
1336 ps_codec->s_cfg.u4_vbv_buffer_delay, in ih264e_codec_init()
1337 ps_codec->s_cfg.u4_i_frm_interval, in ih264e_codec_init()
1338 ps_codec->s_cfg.u4_num_bframes + 1, au1_init_qp, in ih264e_codec_init()
1339 ps_codec->s_cfg.u4_num_bframes + 2 , au1_min_max_qp, in ih264e_codec_init()
1340 MAX(ps_codec->s_cfg.u4_max_level, in ih264e_codec_init()
1341 … (UWORD32)ih264e_get_min_level(ps_codec->s_cfg.u4_max_wd, ps_codec->s_cfg.u4_max_ht))); in ih264e_codec_init()
1345 ps_codec->i4_rec_strd = ALIGN16(ps_codec->s_cfg.u4_max_wd) + PAD_WD; in ih264e_codec_init()
1348 ps_codec->i4_ref_buf_cnt = ps_codec->s_cfg.u4_max_ref_cnt in ih264e_codec_init()
1349 + ps_codec->s_cfg.u4_max_reorder_cnt; in ih264e_codec_init()
1424 (ps_codec->s_cfg.u4_enc_speed_preset == IVE_FASTEST) ? in ih264e_pic_init()
1428 UWORD32 u4_enable_fast_sad = ps_codec->s_cfg.u4_enable_fast_sad; in ih264e_pic_init()
1460 if (ps_codec->s_cfg.u4_enable_alt_ref && (*pic_type == PIC_P) in ih264e_pic_init()
1462 % (ps_codec->s_cfg.u4_enable_alt_ref + 1))) in ih264e_pic_init()
1495 if (ps_codec->s_cfg.u4_disable_deblock_level == DISABLE_DEBLK_LEVEL_0) in ih264e_pic_init()
1500 else if (ps_codec->s_cfg.u4_disable_deblock_level == DISABLE_DEBLK_LEVEL_2) in ih264e_pic_init()
1509 else if (ps_codec->s_cfg.u4_disable_deblock_level == DISABLE_DEBLK_LEVEL_3) in ih264e_pic_init()
1529 if (ps_codec->s_cfg.e_slice_mode != IVE_SLICE_MODE_NONE) in ih264e_pic_init()
1747 if (1 == ps_codec->s_cfg.u4_enable_recon) in ih264e_pic_init()
1798 if (ps_codec->s_cfg.e_inp_color_fmt == IV_YUV_422ILE) in ih264e_pic_init()
1809 if (ps_codec->s_cfg.e_inp_color_fmt == IV_YUV_422ILE in ih264e_pic_init()
1810 || ps_codec->s_cfg.e_inp_color_fmt == IV_YUV_420P) in ih264e_pic_init()
1843 ps_proc->i4_wd_mbs = ps_codec->s_cfg.i4_wd_mbs; in ih264e_pic_init()
1846 ps_proc->i4_ht_mbs = ps_codec->s_cfg.i4_ht_mbs; in ih264e_pic_init()
1896 if (IVE_AIR_MODE_NONE != ps_codec->s_cfg.e_air_mode) in ih264e_pic_init()
1899 % ps_codec->s_cfg.u4_air_refresh_period; in ih264e_pic_init()
1913 if (ps_codec->s_cfg.e_slice_mode == IVE_SLICE_MODE_NONE) in ih264e_pic_init()
1918 else if (ps_codec->s_cfg.e_slice_mode == IVE_SLICE_MODE_BLOCKS) in ih264e_pic_init()
1928 if (i4_mb_y +(WORD32)ps_codec->s_cfg.u4_slice_param < ps_proc->i4_ht_mbs) in ih264e_pic_init()
1930 cnt = ps_codec->s_cfg.u4_slice_param * ps_proc->i4_wd_mbs; in ih264e_pic_init()
1931 i4_mb_y += ps_codec->s_cfg.u4_slice_param; in ih264e_pic_init()
2057 ps_codec->s_cfg.u4_entropy_coding_mode; in ih264e_pic_init()
2102 ps_codec->s_cfg.u4_srch_rng_x; in ih264e_pic_init()
2106 ps_codec->s_cfg.u4_srch_rng_y; in ih264e_pic_init()
2124 ps_me_ctxt->u4_enable_hpel = ps_codec->s_cfg.u4_enable_hpel; in ih264e_pic_init()
2131 ps_codec->s_cfg.u4_me_speed_preset; in ih264e_pic_init()
2165 s_job.i2_mb_cnt = ps_codec->s_cfg.i4_wd_mbs; in ih264e_pic_init()
2173 for (i = 0; i < (WORD32)ps_codec->s_cfg.i4_ht_mbs; i++) in ih264e_pic_init()