• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 HiHope Open Source Organization .
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 HDI_MPP_CONFIG_H
17 #define HDI_MPP_CONFIG_H
18 
19 #include "codec_type.h"
20 #include "rk_mpi.h"
21 #include "rk_vdec_cfg.h"
22 #include "rk_venc_cfg.h"
23 #include "hdi_mpp.h"
24 
25 int32_t GetDefaultConfig(RKHdiBaseComponent *pBaseComponent);
26 int32_t GetDefaultHorStride(int32_t width, CodecPixelFormat fmtHDI);
27 int32_t InitConfig(RKHdiBaseComponent *pBaseComponent);
28 int32_t SetParamWidth(RKHdiBaseComponent *pBaseComponent, Param *param);
29 int32_t SetParamHeight(RKHdiBaseComponent *pBaseComponent, Param *param);
30 int32_t SetParamPixleFmt(RKHdiBaseComponent *pBaseComponent, Param *param);
31 int32_t SetParamHorStride(RKHdiBaseComponent *pBaseComponent, Param *param);
32 int32_t SetParamVerStride(RKHdiBaseComponent *pBaseComponent, Param *param);
33 int32_t SetParamFps(RKHdiBaseComponent *pBaseComponent, Param *param);
34 int32_t SetParamDrop(RKHdiBaseComponent *pBaseComponent, Param *param);
35 int32_t SetParamRateControl(RKHdiBaseComponent *pBaseComponent, Param *param);
36 int32_t SetParamGop(RKHdiBaseComponent *pBaseComponent, Param *param);
37 int32_t SetParamMimeCodecType(RKHdiBaseComponent *pBaseComponent, Param *param);
38 int32_t SetParamCodecType(RKHdiBaseComponent *pBaseComponent, Param *param);
39 int32_t SetParamSplitParse(RKHdiBaseComponent *pBaseComponent, Param *param);
40 int32_t SetParamCodecFrameNum(RKHdiBaseComponent *pBaseComponent, Param *param);
41 int32_t ValidateEncSetup(RKHdiBaseComponent *pBaseComponent, Param *param);
42 int32_t SetParamEncSetupAVC(RKHdiBaseComponent *pBaseComponent, Param *param);
43 int32_t GetParamBufferSize(RKHdiBaseComponent *pBaseComponent, Param *param);
44 int32_t GetParamWidth(RKHdiBaseComponent *pBaseComponent, Param *param);
45 int32_t GetParamHeight(RKHdiBaseComponent *pBaseComponent, Param *param);
46 int32_t GetParamPixleFmt(RKHdiBaseComponent *pBaseComponent, Param *param);
47 int32_t GetParamStride(RKHdiBaseComponent *pBaseComponent, Param *param);
48 int32_t GetParamFps(RKHdiBaseComponent *pBaseComponent, Param *param);
49 int32_t GetParamRateControl(RKHdiBaseComponent *pBaseComponent, Param *param);
50 int32_t GetParamPixleFmt(RKHdiBaseComponent *pBaseComponent, Param *param);
51 int32_t GetParamGop(RKHdiBaseComponent *pBaseComponent, Param *param);
52 int32_t GetParamMimeCodecType(RKHdiBaseComponent *pBaseComponent, Param *param);
53 int32_t GetParamCodecType(RKHdiBaseComponent *pBaseComponent, Param *param);
54 int32_t GetParamSplitParse(RKHdiBaseComponent *pBaseComponent, Param *param);
55 int32_t GetParamCodecFrameNum(RKHdiBaseComponent *pBaseComponent, Param *param);
56 int32_t GetParamDrop(RKHdiBaseComponent *pBaseComponent, Param *param);
57 
58 #endif // HDI_MPP_CONFIG_H