• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2015 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_VENC_CFG_H__
18 #define __RK_VENC_CFG_H__
19 
20 #include "rk_type.h"
21 #include "mpp_err.h"
22 
23 typedef void* MppEncCfg;
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 MPP_RET mpp_enc_cfg_init(MppEncCfg *cfg);
30 MPP_RET mpp_enc_cfg_deinit(MppEncCfg cfg);
31 
32 MPP_RET mpp_enc_cfg_set_s32(MppEncCfg cfg, const char *name, RK_S32 val);
33 MPP_RET mpp_enc_cfg_set_u32(MppEncCfg cfg, const char *name, RK_U32 val);
34 MPP_RET mpp_enc_cfg_set_s64(MppEncCfg cfg, const char *name, RK_S64 val);
35 MPP_RET mpp_enc_cfg_set_u64(MppEncCfg cfg, const char *name, RK_U64 val);
36 MPP_RET mpp_enc_cfg_set_ptr(MppEncCfg cfg, const char *name, void *val);
37 MPP_RET mpp_enc_cfg_set_st(MppEncCfg cfg, const char *name, void *val);
38 
39 MPP_RET mpp_enc_cfg_get_s32(MppEncCfg cfg, const char *name, RK_S32 *val);
40 MPP_RET mpp_enc_cfg_get_u32(MppEncCfg cfg, const char *name, RK_U32 *val);
41 MPP_RET mpp_enc_cfg_get_s64(MppEncCfg cfg, const char *name, RK_S64 *val);
42 MPP_RET mpp_enc_cfg_get_u64(MppEncCfg cfg, const char *name, RK_U64 *val);
43 MPP_RET mpp_enc_cfg_get_ptr(MppEncCfg cfg, const char *name, void **val);
44 MPP_RET mpp_enc_cfg_get_st(MppEncCfg cfg, const char *name, void *val);
45 
46 void mpp_enc_cfg_show(void);
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 #endif /*__RK_VENC_CFG_H__*/
53