1 /* 2 * Copyright (c) 2021 Rockchip Electronics Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef __RK_VENC_CFG_H__ 17 #define __RK_VENC_CFG_H__ 18 19 #include "rk_type.h" 20 #include "mpp_err.h" 21 22 typedef void *MppEncCfg; 23 24 #ifdef __cplusplus 25 extern "C" { 26 #endif 27 28 MPP_RET mpp_enc_cfg_init(MppEncCfg *cfg); 29 MPP_RET mpp_enc_cfg_deinit(MppEncCfg cfg); 30 31 MPP_RET mpp_enc_cfg_set_s32(MppEncCfg cfg, const char *name, signed int val); 32 MPP_RET mpp_enc_cfg_set_u32(MppEncCfg cfg, const char *name, unsigned int val); 33 MPP_RET mpp_enc_cfg_set_s64(MppEncCfg cfg, const char *name, RK_S64 val); 34 MPP_RET mpp_enc_cfg_set_u64(MppEncCfg cfg, const char *name, RK_U64 val); 35 MPP_RET mpp_enc_cfg_set_ptr(MppEncCfg cfg, const char *name, void *val); 36 MPP_RET mpp_enc_cfg_set_st(MppEncCfg cfg, const char *name, void *val); 37 38 MPP_RET mpp_enc_cfg_get_s32(MppEncCfg cfg, const char *name, signed int *val); 39 MPP_RET mpp_enc_cfg_get_u32(MppEncCfg cfg, const char *name, unsigned int *val); 40 MPP_RET mpp_enc_cfg_get_s64(MppEncCfg cfg, const char *name, RK_S64 *val); 41 MPP_RET mpp_enc_cfg_get_u64(MppEncCfg cfg, const char *name, RK_U64 *val); 42 MPP_RET mpp_enc_cfg_get_ptr(MppEncCfg cfg, const char *name, void **val); 43 MPP_RET mpp_enc_cfg_get_st(MppEncCfg cfg, const char *name, void *val); 44 45 void mpp_enc_cfg_show(void); 46 47 #ifdef __cplusplus 48 } 49 #endif 50 51 #endif /* __RK_VENC_CFG_H__ */ 52