Lines Matching refs:ps_cfg
1863 cfg_params_t *ps_cfg) in ih264e_codec_update_config() argument
1877 if (ps_cfg->e_cmd == IVE_CMD_CTL_SET_DIMENSIONS) in ih264e_codec_update_config()
1879 UWORD32 wd_aln = ALIGN16(ps_cfg->u4_wd); in ih264e_codec_update_config()
1880 UWORD32 ht_aln = ALIGN16(ps_cfg->u4_ht); in ih264e_codec_update_config()
1883 || ps_curr_cfg->u4_disp_wd != ps_cfg->u4_disp_wd in ih264e_codec_update_config()
1884 || ps_curr_cfg->u4_disp_ht != ps_cfg->u4_disp_ht) in ih264e_codec_update_config()
1889 ps_curr_cfg->u4_disp_wd = ps_cfg->u4_disp_wd; in ih264e_codec_update_config()
1890 ps_curr_cfg->u4_disp_ht = ps_cfg->u4_disp_ht; in ih264e_codec_update_config()
1895 ps_codec->i4_rec_strd = ALIGN16(ps_cfg->u4_wd) + PAD_WD; in ih264e_codec_update_config()
1929 else if (ps_cfg->e_cmd == IVE_CMD_CTL_SET_FRAMERATE) in ih264e_codec_update_config()
1942 != ps_cfg->u4_src_frame_rate * 1000) in ih264e_codec_update_config()
1944 ps_codec->s_cfg.u4_src_frame_rate = ps_cfg->u4_src_frame_rate in ih264e_codec_update_config()
1961 != ps_cfg->u4_tgt_frame_rate * 1000) in ih264e_codec_update_config()
1963 ps_codec->s_cfg.u4_tgt_frame_rate = ps_cfg->u4_tgt_frame_rate in ih264e_codec_update_config()
1980 else if (ps_cfg->e_cmd == IVE_CMD_CTL_SET_BITRATE) in ih264e_codec_update_config()
1982 if (ps_curr_cfg->u4_target_bitrate != ps_cfg->u4_target_bitrate) in ih264e_codec_update_config()
1987 ps_cfg->u4_target_bitrate); in ih264e_codec_update_config()
1989 ps_curr_cfg->u4_target_bitrate = ps_cfg->u4_target_bitrate; in ih264e_codec_update_config()
1992 else if (ps_cfg->e_cmd == IVE_CMD_CTL_SET_FRAMETYPE) in ih264e_codec_update_config()
1994 switch (ps_cfg->e_frame_type) in ih264e_codec_update_config()
2009 else if (ps_cfg->e_cmd == IVE_CMD_CTL_SET_ME_PARAMS) in ih264e_codec_update_config()
2013 ps_codec->s_cfg.u4_enable_hpel = ps_cfg->u4_enable_hpel; in ih264e_codec_update_config()
2014 ps_codec->s_cfg.u4_enable_fast_sad = ps_cfg->u4_enable_fast_sad; in ih264e_codec_update_config()
2015 ps_codec->s_cfg.u4_me_speed_preset = ps_cfg->u4_me_speed_preset; in ih264e_codec_update_config()
2016 ps_codec->s_cfg.u4_enable_qpel = ps_cfg->u4_enable_qpel; in ih264e_codec_update_config()
2020 ps_codec->s_cfg.u4_enable_fast_sad = ps_cfg->u4_enable_fast_sad; in ih264e_codec_update_config()
2022 ps_codec->s_cfg.u4_srch_rng_x = ps_cfg->u4_srch_rng_x; in ih264e_codec_update_config()
2023 ps_codec->s_cfg.u4_srch_rng_y = ps_cfg->u4_srch_rng_y; in ih264e_codec_update_config()
2025 if (ps_codec->s_cfg.u4_enable_alt_ref != ps_cfg->u4_enable_alt_ref) in ih264e_codec_update_config()
2027 ps_codec->s_cfg.u4_enable_alt_ref = ps_cfg->u4_enable_alt_ref; in ih264e_codec_update_config()
2031 else if (ps_cfg->e_cmd == IVE_CMD_CTL_SET_IPE_PARAMS) in ih264e_codec_update_config()
2033 ps_curr_cfg->u4_enc_speed_preset = ps_cfg->u4_enc_speed_preset; in ih264e_codec_update_config()
2034 ps_curr_cfg->u4_constrained_intra_pred = ps_cfg->u4_constrained_intra_pred; in ih264e_codec_update_config()
2129 ps_curr_cfg->u4_enable_intra_4x4 = ps_cfg->u4_enable_intra_4x4; in ih264e_codec_update_config()
2132 else if (ps_cfg->e_cmd == IVE_CMD_CTL_SET_GOP_PARAMS) in ih264e_codec_update_config()
2134 if (ps_curr_cfg->u4_i_frm_interval != ps_cfg->u4_i_frm_interval) in ih264e_codec_update_config()
2136 ps_curr_cfg->u4_i_frm_interval = ps_cfg->u4_i_frm_interval; in ih264e_codec_update_config()
2151 ps_curr_cfg->u4_idr_frm_interval = ps_cfg->u4_idr_frm_interval; in ih264e_codec_update_config()
2154 else if (ps_cfg->e_cmd == IVE_CMD_CTL_SET_DEBLOCK_PARAMS) in ih264e_codec_update_config()
2159 ps_cfg->u4_disable_deblock_level; in ih264e_codec_update_config()
2162 else if (ps_cfg->e_cmd == IVE_CMD_CTL_SET_QP) in ih264e_codec_update_config()
2167 ps_codec->s_cfg.u4_i_qp_max = ps_cfg->u4_i_qp_max; in ih264e_codec_update_config()
2168 ps_codec->s_cfg.u4_i_qp_min = ps_cfg->u4_i_qp_min; in ih264e_codec_update_config()
2169 ps_codec->s_cfg.u4_i_qp = ps_cfg->u4_i_qp; in ih264e_codec_update_config()
2171 ps_codec->s_cfg.u4_p_qp_max = ps_cfg->u4_p_qp_max; in ih264e_codec_update_config()
2172 ps_codec->s_cfg.u4_p_qp_min = ps_cfg->u4_p_qp_min; in ih264e_codec_update_config()
2173 ps_codec->s_cfg.u4_p_qp = ps_cfg->u4_p_qp; in ih264e_codec_update_config()
2175 ps_codec->s_cfg.u4_b_qp_max = ps_cfg->u4_b_qp_max; in ih264e_codec_update_config()
2176 ps_codec->s_cfg.u4_b_qp_min = ps_cfg->u4_b_qp_min; in ih264e_codec_update_config()
2177 ps_codec->s_cfg.u4_b_qp = ps_cfg->u4_b_qp; in ih264e_codec_update_config()
2205 else if (ps_cfg->e_cmd == IVE_CMD_CTL_SET_ENC_MODE) in ih264e_codec_update_config()
2207 ps_codec->s_cfg.e_enc_mode = ps_cfg->e_enc_mode; in ih264e_codec_update_config()
2219 else if (ps_cfg->e_cmd == IVE_CMD_CTL_SET_VBV_PARAMS in ih264e_codec_update_config()
2222 ps_codec->s_cfg.u4_vbv_buf_size = ps_cfg->u4_vbv_buf_size; in ih264e_codec_update_config()
2223 ps_codec->s_cfg.u4_vbv_buffer_delay = ps_cfg->u4_vbv_buffer_delay; in ih264e_codec_update_config()
2231 else if (ps_cfg->e_cmd == IVE_CMD_CTL_SET_AIR_PARAMS) in ih264e_codec_update_config()
2233 if (ps_curr_cfg->e_air_mode != ps_cfg->e_air_mode in ih264e_codec_update_config()
2235 != ps_cfg->u4_air_refresh_period) in ih264e_codec_update_config()
2237 ps_curr_cfg->e_air_mode = ps_cfg->e_air_mode; in ih264e_codec_update_config()
2238 ps_curr_cfg->u4_air_refresh_period = ps_cfg->u4_air_refresh_period; in ih264e_codec_update_config()
2246 else if (ps_cfg->e_cmd == IVE_CMD_CTL_SET_PROFILE_PARAMS) in ih264e_codec_update_config()
2248 ps_codec->s_cfg.e_profile = ps_cfg->e_profile; in ih264e_codec_update_config()
2249 ps_codec->s_cfg.u4_entropy_coding_mode = ps_cfg->u4_entropy_coding_mode; in ih264e_codec_update_config()
2251 else if (ps_cfg->e_cmd == IVE_CMD_CTL_SET_NUM_CORES) in ih264e_codec_update_config()
2253 ps_codec->s_cfg.u4_num_cores = ps_cfg->u4_num_cores; in ih264e_codec_update_config()
2255 else if (ps_cfg->e_cmd == IVE_CMD_CTL_SET_VUI_PARAMS) in ih264e_codec_update_config()
2257 ps_codec->s_cfg.s_vui = ps_cfg->s_vui; in ih264e_codec_update_config()
2352 static WORD32 ih264e_set_default_params(cfg_params_t *ps_cfg) in ih264e_set_default_params() argument
2356 ps_cfg->u4_max_wd = MAX_WD; in ih264e_set_default_params()
2357 ps_cfg->u4_max_ht = MAX_HT; in ih264e_set_default_params()
2358 ps_cfg->u4_max_ref_cnt = MAX_REF_CNT; in ih264e_set_default_params()
2359 ps_cfg->u4_max_reorder_cnt = MAX_REF_CNT; in ih264e_set_default_params()
2360 ps_cfg->u4_max_level = DEFAULT_MAX_LEVEL; in ih264e_set_default_params()
2361 ps_cfg->e_inp_color_fmt = IV_YUV_420SP_UV; in ih264e_set_default_params()
2362 ps_cfg->u4_enable_recon = DEFAULT_RECON_ENABLE; in ih264e_set_default_params()
2363 ps_cfg->e_recon_color_fmt = IV_YUV_420P; in ih264e_set_default_params()
2364 ps_cfg->u4_enc_speed_preset = IVE_FASTEST; in ih264e_set_default_params()
2365 ps_cfg->e_rc_mode = DEFAULT_RC; in ih264e_set_default_params()
2366 ps_cfg->u4_max_framerate = DEFAULT_MAX_FRAMERATE; in ih264e_set_default_params()
2367 ps_cfg->u4_max_bitrate = DEFAULT_MAX_BITRATE; in ih264e_set_default_params()
2368 ps_cfg->u4_num_bframes = DEFAULT_MAX_NUM_BFRAMES; in ih264e_set_default_params()
2369 ps_cfg->e_content_type = IV_PROGRESSIVE; in ih264e_set_default_params()
2370 ps_cfg->u4_max_srch_rng_x = DEFAULT_MAX_SRCH_RANGE_X; in ih264e_set_default_params()
2371 ps_cfg->u4_max_srch_rng_y = DEFAULT_MAX_SRCH_RANGE_Y; in ih264e_set_default_params()
2372 ps_cfg->e_slice_mode = IVE_SLICE_MODE_NONE; in ih264e_set_default_params()
2373 ps_cfg->u4_slice_param = DEFAULT_SLICE_PARAM; in ih264e_set_default_params()
2374 ps_cfg->e_arch = ih264e_default_arch(); in ih264e_set_default_params()
2375 ps_cfg->e_soc = SOC_GENERIC; in ih264e_set_default_params()
2376 ps_cfg->u4_disp_wd = MAX_WD; in ih264e_set_default_params()
2377 ps_cfg->u4_disp_ht = MAX_HT; in ih264e_set_default_params()
2378 ps_cfg->u4_wd = MAX_WD; in ih264e_set_default_params()
2379 ps_cfg->u4_ht = MAX_HT; in ih264e_set_default_params()
2380 ps_cfg->u4_src_frame_rate = DEFAULT_SRC_FRAME_RATE; in ih264e_set_default_params()
2381 ps_cfg->u4_tgt_frame_rate = DEFAULT_TGT_FRAME_RATE; in ih264e_set_default_params()
2382 ps_cfg->u4_target_bitrate = DEFAULT_BITRATE; in ih264e_set_default_params()
2383 ps_cfg->e_frame_type = IV_NA_FRAME; in ih264e_set_default_params()
2384 ps_cfg->e_enc_mode = IVE_ENC_MODE_DEFAULT; in ih264e_set_default_params()
2385 ps_cfg->u4_i_qp = DEFAULT_I_QP; in ih264e_set_default_params()
2386 ps_cfg->u4_p_qp = DEFAULT_P_QP; in ih264e_set_default_params()
2387 ps_cfg->u4_b_qp = DEFAULT_B_QP; in ih264e_set_default_params()
2388 ps_cfg->u4_i_qp_min = DEFAULT_QP_MIN; in ih264e_set_default_params()
2389 ps_cfg->u4_i_qp_max = DEFAULT_QP_MAX; in ih264e_set_default_params()
2390 ps_cfg->u4_p_qp_min = DEFAULT_QP_MIN; in ih264e_set_default_params()
2391 ps_cfg->u4_p_qp_max = DEFAULT_QP_MAX; in ih264e_set_default_params()
2392 ps_cfg->u4_b_qp_min = DEFAULT_QP_MIN; in ih264e_set_default_params()
2393 ps_cfg->u4_b_qp_max = DEFAULT_QP_MAX; in ih264e_set_default_params()
2394 ps_cfg->e_air_mode = DEFAULT_AIR_MODE; in ih264e_set_default_params()
2395 ps_cfg->u4_air_refresh_period = DEFAULT_AIR_REFRESH_PERIOD; in ih264e_set_default_params()
2396 ps_cfg->u4_vbv_buffer_delay = DEFAULT_VBV_DELAY; in ih264e_set_default_params()
2397 ps_cfg->u4_vbv_buf_size = DEFAULT_VBV_SIZE; in ih264e_set_default_params()
2398 ps_cfg->u4_num_cores = DEFAULT_NUM_CORES; in ih264e_set_default_params()
2399 ps_cfg->u4_me_speed_preset = DEFAULT_ME_SPEED_PRESET; in ih264e_set_default_params()
2400 ps_cfg->u4_enable_hpel = DEFAULT_HPEL; in ih264e_set_default_params()
2401 ps_cfg->u4_enable_qpel = DEFAULT_QPEL; in ih264e_set_default_params()
2402 ps_cfg->u4_enable_intra_4x4 = DEFAULT_I4; in ih264e_set_default_params()
2403 ps_cfg->u4_enable_intra_8x8 = DEFAULT_I8; in ih264e_set_default_params()
2404 ps_cfg->u4_enable_intra_16x16 = DEFAULT_I16; in ih264e_set_default_params()
2405 ps_cfg->u4_enable_fast_sad = DEFAULT_ENABLE_FAST_SAD; in ih264e_set_default_params()
2406 ps_cfg->u4_enable_satqd = DEFAULT_ENABLE_SATQD; in ih264e_set_default_params()
2407 ps_cfg->i4_min_sad = in ih264e_set_default_params()
2408 (ps_cfg->u4_enable_satqd == DEFAULT_ENABLE_SATQD) ? in ih264e_set_default_params()
2411 ps_cfg->u4_srch_rng_x = DEFAULT_SRCH_RNG_X; in ih264e_set_default_params()
2412 ps_cfg->u4_srch_rng_y = DEFAULT_SRCH_RNG_Y; in ih264e_set_default_params()
2413 ps_cfg->u4_i_frm_interval = DEFAULT_I_INTERVAL; in ih264e_set_default_params()
2414 ps_cfg->u4_idr_frm_interval = DEFAULT_IDR_INTERVAL; in ih264e_set_default_params()
2415 ps_cfg->u4_disable_deblock_level = DEFAULT_DISABLE_DEBLK_LEVEL; in ih264e_set_default_params()
2416 ps_cfg->e_profile = DEFAULT_PROFILE; in ih264e_set_default_params()
2417 ps_cfg->u4_timestamp_low = 0; in ih264e_set_default_params()
2418 ps_cfg->u4_timestamp_high = 0; in ih264e_set_default_params()
2419 ps_cfg->u4_is_valid = 1; in ih264e_set_default_params()
2420 ps_cfg->e_cmd = IVE_CMD_CT_NA; in ih264e_set_default_params()
2421 ps_cfg->i4_wd_mbs = ps_cfg->u4_max_wd >> 4; in ih264e_set_default_params()
2422 ps_cfg->i4_ht_mbs = ps_cfg->u4_max_ht >> 4; in ih264e_set_default_params()
2423 ps_cfg->u4_entropy_coding_mode = CAVLC; in ih264e_set_default_params()
2424 ps_cfg->u4_weighted_prediction = 0; in ih264e_set_default_params()
2425 ps_cfg->u4_constrained_intra_pred = 0; in ih264e_set_default_params()
2426 ps_cfg->u4_pic_info_type = 0; in ih264e_set_default_params()
2427 ps_cfg->u4_mb_info_type = 0; in ih264e_set_default_params()
2454 cfg_params_t *ps_cfg = &(ps_codec->s_cfg); in ih264e_init() local
2479 (ps_cfg->e_inp_color_fmt == IV_YUV_420SP_VU) ? in ih264e_init()
2564 WORD32 max_mb_rows = ps_cfg->i4_ht_mbs; in ih264e_init()
3601 cfg_params_t *ps_cfg; in ih264e_init_mem_rec() local
3646 ps_cfg = &ps_codec->s_cfg; in ih264e_init_mem_rec()
3647 ih264e_set_default_params(ps_cfg); in ih264e_init_mem_rec()
3650 ps_cfg->u4_max_wd = ALIGN16(ps_ip->s_ive_ip.u4_max_wd); in ih264e_init_mem_rec()
3651 ps_cfg->u4_max_ht = ALIGN16(ps_ip->s_ive_ip.u4_max_ht); in ih264e_init_mem_rec()
3652 ps_cfg->i4_wd_mbs = ps_cfg->u4_max_wd >> 4; in ih264e_init_mem_rec()
3653 ps_cfg->i4_ht_mbs = ps_cfg->u4_max_ht >> 4; in ih264e_init_mem_rec()
3654 ps_cfg->u4_max_ref_cnt = ps_ip->s_ive_ip.u4_max_ref_cnt; in ih264e_init_mem_rec()
3655 ps_cfg->u4_max_reorder_cnt = ps_ip->s_ive_ip.u4_max_reorder_cnt; in ih264e_init_mem_rec()
3656 ps_cfg->u4_max_level = ps_ip->s_ive_ip.u4_max_level; in ih264e_init_mem_rec()
3657 ps_cfg->e_inp_color_fmt = ps_ip->s_ive_ip.e_inp_color_fmt; in ih264e_init_mem_rec()
3658 ps_cfg->e_recon_color_fmt = ps_ip->s_ive_ip.e_recon_color_fmt; in ih264e_init_mem_rec()
3659 ps_cfg->u4_max_framerate = ps_ip->s_ive_ip.u4_max_framerate; in ih264e_init_mem_rec()
3660 ps_cfg->u4_max_bitrate = ps_ip->s_ive_ip.u4_max_bitrate; in ih264e_init_mem_rec()
3661 ps_cfg->u4_num_bframes = ps_ip->s_ive_ip.u4_num_bframes; in ih264e_init_mem_rec()
3662 ps_cfg->e_content_type = ps_ip->s_ive_ip.e_content_type; in ih264e_init_mem_rec()
3663 ps_cfg->u4_max_srch_rng_x = ps_ip->s_ive_ip.u4_max_srch_rng_x; in ih264e_init_mem_rec()
3664 ps_cfg->u4_max_srch_rng_y = ps_ip->s_ive_ip.u4_max_srch_rng_y; in ih264e_init_mem_rec()
3665 ps_cfg->e_slice_mode = ps_ip->s_ive_ip.e_slice_mode; in ih264e_init_mem_rec()
3666 ps_cfg->u4_slice_param = ps_ip->s_ive_ip.u4_slice_param; in ih264e_init_mem_rec()
3667 ps_cfg->e_arch = ps_ip->s_ive_ip.e_arch; in ih264e_init_mem_rec()
3668 ps_cfg->e_soc = ps_ip->s_ive_ip.e_soc; in ih264e_init_mem_rec()
3669 ps_cfg->u4_enable_recon = ps_ip->s_ive_ip.u4_enable_recon; in ih264e_init_mem_rec()
3670 ps_cfg->e_rc_mode = ps_ip->s_ive_ip.e_rc_mode; in ih264e_init_mem_rec()
3677 ps_cfg->u4_max_level = DEFAULT_MAX_LEVEL; in ih264e_init_mem_rec()
3683 ps_cfg->u4_max_ref_cnt = MAX_REF_CNT; in ih264e_init_mem_rec()
3689 ps_cfg->u4_max_reorder_cnt = MAX_REF_CNT; in ih264e_init_mem_rec()
4716 cfg_params_t *ps_cfg) in ih264e_set_dimensions() argument
4724 ps_cfg->u4_wd = ALIGN16(ps_ip->s_ive_ip.u4_wd); in ih264e_set_dimensions()
4725 ps_cfg->u4_ht = ALIGN16(ps_ip->s_ive_ip.u4_ht); in ih264e_set_dimensions()
4726 ps_cfg->i4_wd_mbs = ps_cfg->u4_wd >> 4; in ih264e_set_dimensions()
4727 ps_cfg->i4_ht_mbs = ps_cfg->u4_ht >> 4; in ih264e_set_dimensions()
4728 ps_cfg->u4_disp_wd = ps_ip->s_ive_ip.u4_wd; in ih264e_set_dimensions()
4729 ps_cfg->u4_disp_ht = ps_ip->s_ive_ip.u4_ht; in ih264e_set_dimensions()
4731 ps_cfg->u4_timestamp_high = ps_ip->s_ive_ip.u4_timestamp_high; in ih264e_set_dimensions()
4732 ps_cfg->u4_timestamp_low = ps_ip->s_ive_ip.u4_timestamp_low; in ih264e_set_dimensions()
4763 cfg_params_t *ps_cfg) in ih264e_set_frame_rate() argument
4771 ps_cfg->u4_src_frame_rate = ps_ip->s_ive_ip.u4_src_frame_rate; in ih264e_set_frame_rate()
4772 ps_cfg->u4_tgt_frame_rate = ps_ip->s_ive_ip.u4_tgt_frame_rate; in ih264e_set_frame_rate()
4774 ps_cfg->u4_timestamp_high = ps_ip->s_ive_ip.u4_timestamp_high; in ih264e_set_frame_rate()
4775 ps_cfg->u4_timestamp_low = ps_ip->s_ive_ip.u4_timestamp_low; in ih264e_set_frame_rate()
4806 cfg_params_t *ps_cfg) in ih264e_set_bit_rate() argument
4814 ps_cfg->u4_target_bitrate = ps_ip->s_ive_ip.u4_target_bitrate; in ih264e_set_bit_rate()
4816 ps_cfg->u4_timestamp_high = ps_ip->s_ive_ip.u4_timestamp_high; in ih264e_set_bit_rate()
4817 ps_cfg->u4_timestamp_low = ps_ip->s_ive_ip.u4_timestamp_low; in ih264e_set_bit_rate()
4848 cfg_params_t *ps_cfg) in ih264e_set_frame_type() argument
4856 ps_cfg->e_frame_type = ps_ip->s_ive_ip.e_frame_type; in ih264e_set_frame_type()
4858 ps_cfg->u4_timestamp_high = ps_ip->s_ive_ip.u4_timestamp_high; in ih264e_set_frame_type()
4859 ps_cfg->u4_timestamp_low = ps_ip->s_ive_ip.u4_timestamp_low; in ih264e_set_frame_type()
4890 cfg_params_t *ps_cfg) in ih264e_set_qp() argument
4898 ps_cfg->u4_i_qp_max = ps_set_qp_ip->s_ive_ip.u4_i_qp_max; in ih264e_set_qp()
4899 ps_cfg->u4_i_qp_min = ps_set_qp_ip->s_ive_ip.u4_i_qp_min; in ih264e_set_qp()
4900 ps_cfg->u4_i_qp = ps_set_qp_ip->s_ive_ip.u4_i_qp; in ih264e_set_qp()
4901 ps_cfg->u4_p_qp_max = ps_set_qp_ip->s_ive_ip.u4_p_qp_max; in ih264e_set_qp()
4902 ps_cfg->u4_p_qp_min = ps_set_qp_ip->s_ive_ip.u4_p_qp_min; in ih264e_set_qp()
4903 ps_cfg->u4_p_qp = ps_set_qp_ip->s_ive_ip.u4_p_qp; in ih264e_set_qp()
4904 ps_cfg->u4_b_qp_max = ps_set_qp_ip->s_ive_ip.u4_b_qp_max; in ih264e_set_qp()
4905 ps_cfg->u4_b_qp_min = ps_set_qp_ip->s_ive_ip.u4_b_qp_min; in ih264e_set_qp()
4906 ps_cfg->u4_b_qp = ps_set_qp_ip->s_ive_ip.u4_b_qp; in ih264e_set_qp()
4908 ps_cfg->u4_timestamp_high = ps_set_qp_ip->s_ive_ip.u4_timestamp_high; in ih264e_set_qp()
4909 ps_cfg->u4_timestamp_low = ps_set_qp_ip->s_ive_ip.u4_timestamp_low; in ih264e_set_qp()
4940 cfg_params_t *ps_cfg) in ih264e_set_enc_mode() argument
4948 ps_cfg->e_enc_mode = ps_ip->s_ive_ip.e_enc_mode; in ih264e_set_enc_mode()
4950 ps_cfg->u4_timestamp_high = ps_ip->s_ive_ip.u4_timestamp_high; in ih264e_set_enc_mode()
4951 ps_cfg->u4_timestamp_low = ps_ip->s_ive_ip.u4_timestamp_low; in ih264e_set_enc_mode()
4982 cfg_params_t *ps_cfg) in ih264e_set_vbv_params() argument
4990 ps_cfg->u4_vbv_buf_size = ps_ip->s_ive_ip.u4_vbv_buf_size; in ih264e_set_vbv_params()
4991 ps_cfg->u4_vbv_buffer_delay = ps_ip->s_ive_ip.u4_vbv_buffer_delay; in ih264e_set_vbv_params()
4993 ps_cfg->u4_timestamp_high = ps_ip->s_ive_ip.u4_timestamp_high; in ih264e_set_vbv_params()
4994 ps_cfg->u4_timestamp_low = ps_ip->s_ive_ip.u4_timestamp_low; in ih264e_set_vbv_params()
5025 cfg_params_t *ps_cfg) in ih264_set_air_params() argument
5033 ps_cfg->e_air_mode = ps_ip->s_ive_ip.e_air_mode; in ih264_set_air_params()
5034 ps_cfg->u4_air_refresh_period = ps_ip->s_ive_ip.u4_air_refresh_period; in ih264_set_air_params()
5036 ps_cfg->u4_timestamp_high = ps_ip->s_ive_ip.u4_timestamp_high; in ih264_set_air_params()
5037 ps_cfg->u4_timestamp_low = ps_ip->s_ive_ip.u4_timestamp_low; in ih264_set_air_params()
5068 cfg_params_t *ps_cfg) in ih264_set_me_params() argument
5076 ps_cfg->u4_enable_hpel = ps_ip->s_ive_ip.u4_enable_hpel; in ih264_set_me_params()
5077 ps_cfg->u4_enable_qpel = ps_ip->s_ive_ip.u4_enable_qpel; in ih264_set_me_params()
5078 ps_cfg->u4_enable_fast_sad = ps_ip->s_ive_ip.u4_enable_fast_sad; in ih264_set_me_params()
5079 ps_cfg->u4_enable_alt_ref = ps_ip->s_ive_ip.u4_enable_alt_ref; in ih264_set_me_params()
5080 ps_cfg->u4_srch_rng_x = ps_ip->s_ive_ip.u4_srch_rng_x; in ih264_set_me_params()
5081 ps_cfg->u4_srch_rng_y = ps_ip->s_ive_ip.u4_srch_rng_y; in ih264_set_me_params()
5082 ps_cfg->u4_me_speed_preset = ps_ip->s_ive_ip.u4_me_speed_preset; in ih264_set_me_params()
5084 ps_cfg->u4_timestamp_high = ps_ip->s_ive_ip.u4_timestamp_high; in ih264_set_me_params()
5085 ps_cfg->u4_timestamp_low = ps_ip->s_ive_ip.u4_timestamp_low; in ih264_set_me_params()
5116 cfg_params_t *ps_cfg) in ih264_set_ipe_params() argument
5124 ps_cfg->u4_enable_intra_4x4 = ps_ip->s_ive_ip.u4_enable_intra_4x4; in ih264_set_ipe_params()
5125 ps_cfg->u4_enc_speed_preset = ps_ip->s_ive_ip.u4_enc_speed_preset; in ih264_set_ipe_params()
5127 ps_cfg->u4_constrained_intra_pred = ps_ip->s_ive_ip.u4_constrained_intra_pred; in ih264_set_ipe_params()
5129 ps_cfg->u4_timestamp_high = ps_ip->s_ive_ip.u4_timestamp_high; in ih264_set_ipe_params()
5130 ps_cfg->u4_timestamp_low = ps_ip->s_ive_ip.u4_timestamp_low; in ih264_set_ipe_params()
5161 cfg_params_t *ps_cfg) in ih264_set_gop_params() argument
5169 ps_cfg->u4_i_frm_interval = ps_ip->s_ive_ip.u4_i_frm_interval; in ih264_set_gop_params()
5170 ps_cfg->u4_idr_frm_interval = ps_ip->s_ive_ip.u4_idr_frm_interval; in ih264_set_gop_params()
5172 ps_cfg->u4_timestamp_high = ps_ip->s_ive_ip.u4_timestamp_high; in ih264_set_gop_params()
5173 ps_cfg->u4_timestamp_low = ps_ip->s_ive_ip.u4_timestamp_low; in ih264_set_gop_params()
5204 cfg_params_t *ps_cfg) in ih264_set_profile_params() argument
5212 ps_cfg->e_profile = ps_ip->s_ive_ip.e_profile; in ih264_set_profile_params()
5214 ps_cfg->u4_entropy_coding_mode = ps_ip->s_ive_ip.u4_entropy_coding_mode; in ih264_set_profile_params()
5216 ps_cfg->u4_timestamp_high = ps_ip->s_ive_ip.u4_timestamp_high; in ih264_set_profile_params()
5217 ps_cfg->u4_timestamp_low = ps_ip->s_ive_ip.u4_timestamp_low; in ih264_set_profile_params()
5250 cfg_params_t *ps_cfg) in ih264_set_deblock_params() argument
5258 ps_cfg->u4_disable_deblock_level = ps_ip->s_ive_ip.u4_disable_deblock_level; in ih264_set_deblock_params()
5260 ps_cfg->u4_timestamp_high = ps_ip->s_ive_ip.u4_timestamp_high; in ih264_set_deblock_params()
5261 ps_cfg->u4_timestamp_low = ps_ip->s_ive_ip.u4_timestamp_low; in ih264_set_deblock_params()
5291 cfg_params_t *ps_cfg) in ih264e_set_vui_params() argument
5296 vui_t *ps_vui = &ps_cfg->s_vui; in ih264e_set_vui_params()
5375 cfg_params_t *ps_cfg) in ih264e_set_num_cores() argument
5383 ps_cfg->u4_num_cores = MIN(ps_ip->s_ive_ip.u4_num_cores, MAX_PROCESS_THREADS); in ih264e_set_num_cores()
5385 ps_cfg->u4_timestamp_high = ps_ip->s_ive_ip.u4_timestamp_high; in ih264e_set_num_cores()
5386 ps_cfg->u4_timestamp_low = ps_ip->s_ive_ip.u4_timestamp_low; in ih264e_set_num_cores()
5484 cfg_params_t *ps_cfg = NULL; in ih264e_ctl() local
5503 ps_cfg = &ps_codec->as_cfg[i]; in ih264e_ctl()
5509 if (NULL == ps_cfg) in ih264e_ctl()
5511 ps_cfg = &ps_codec->as_cfg[0]; in ih264e_ctl()
5514 ps_cfg->u4_is_valid = 1; in ih264e_ctl()
5516 ps_cfg->e_cmd = sub_cmd; in ih264e_ctl()
5521 ret = ih264e_set_dimensions(pv_api_ip, pv_api_op, ps_cfg); in ih264e_ctl()
5525 ret = ih264e_set_frame_rate(pv_api_ip, pv_api_op, ps_cfg); in ih264e_ctl()
5529 ret = ih264e_set_bit_rate(pv_api_ip, pv_api_op, ps_cfg); in ih264e_ctl()
5533 ret = ih264e_set_frame_type(pv_api_ip, pv_api_op, ps_cfg); in ih264e_ctl()
5537 ret = ih264e_set_qp(pv_api_ip, pv_api_op, ps_cfg); in ih264e_ctl()
5541 ret = ih264e_set_enc_mode(pv_api_ip, pv_api_op, ps_cfg); in ih264e_ctl()
5545 ret = ih264e_set_vbv_params(pv_api_ip, pv_api_op, ps_cfg); in ih264e_ctl()
5549 ret = ih264_set_air_params(pv_api_ip, pv_api_op, ps_cfg); in ih264e_ctl()
5553 ret = ih264_set_me_params(pv_api_ip, pv_api_op, ps_cfg); in ih264e_ctl()
5557 ret = ih264_set_ipe_params(pv_api_ip, pv_api_op, ps_cfg); in ih264e_ctl()
5561 ret = ih264_set_gop_params(pv_api_ip, pv_api_op, ps_cfg); in ih264e_ctl()
5565 ret = ih264_set_profile_params(pv_api_ip, pv_api_op, ps_cfg); in ih264e_ctl()
5569 ret = ih264_set_deblock_params(pv_api_ip, pv_api_op, ps_cfg); in ih264e_ctl()
5573 ret = ih264e_set_vui_params(pv_api_ip, pv_api_op, ps_cfg); in ih264e_ctl()
5593 ret = ih264e_set_default_params(ps_cfg); in ih264e_ctl()
5650 ret = ih264e_set_num_cores(pv_api_ip, pv_api_op, ps_cfg); in ih264e_ctl()