| /rockchip-linux_mpp/mpp/vproc/vdpp/test/ |
| H A D | vdpp_test.c | 138 static MPP_RET check_input_cmd(VdppTestCfg *cfg) in check_input_cmd() argument 142 if (cfg->fp_src == NULL) { in check_input_cmd() 143 mpp_err("failed to open input file %s\n", cfg->src_url); in check_input_cmd() 221 void vdpp_test(VdppTestCfg *cfg) in vdpp_test() argument 224 size_t srcfrmsize = get_src_frm_size(cfg->src_format, cfg->src_width_vir, cfg->src_height_vir); in vdpp_test() 225 size_t dstfrmsize = get_dst_frm_size(cfg->dst_fmt, cfg->dst_width_vir, cfg->dst_height_vir); in vdpp_test() 226 size_t dstfrmsize_c = cfg->dst_c_width_vir * cfg->dst_c_height_vir * 3; in vdpp_test() 245 RK_U32 yuv_out_diff = (cfg->yuv_out_diff && is_vdpp2); in vdpp_test() 271 cfg->src_width, cfg->src_height, cfg->src_width_vir, cfg->src_height_vir, srcfrmsize); in vdpp_test() 273 cfg->dst_width, cfg->dst_height, cfg->dst_width_vir, cfg->dst_height_vir, dstfrmsize); in vdpp_test() [all …]
|
| /rockchip-linux_mpp/mpp/vproc/iep/test/ |
| H A D | iep_test.c | 57 IepTestCfg *cfg; member 78 static void parse_cfg(IepTestCfg *cfg) in parse_cfg() argument 80 dictionary *ini = cfg->ini; in parse_cfg() 82 cfg->dei_cfg = mpp_calloc(IepCmdParamDeiCfg, 1); in parse_cfg() 84 mpp_assert(cfg->dei_cfg); in parse_cfg() 85 cfg->dei_cfg->dei_high_freq_en = in parse_cfg() 87 cfg->dei_cfg->dei_mode = in parse_cfg() 89 cfg->dei_cfg->dei_high_freq_fct = in parse_cfg() 91 cfg->dei_cfg->dei_ei_mode = in parse_cfg() 93 cfg->dei_cfg->dei_ei_smooth = in parse_cfg() [all …]
|
| /rockchip-linux_mpp/mpp/base/ |
| H A D | mpp_sys_cfg_st.c | 20 MppSysCfg cfg; in mpp_sys_cfg_st_get_h_stride() local 22 ret = mpp_sys_cfg_get(&cfg); in mpp_sys_cfg_st_get_h_stride() 29 ret = mpp_sys_cfg_set_u32(cfg, "dec_buf_chk:enable", 1); in mpp_sys_cfg_st_get_h_stride() 30 ret = mpp_sys_cfg_set_u32(cfg, "dec_buf_chk:type", h_stride_cfg->type); in mpp_sys_cfg_st_get_h_stride() 31 ret = mpp_sys_cfg_set_u32(cfg, "dec_buf_chk:fmt_fbc", h_stride_cfg->fmt_fbc); in mpp_sys_cfg_st_get_h_stride() 32 ret = mpp_sys_cfg_set_u32(cfg, "dec_buf_chk:width", h_stride_cfg->width); in mpp_sys_cfg_st_get_h_stride() 33 ret = mpp_sys_cfg_set_u32(cfg, "dec_buf_chk:h_stride_by_byte", h_stride_cfg->h_stride_by_byte); in mpp_sys_cfg_st_get_h_stride() 36 mpp_sys_cfg_ioctl(cfg); in mpp_sys_cfg_st_get_h_stride() 38 ret = mpp_sys_cfg_get_u32(cfg, "dec_buf_chk:h_stride_by_pixel", in mpp_sys_cfg_st_get_h_stride() 41 ret = mpp_sys_cfg_put(cfg); in mpp_sys_cfg_st_get_h_stride() [all …]
|
| H A D | mpp_cfg.c | 22 #define CFG_TO_PTR(info, cfg) ((char *)cfg + info->data_offset) argument 23 #define CFG_TO_s32_PTR(info, cfg) ((RK_S32 *)CFG_TO_PTR(info, cfg)) argument 24 #define CFG_TO_u32_PTR(info, cfg) ((RK_U32 *)CFG_TO_PTR(info, cfg)) argument 25 #define CFG_TO_s64_PTR(info, cfg) ((RK_S64 *)CFG_TO_PTR(info, cfg)) argument 26 #define CFG_TO_u64_PTR(info, cfg) ((RK_U64 *)CFG_TO_PTR(info, cfg)) argument 27 #define CFG_TO_ptr_PTR(info, cfg) ((void **)CFG_TO_PTR(info, cfg)) argument 32 #define CFG_TO_FLAG_PTR(info, cfg) ((rk_ul *)((rk_u8 *)cfg + ELEM_FLAG_U32_POS(info->flag_offs… argument 34 #define CFG_SET_FLAG(info, cfg) \ argument 35 *CFG_TO_FLAG_PTR(info, cfg) |= 1ul << (ELEM_FLAG_BIT_POS(info->flag_offset)) 63 static MPP_RET mpp_cfg_set(MppCfgInfo *info, void *cfg, void *val) in mpp_cfg_set() argument [all …]
|
| H A D | mpp_sys_cfg.c | 182 MPP_RET mpp_sys_cfg_get(MppSysCfg *cfg) in mpp_sys_cfg_get() argument 186 if (!cfg) { in mpp_sys_cfg_get() 191 *cfg = NULL; in mpp_sys_cfg_get() 198 *cfg = srv_get_cfg(srv); in mpp_sys_cfg_get() 200 return *cfg ? MPP_OK : MPP_NOK; in mpp_sys_cfg_get() 203 MPP_RET mpp_sys_cfg_put(MppSysCfg cfg) in mpp_sys_cfg_put() argument 210 return srv_put_cfg(srv, (MppSysCfgSet *)cfg); in mpp_sys_cfg_put() 299 MPP_RET mpp_sys_dec_buf_chk_proc(MppSysDecBufChkCfg *cfg) in mpp_sys_dec_buf_chk_proc() argument 301 MppCodingType type = cfg->type; in mpp_sys_dec_buf_chk_proc() 302 MppFrameFormat fmt = (MppFrameFormat)(((RK_U32)cfg->fmt_codec & MPP_FRAME_FMT_MASK) | in mpp_sys_dec_buf_chk_proc() [all …]
|
| /rockchip-linux_mpp/mpp/vproc/iep2/test/ |
| H A D | iep2_test.c | 119 static MPP_RET check_input_cmd(iep2_test_cfg *cfg) in check_input_cmd() argument 123 if (cfg->w < 16 || cfg->w > 1920) { in check_input_cmd() 124 mpp_err("invalid width %d\n", cfg->w); in check_input_cmd() 128 if (cfg->h < 4 || cfg->h > 1088) { in check_input_cmd() 129 mpp_err("invalid height %d\n", cfg->h); in check_input_cmd() 134 cfg->src_fmt, cfg->src_swa, in check_input_cmd() 135 cfg->dst_fmt, cfg->dst_swa); in check_input_cmd() 137 if (cfg->src_fmt < IEP2_FMT_YUV422 || in check_input_cmd() 138 cfg->src_fmt > IEP2_FMT_YUV420 || in check_input_cmd() 139 cfg->src_swa < IEP2_YUV_SWAP_SP_UV || in check_input_cmd() [all …]
|
| /rockchip-linux_mpp/mpp/inc/ |
| H A D | mpp_cfg.h | 23 MPP_RET mpp_cfg_set_s32(MppCfgInfo *info, void *cfg, RK_S32 val); 24 MPP_RET mpp_cfg_get_s32(MppCfgInfo *info, void *cfg, RK_S32 *val); 25 MPP_RET mpp_cfg_set_u32(MppCfgInfo *info, void *cfg, RK_U32 val); 26 MPP_RET mpp_cfg_get_u32(MppCfgInfo *info, void *cfg, RK_U32 *val); 27 MPP_RET mpp_cfg_set_s64(MppCfgInfo *info, void *cfg, RK_S64 val); 28 MPP_RET mpp_cfg_get_s64(MppCfgInfo *info, void *cfg, RK_S64 *val); 29 MPP_RET mpp_cfg_set_u64(MppCfgInfo *info, void *cfg, RK_U64 val); 30 MPP_RET mpp_cfg_get_u64(MppCfgInfo *info, void *cfg, RK_U64 *val); 31 MPP_RET mpp_cfg_set_st(MppCfgInfo *info, void *cfg, void *val); 32 MPP_RET mpp_cfg_get_st(MppCfgInfo *info, void *cfg, void *val); [all …]
|
| /rockchip-linux_mpp/mpp/base/test/ |
| H A D | mpp_sys_cfg_test.c | 19 MppSysCfg cfg; in main() local 38 ret = mpp_sys_cfg_get(&cfg); in main() 45 ret = mpp_sys_cfg_set_u32(cfg, "dec_buf_chk:type", 1); in main() 46 ret = mpp_sys_cfg_set_u32(cfg, "dec_buf_chk:enable", 1); in main() 47 ret = mpp_sys_cfg_set_u32(cfg, "dec_buf_chk:type", type); in main() 48 ret = mpp_sys_cfg_set_u32(cfg, "dec_buf_chk:fmt_codec", MPP_FMT_YUV420SP); in main() 49 ret = mpp_sys_cfg_set_u32(cfg, "dec_buf_chk:fmt_fbc", MPP_FRAME_FBC_AFBC_V1); in main() 50 ret = mpp_sys_cfg_set_u32(cfg, "dec_buf_chk:width", width); in main() 51 ret = mpp_sys_cfg_set_u32(cfg, "dec_buf_chk:height", height); in main() 52 ret = mpp_sys_cfg_set_u32(cfg, "dec_buf_chk:h_stride_by_byte", 0); in main() [all …]
|
| H A D | mpp_enc_cfg_test.c | 19 MppEncCfg cfg; in main() local 27 ret = mpp_enc_cfg_init(&cfg); in main() 49 MppEncCfgSet *impl = (MppEncCfgSet *)kmpp_obj_to_entry(cfg); in main() 55 ret = mpp_enc_cfg_set_u32(cfg, "rc:mode", rc_mode); in main() 56 ret = mpp_enc_cfg_set_s32(cfg, "rc:mode", rc_mode); in main() 57 ret = mpp_enc_cfg_set_s32(cfg, "rc:bps", 400000); in main() 58 ret = mpp_enc_cfg_set_s32(cfg, "rc:bps_target", bps_target); in main() 70 ret = mpp_enc_cfg_get_s32(cfg, "rc:mode", &rc_mode); in main() 71 ret = mpp_enc_cfg_get_s32(cfg, "rc:bps_target", &bps_target); in main() 80 ret = mpp_enc_cfg_set_st(cfg, "hw:aq_step_i", aq_thrd_i); in main() [all …]
|
| /rockchip-linux_mpp/test/ |
| H A D | mpp_parse_cfg.c | 70 static char *read_cfg_line(struct cfg_file *cfg) in read_cfg_line() argument 75 while (!cfg->cache_on) { in read_cfg_line() 79 ch = fgetc(cfg->file); in read_cfg_line() 82 else if (ch == EOF || feof(cfg->file) || ch == '\n') in read_cfg_line() 85 cfg->cache[i++] = ch; in read_cfg_line() 87 cfg->cache[i] = '\0'; in read_cfg_line() 90 if (cfg->cache[0] != '#') in read_cfg_line() 94 cfg->cache_on = 1; in read_cfg_line() 95 return string_trim(cfg->cache); in read_cfg_line() 98 static inline void invalid_cfg_cache(struct cfg_file *cfg) in invalid_cfg_cache() argument [all …]
|
| H A D | mpi_enc_test.c | 81 MppEncCfg cfg; member 421 MppEncCfg cfg = p->cfg; in test_mpp_enc_cfg_setup() local 443 mpp_enc_cfg_set_s32(cfg, "codec:type", p->type); in test_mpp_enc_cfg_setup() 446 mpp_enc_cfg_set_s32(cfg, "prep:width", p->width); in test_mpp_enc_cfg_setup() 447 mpp_enc_cfg_set_s32(cfg, "prep:height", p->height); in test_mpp_enc_cfg_setup() 448 mpp_enc_cfg_set_s32(cfg, "prep:hor_stride", p->hor_stride); in test_mpp_enc_cfg_setup() 449 mpp_enc_cfg_set_s32(cfg, "prep:ver_stride", p->ver_stride); in test_mpp_enc_cfg_setup() 450 mpp_enc_cfg_set_s32(cfg, "prep:format", p->fmt); in test_mpp_enc_cfg_setup() 451 mpp_enc_cfg_set_s32(cfg, "prep:range", MPP_FRAME_RANGE_JPEG); in test_mpp_enc_cfg_setup() 457 mpp_enc_cfg_set_s32(cfg, "prep:mirroring", mirroring); in test_mpp_enc_cfg_setup() [all …]
|
| /rockchip-linux_mpp/mpp/hal/vpu/common/ |
| H A D | vepu_common.c | 127 MPP_RET get_vepu_fmt(VepuFormatCfg *cfg, MppFrameFormat format) in get_vepu_fmt() argument 143 memset(cfg, 0, sizeof(*cfg)); in get_vepu_fmt() 144 cfg->format = VEPU_FMT_BUTT; in get_vepu_fmt() 148 memcpy(cfg, fmt_cfg, sizeof(*cfg)); in get_vepu_fmt() 151 cfg->format = VEPU_FMT_BUTT; in get_vepu_fmt() 187 RK_U32 get_vepu_pixel_stride(VepuStrideCfg *cfg, RK_U32 width, RK_U32 stride, MppFrameFormat fmt) in get_vepu_pixel_stride() argument 192 if (cfg->fmt != fmt) { in get_vepu_pixel_stride() 193 memset(cfg, 0, sizeof(VepuStrideCfg)); in get_vepu_pixel_stride() 194 cfg->fmt = fmt; in get_vepu_pixel_stride() 197 if (cfg->stride != stride || cfg->width != width) { in get_vepu_pixel_stride() [all …]
|
| /rockchip-linux_mpp/inc/ |
| H A D | rk_venc_cfg.h | 18 MPP_RET mpp_enc_cfg_init(MppEncCfg *cfg); 20 MPP_RET mpp_enc_cfg_init_k(MppEncCfg *cfg); 22 MPP_RET mpp_enc_cfg_deinit(MppEncCfg cfg); 24 MPP_RET mpp_enc_cfg_set_s32(MppEncCfg cfg, const char *name, RK_S32 val); 25 MPP_RET mpp_enc_cfg_set_u32(MppEncCfg cfg, const char *name, RK_U32 val); 26 MPP_RET mpp_enc_cfg_set_s64(MppEncCfg cfg, const char *name, RK_S64 val); 27 MPP_RET mpp_enc_cfg_set_u64(MppEncCfg cfg, const char *name, RK_U64 val); 28 MPP_RET mpp_enc_cfg_set_ptr(MppEncCfg cfg, const char *name, void *val); 29 MPP_RET mpp_enc_cfg_set_st(MppEncCfg cfg, const char *name, void *val); 31 MPP_RET mpp_enc_cfg_get_s32(MppEncCfg cfg, const char *name, RK_S32 *val); [all …]
|
| H A D | rk_venc_kcfg.h | 28 MPP_RET mpp_venc_kcfg_init(MppVencKcfg *cfg, MppVencKcfgType type); 29 MPP_RET mpp_venc_kcfg_init_by_name(MppVencKcfg *cfg, const char *name); 30 MPP_RET mpp_venc_kcfg_deinit(MppVencKcfg cfg); 32 MPP_RET mpp_venc_kcfg_set_s32(MppVencKcfg cfg, const char *name, RK_S32 val); 33 MPP_RET mpp_venc_kcfg_set_u32(MppVencKcfg cfg, const char *name, RK_U32 val); 34 MPP_RET mpp_venc_kcfg_set_s64(MppVencKcfg cfg, const char *name, RK_S64 val); 35 MPP_RET mpp_venc_kcfg_set_u64(MppVencKcfg cfg, const char *name, RK_U64 val); 36 MPP_RET mpp_venc_kcfg_set_ptr(MppVencKcfg cfg, const char *name, void *val); 37 MPP_RET mpp_venc_kcfg_set_st(MppVencKcfg cfg, const char *name, void *val); 39 MPP_RET mpp_venc_kcfg_get_s32(MppVencKcfg cfg, const char *name, RK_S32 *val); [all …]
|
| H A D | rk_vdec_kcfg.h | 27 MPP_RET mpp_vdec_kcfg_init(MppVdecKcfg *cfg, MppVdecKcfgType type); 28 MPP_RET mpp_vdec_kcfg_init_by_name(MppVdecKcfg *cfg, const char *name); 29 MPP_RET mpp_vdec_kcfg_deinit(MppVdecKcfg cfg); 31 MPP_RET mpp_vdec_kcfg_set_s32(MppVdecKcfg cfg, const char *name, RK_S32 val); 32 MPP_RET mpp_vdec_kcfg_set_u32(MppVdecKcfg cfg, const char *name, RK_U32 val); 33 MPP_RET mpp_vdec_kcfg_set_s64(MppVdecKcfg cfg, const char *name, RK_S64 val); 34 MPP_RET mpp_vdec_kcfg_set_u64(MppVdecKcfg cfg, const char *name, RK_U64 val); 35 MPP_RET mpp_vdec_kcfg_set_ptr(MppVdecKcfg cfg, const char *name, void *val); 36 MPP_RET mpp_vdec_kcfg_set_st(MppVdecKcfg cfg, const char *name, void *val); 38 MPP_RET mpp_vdec_kcfg_get_s32(MppVdecKcfg cfg, const char *name, RK_S32 *val); [all …]
|
| H A D | rk_mpp_cfg.h | 25 MPP_RET mpp_sys_cfg_get(MppSysCfg *cfg); 26 MPP_RET mpp_sys_cfg_put(MppSysCfg cfg); 27 MPP_RET mpp_sys_cfg_ioctl(MppSysCfg cfg); 29 MPP_RET mpp_sys_cfg_set_s32(MppSysCfg cfg, const char *name, RK_S32 val); 30 MPP_RET mpp_sys_cfg_set_u32(MppSysCfg cfg, const char *name, RK_U32 val); 31 MPP_RET mpp_sys_cfg_set_s64(MppSysCfg cfg, const char *name, RK_S64 val); 32 MPP_RET mpp_sys_cfg_set_u64(MppSysCfg cfg, const char *name, RK_U64 val); 33 MPP_RET mpp_sys_cfg_set_ptr(MppSysCfg cfg, const char *name, void *val); 35 MPP_RET mpp_sys_cfg_get_s32(MppSysCfg cfg, const char *name, RK_S32 *val); 36 MPP_RET mpp_sys_cfg_get_u32(MppSysCfg cfg, const char *name, RK_U32 *val); [all …]
|
| H A D | rk_vdec_cfg.h | 29 MPP_RET mpp_dec_cfg_init(MppDecCfg *cfg); 30 MPP_RET mpp_dec_cfg_deinit(MppDecCfg cfg); 32 MPP_RET mpp_dec_cfg_set_s32(MppDecCfg cfg, const char *name, RK_S32 val); 33 MPP_RET mpp_dec_cfg_set_u32(MppDecCfg cfg, const char *name, RK_U32 val); 34 MPP_RET mpp_dec_cfg_set_s64(MppDecCfg cfg, const char *name, RK_S64 val); 35 MPP_RET mpp_dec_cfg_set_u64(MppDecCfg cfg, const char *name, RK_U64 val); 36 MPP_RET mpp_dec_cfg_set_ptr(MppDecCfg cfg, const char *name, void *val); 38 MPP_RET mpp_dec_cfg_get_s32(MppDecCfg cfg, const char *name, RK_S32 *val); 39 MPP_RET mpp_dec_cfg_get_u32(MppDecCfg cfg, const char *name, RK_U32 *val); 40 MPP_RET mpp_dec_cfg_get_s64(MppDecCfg cfg, const char *name, RK_S64 *val); [all …]
|
| /rockchip-linux_mpp/kmpp/test/ |
| H A D | kmpp_venc_test.c | 17 MppVencKcfg cfg = NULL; in main() local 30 mpp_venc_kcfg_init(&cfg, MPP_VENC_KCFG_TYPE_INIT); in main() 31 mpp_venc_kcfg_set_u32(cfg, "type", MPP_CTX_ENC); in main() 32 mpp_venc_kcfg_set_u32(cfg, "coding", MPP_VIDEO_CodingAVC); in main() 33 mpp_venc_kcfg_set_s32(cfg, "chan_id", 0); in main() 34 mpp_venc_kcfg_set_u32(cfg, "buf_size", 4096); in main() 35 mpp_venc_kcfg_set_u32(cfg, "max_width", 1920); in main() 36 mpp_venc_kcfg_set_u32(cfg, "max_height", 1080); in main() 37 mpp_venc_kcfg_set_u32(cfg, "max_lt_cnt", 0); in main() 38 mpp_venc_kcfg_set_s32(cfg, "input_timeout", -1); in main() [all …]
|
| /rockchip-linux_mpp/kmpp/base/ |
| H A D | kmpp_vdec_cfg.c | 66 MPP_RET mpp_vdec_kcfg_init(MppVdecKcfg *cfg, MppVdecKcfgType type) in MPP_SINGLETON() 70 if (!cfg) { in MPP_SINGLETON() 85 *cfg = obj; in MPP_SINGLETON() 90 MPP_RET mpp_vdec_kcfg_init_by_name(MppVdecKcfg *cfg, const char *name) in mpp_vdec_kcfg_init_by_name() argument 96 if (!cfg) { in mpp_vdec_kcfg_init_by_name() 117 *cfg = obj; in mpp_vdec_kcfg_init_by_name() 122 MPP_RET mpp_vdec_kcfg_deinit(MppVdecKcfg cfg) in mpp_vdec_kcfg_deinit() argument 124 KmppObj obj = cfg; in mpp_vdec_kcfg_deinit() 126 if (!cfg) { in mpp_vdec_kcfg_deinit() 135 MPP_RET mpp_vdec_kcfg_set_##cfg_type(MppVdecKcfg cfg, const char *name, set_type val) \ [all …]
|
| H A D | kmpp_venc_cfg.c | 67 MPP_RET mpp_venc_kcfg_init(MppVencKcfg *cfg, MppVencKcfgType type) in MPP_SINGLETON() 71 if (!cfg) { in MPP_SINGLETON() 86 *cfg = obj; in MPP_SINGLETON() 91 MPP_RET mpp_venc_kcfg_init_by_name(MppVencKcfg *cfg, const char *name) in mpp_venc_kcfg_init_by_name() argument 97 if (!cfg) { in mpp_venc_kcfg_init_by_name() 118 *cfg = obj; in mpp_venc_kcfg_init_by_name() 123 MPP_RET mpp_venc_kcfg_deinit(MppVencKcfg cfg) in mpp_venc_kcfg_deinit() argument 125 KmppObj obj = cfg; in mpp_venc_kcfg_deinit() 127 if (!cfg) { in mpp_venc_kcfg_deinit() 136 MPP_RET mpp_venc_kcfg_set_##cfg_type(MppVencKcfg cfg, const char *name, set_type val) \ [all …]
|
| /rockchip-linux_mpp/mpp/codec/ |
| H A D | mpp_enc_impl.c | 115 hal_info_from_enc_cfg(enc->hal_info, enc->cfg); in update_enc_hal_info() 127 MppDevInfoCfg cfg; in update_hal_info_fps() local 132 cfg.type = ENC_INFO_FPS_CALC; in update_hal_info_fps() 133 cfg.flag = CODEC_INFO_FLAG_STRING; in update_hal_info_fps() 134 cfg.data = fps; in update_hal_info_fps() 136 mpp_dev_ioctl(enc->dev, MPP_DEV_SET_INFO, &cfg); in update_hal_info_fps() 243 MppEncCfgSet *cfg = enc->cfg; in check_low_delay_part_mode() local 247 if (!(cfg->base.low_delay)) in check_low_delay_part_mode() 250 if (!cfg->split.split_mode) in check_low_delay_part_mode() 261 MppEncCfgSet *cfg = enc->cfg; in check_low_delay_output() local [all …]
|
| /rockchip-linux_mpp/utils/ |
| H A D | osd3_test.c | 80 RK_U32 fmt_idx, MppEncOSDRegion3 *cfg) in translate_argb() argument 92 cfg->fmt = MPP_FMT_ARGB8888; in translate_argb() 93 cfg->alpha_cfg.alpha_swap = 1; in translate_argb() 94 cfg->rbuv_swap = 1; in translate_argb() 95 cfg->stride = width * 4; in translate_argb() 98 cfg->fmt = MPP_FMT_RGBA8888; in translate_argb() 99 cfg->alpha_cfg.alpha_swap = 1; in translate_argb() 100 cfg->rbuv_swap = 0; in translate_argb() 101 cfg->stride = width * 4; in translate_argb() 111 cfg->fmt = MPP_FMT_ARGB8888; in translate_argb() [all …]
|
| /rockchip-linux_mpp/mpp/hal/rkdec/avs2d/ |
| H A D | hal_avs2d_api.c | 72 MPP_RET hal_avs2d_init(void *hal, MppHalCfg *cfg) in hal_avs2d_init() argument 101 ret = mpp_dev_init(&cfg->dev, VPU_CLIENT_RKVDEC); in hal_avs2d_init() 106 cfg->hw_info = mpp_get_dec_hw_info_by_client_type(VPU_CLIENT_RKVDEC); in hal_avs2d_init() 107 p_hal->hw_info = cfg->hw_info; in hal_avs2d_init() 108 cfg->support_fast_mode = 1; in hal_avs2d_init() 110 p_hal->cfg = cfg->cfg; in hal_avs2d_init() 111 p_hal->dev = cfg->dev; in hal_avs2d_init() 112 p_hal->dec_cb = cfg->dec_cb; in hal_avs2d_init() 113 p_hal->frame_slots = cfg->frame_slots; in hal_avs2d_init() 114 p_hal->packet_slots = cfg->packet_slots; in hal_avs2d_init() [all …]
|
| /rockchip-linux_mpp/mpp/codec/enc/h264/ |
| H A D | h264e_api_v2.c | 50 MppEncCfgSet *cfg; member 92 static void init_h264e_cfg_set(MppEncCfgSet *cfg, MppClientType type) in init_h264e_cfg_set() argument 94 MppEncRcCfg *rc_cfg = &cfg->rc; in init_h264e_cfg_set() 95 MppEncPrepCfg *prep = &cfg->prep; in init_h264e_cfg_set() 96 MppEncH264Cfg *h264 = &cfg->h264; in init_h264e_cfg_set() 108 cfg->tune.scene_mode = MPP_ENC_SCENE_MODE_DEFAULT; in init_h264e_cfg_set() 109 cfg->tune.deblur_en = 0; in init_h264e_cfg_set() 110 cfg->tune.vmaf_opt = 0; in init_h264e_cfg_set() 197 cfg->tune.lambda_idx_i = 6; in init_h264e_cfg_set() 198 cfg->tune.lambda_idx_p = 6; in init_h264e_cfg_set() [all …]
|
| /rockchip-linux_mpp/mpp/codec/enc/h265/ |
| H A D | h265e_api.c | 44 MppEncRcCfg *rc_cfg = &ctrlCfg->cfg->rc; in h265e_init() 45 MppEncPrepCfg *prep = &ctrlCfg->cfg->prep; in h265e_init() 58 p->cfg = ctrlCfg->cfg; in h265e_init() 66 h265 = &p->cfg->h265; in h265e_init() 99 p->cfg->tune.scene_mode = MPP_ENC_SCENE_MODE_DEFAULT; in h265e_init() 100 p->cfg->tune.lambda_idx_i = 2; in h265e_init() 101 p->cfg->tune.lambda_idx_p = 4; in h265e_init() 102 p->cfg->tune.anti_flicker_str = 2; in h265e_init() 103 p->cfg->tune.atr_str_i = 3; in h265e_init() 104 p->cfg->tune.atr_str_p = 0; in h265e_init() [all …]
|