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_VDEC_CFG_H__ 17 #define __RK_VDEC_CFG_H__ 18 19 #include "rk_type.h" 20 #include "mpp_err.h" 21 22 typedef void *MppDecCfg; 23 24 #ifdef __cplusplus 25 extern "C" { 26 #endif 27 28 MPP_RET mpp_dec_cfg_init(MppDecCfg *cfg); 29 MPP_RET mpp_dec_cfg_deinit(MppDecCfg cfg); 30 31 MPP_RET mpp_dec_cfg_set_s32(MppDecCfg cfg, const char *name, signed int val); 32 MPP_RET mpp_dec_cfg_set_u32(MppDecCfg cfg, const char *name, unsigned int val); 33 MPP_RET mpp_dec_cfg_set_s64(MppDecCfg cfg, const char *name, RK_S64 val); 34 MPP_RET mpp_dec_cfg_set_u64(MppDecCfg cfg, const char *name, RK_U64 val); 35 MPP_RET mpp_dec_cfg_set_ptr(MppDecCfg cfg, const char *name, void *val); 36 37 MPP_RET mpp_dec_cfg_get_s32(MppDecCfg cfg, const char *name, signed int *val); 38 MPP_RET mpp_dec_cfg_get_u32(MppDecCfg cfg, const char *name, unsigned int *val); 39 MPP_RET mpp_dec_cfg_get_s64(MppDecCfg cfg, const char *name, RK_S64 *val); 40 MPP_RET mpp_dec_cfg_get_u64(MppDecCfg cfg, const char *name, RK_U64 *val); 41 MPP_RET mpp_dec_cfg_get_ptr(MppDecCfg cfg, const char *name, void **val); 42 43 void mpp_dec_cfg_show(void); 44 45 #ifdef __cplusplus 46 } 47 #endif 48 49 #endif /* __RK_VDEC_CFG_H__ */ 50