Lines Matching refs:cfg

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()
303 (cfg->fmt_fbc & MPP_FRAME_FBC_MASK) | in mpp_sys_dec_buf_chk_proc()
304 (cfg->fmt_hdr & MPP_FRAME_HDR_MASK)); in mpp_sys_dec_buf_chk_proc()
305 MppFrameFormat fmt_raw = cfg->fmt_codec; in mpp_sys_dec_buf_chk_proc()
321 if (cfg->h_stride_by_byte) in mpp_sys_dec_buf_chk_proc()
322 aligned_pixel = cfg->h_stride_by_byte * 8 / depth; in mpp_sys_dec_buf_chk_proc()
323 if (cfg->v_stride) in mpp_sys_dec_buf_chk_proc()
324 aligned_height = cfg->v_stride; in mpp_sys_dec_buf_chk_proc()
326 sys_cfg_dbg_dec_buf("org pixel wxh: [%d %d]\n", cfg->width, cfg->height); in mpp_sys_dec_buf_chk_proc()
328 cfg->h_stride_by_byte, cfg->v_stride); in mpp_sys_dec_buf_chk_proc()
334 aligned_pixel = MPP_ALIGN(cfg->width, 64); in mpp_sys_dec_buf_chk_proc()
335 aligned_height = MPP_ALIGN(aligned_height ? aligned_height : cfg->height, 16); in mpp_sys_dec_buf_chk_proc()
341 aligned_pixel = MPP_ALIGN(cfg->width, 64); in mpp_sys_dec_buf_chk_proc()
342 aligned_height = MPP_ALIGN(aligned_height ? aligned_height : cfg->height, 16); in mpp_sys_dec_buf_chk_proc()
345 aligned_pixel = MPP_ALIGN(cfg->width, 64); in mpp_sys_dec_buf_chk_proc()
346 aligned_height = MPP_ALIGN(aligned_height ? aligned_height : cfg->height, 64); in mpp_sys_dec_buf_chk_proc()
349 aligned_pixel = MPP_ALIGN(cfg->width, 16); in mpp_sys_dec_buf_chk_proc()
350 aligned_height = MPP_ALIGN(aligned_height ? aligned_height : cfg->height, 16); in mpp_sys_dec_buf_chk_proc()
384 cfg->h_stride_by_byte = aligned_byte; in mpp_sys_dec_buf_chk_proc()
385 cfg->h_stride_by_pixel = aligned_pixel; in mpp_sys_dec_buf_chk_proc()
386 cfg->v_stride = aligned_height; in mpp_sys_dec_buf_chk_proc()
417 cfg->size_total = size_total; in mpp_sys_dec_buf_chk_proc()
423 aligned_pixel = cfg->width; in mpp_sys_dec_buf_chk_proc()
426 aligned_pixel = MPP_ALIGN(cfg->width, 64); in mpp_sys_dec_buf_chk_proc()
427 aligned_height = MPP_ALIGN(cfg->height, 8); in mpp_sys_dec_buf_chk_proc()
435 aligned_pixel = MPP_ALIGN(cfg->width, 16); in mpp_sys_dec_buf_chk_proc()
436 aligned_height = MPP_ALIGN(cfg->height, 16); in mpp_sys_dec_buf_chk_proc()
440 aligned_height = MPP_ALIGN(cfg->height, 64); in mpp_sys_dec_buf_chk_proc()
442 aligned_height = MPP_ALIGN(cfg->height, 16); in mpp_sys_dec_buf_chk_proc()
444 aligned_height = MPP_ALIGN(cfg->height, 8); in mpp_sys_dec_buf_chk_proc()
447 aligned_height = MPP_ALIGN(cfg->height, 8); in mpp_sys_dec_buf_chk_proc()
453 aligned_height = MPP_ALIGN(cfg->height, 16); in mpp_sys_dec_buf_chk_proc()
456 aligned_pixel = MPP_ALIGN(cfg->width, 64); in mpp_sys_dec_buf_chk_proc()
457 aligned_height = MPP_ALIGN(cfg->height, 8); in mpp_sys_dec_buf_chk_proc()
460 aligned_height = MPP_ALIGN(cfg->height, 8); in mpp_sys_dec_buf_chk_proc()
465 aligned_pixel_byte = cfg->h_stride_by_byte ? cfg->h_stride_by_byte : in mpp_sys_dec_buf_chk_proc()
467 aligned_height = cfg->v_stride ? cfg->v_stride : aligned_height; in mpp_sys_dec_buf_chk_proc()
546 cfg->h_stride_by_byte = aligned_byte; in mpp_sys_dec_buf_chk_proc()
547 cfg->h_stride_by_pixel = aligned_pixel; in mpp_sys_dec_buf_chk_proc()
548 cfg->v_stride = aligned_height; in mpp_sys_dec_buf_chk_proc()
607 cfg->size_total = size_total; in mpp_sys_dec_buf_chk_proc()
613 MPP_RET mpp_sys_cfg_ioctl(MppSysCfg cfg) in mpp_sys_cfg_ioctl() argument
615 MppSysCfgSet *p = (MppSysCfgSet *)cfg; in mpp_sys_cfg_ioctl()
617 if (!cfg) { in mpp_sys_cfg_ioctl()
631 MPP_RET func_name(MppSysCfg cfg, const char *name, in_type val) \
639 if (!cfg || !name) { \
640 mpp_err_f("invalid input cfg %p name %p\n", cfg, name); \
643 p = (MppSysCfgSet *)cfg; \
667 MPP_RET func_name(MppSysCfg cfg, const char *name, in_type *val) \
675 if (!cfg || !name) { \
676 mpp_err_f("invalid input cfg %p name %p\n", cfg, name); \
679 p = (MppSysCfgSet *)cfg; \