• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Rockchip Electronics Co. LTD
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef __RK_VDEC_CFG_H__
18 #define __RK_VDEC_CFG_H__
19 
20 #include "rk_type.h"
21 #include "mpp_err.h"
22 
23 typedef void* MppDecCfg;
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 MPP_RET mpp_dec_cfg_init(MppDecCfg *cfg);
30 MPP_RET mpp_dec_cfg_deinit(MppDecCfg cfg);
31 
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);
37 
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);
41 MPP_RET mpp_dec_cfg_get_u64(MppDecCfg cfg, const char *name, RK_U64 *val);
42 MPP_RET mpp_dec_cfg_get_ptr(MppDecCfg cfg, const char *name, void **val);
43 
44 void mpp_dec_cfg_show(void);
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif /*__RK_VDEC_CFG_H__*/
51