13d0407baSopenharmony_ci/*
23d0407baSopenharmony_ci * Copyright (c) 2021 Rockchip Electronics Co., Ltd.
33d0407baSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
43d0407baSopenharmony_ci * you may not use this file except in compliance with the License.
53d0407baSopenharmony_ci * You may obtain a copy of the License at
63d0407baSopenharmony_ci *
73d0407baSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
83d0407baSopenharmony_ci *
93d0407baSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
103d0407baSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
113d0407baSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
123d0407baSopenharmony_ci * See the License for the specific language governing permissions and
133d0407baSopenharmony_ci * limitations under the License.
143d0407baSopenharmony_ci */
153d0407baSopenharmony_ci
163d0407baSopenharmony_ci#ifndef __RK_VENC_CFG_H__
173d0407baSopenharmony_ci#define __RK_VENC_CFG_H__
183d0407baSopenharmony_ci
193d0407baSopenharmony_ci#include "rk_type.h"
203d0407baSopenharmony_ci#include "mpp_err.h"
213d0407baSopenharmony_ci
223d0407baSopenharmony_citypedef void *MppEncCfg;
233d0407baSopenharmony_ci
243d0407baSopenharmony_ci#ifdef __cplusplus
253d0407baSopenharmony_ciextern "C" {
263d0407baSopenharmony_ci#endif
273d0407baSopenharmony_ci
283d0407baSopenharmony_ciMPP_RET mpp_enc_cfg_init(MppEncCfg *cfg);
293d0407baSopenharmony_ciMPP_RET mpp_enc_cfg_deinit(MppEncCfg cfg);
303d0407baSopenharmony_ci
313d0407baSopenharmony_ciMPP_RET mpp_enc_cfg_set_s32(MppEncCfg cfg, const char *name, signed int val);
323d0407baSopenharmony_ciMPP_RET mpp_enc_cfg_set_u32(MppEncCfg cfg, const char *name, unsigned int val);
333d0407baSopenharmony_ciMPP_RET mpp_enc_cfg_set_s64(MppEncCfg cfg, const char *name, RK_S64 val);
343d0407baSopenharmony_ciMPP_RET mpp_enc_cfg_set_u64(MppEncCfg cfg, const char *name, RK_U64 val);
353d0407baSopenharmony_ciMPP_RET mpp_enc_cfg_set_ptr(MppEncCfg cfg, const char *name, void *val);
363d0407baSopenharmony_ciMPP_RET mpp_enc_cfg_set_st(MppEncCfg cfg, const char *name, void *val);
373d0407baSopenharmony_ci
383d0407baSopenharmony_ciMPP_RET mpp_enc_cfg_get_s32(MppEncCfg cfg, const char *name, signed int *val);
393d0407baSopenharmony_ciMPP_RET mpp_enc_cfg_get_u32(MppEncCfg cfg, const char *name, unsigned int *val);
403d0407baSopenharmony_ciMPP_RET mpp_enc_cfg_get_s64(MppEncCfg cfg, const char *name, RK_S64 *val);
413d0407baSopenharmony_ciMPP_RET mpp_enc_cfg_get_u64(MppEncCfg cfg, const char *name, RK_U64 *val);
423d0407baSopenharmony_ciMPP_RET mpp_enc_cfg_get_ptr(MppEncCfg cfg, const char *name, void **val);
433d0407baSopenharmony_ciMPP_RET mpp_enc_cfg_get_st(MppEncCfg cfg, const char *name, void *val);
443d0407baSopenharmony_ci
453d0407baSopenharmony_civoid mpp_enc_cfg_show(void);
463d0407baSopenharmony_ci
473d0407baSopenharmony_ci#ifdef __cplusplus
483d0407baSopenharmony_ci}
493d0407baSopenharmony_ci#endif
503d0407baSopenharmony_ci
513d0407baSopenharmony_ci#endif /* __RK_VENC_CFG_H__ */
52