xref: /OK3568_Linux_fs/external/rockit/mpi/example/include/test_comm_vpss.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * Copyright 2021 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 SRC_TESTS_RT_MPI_COMMON_TEST_COMM_VPSS_H_
18 #define SRC_TESTS_RT_MPI_COMMON_TEST_COMM_VPSS_H_
19 
20 #include "rk_common.h"
21 #include "rk_comm_vpss.h"
22 
23 #ifdef __cplusplus
24 #if __cplusplus
25 extern "C" {
26 #endif
27 #endif /* End of #ifdef __cplusplus */
28 
29 typedef struct _TEST_VPSS_PROC_CTX {
30     const char *srcFileName;
31     const char *dstSaveFileName;
32     RK_U32 u32RawWidth;
33     RK_U32 u32RawHeight;
34     RK_U32 u32RawPixelFmt;
35     RK_U32 u32SendFrameRate;
36 } TEST_VPSS_PROC_CTX_S;
37 
38 RK_S32 TEST_VPSS_Start(VPSS_GRP VpssGrp, RK_U32 u32ChnNum,
39                         VPSS_GRP_ATTR_S *pstVpssGrpAttr,
40                         VPSS_CHN_ATTR_S *pstVpssChnAttr);
41 RK_S32 TEST_VPSS_Stop(VPSS_GRP VpssGrp, RK_U32 u32ChnNum);
42 
43 RK_S32 TEST_VPSS_GrpSetZoom(VPSS_GRP VpssGrp, RK_U32 u32Zoom, RK_BOOL bEnable);
44 RK_S32 TEST_VPSS_ChnSetZoom(VPSS_GRP VpssGrp, VPSS_CHN VpssChn, RK_U32 u32Zoom, RK_BOOL bEnable);
45 
46 RK_S32 TEST_VPSS_SetChnRotation(VPSS_GRP VpssGrp, VPSS_CHN VpssChn, ROTATION_E enRotation);
47 RK_S32 TEST_VPSS_SetChnRotationEx(VPSS_GRP VpssGrp, VPSS_CHN VpssChn, RK_U32 u32Angle);
48 
49 RK_S32 TEST_VPSS_StartProc(
50         VPSS_GRP VpssGrp, RK_U32 u32ChnNum,
51         const TEST_VPSS_PROC_CTX_S *pstProcCtx);
52 RK_S32 TEST_VPSS_StopProc(VPSS_GRP VpssGrp);
53 
54 #ifdef __cplusplus
55 #if __cplusplus
56 }
57 #endif
58 #endif /* End of #ifdef __cplusplus */
59 
60 #endif  // SRC_TESTS_RT_MPI_COMMON_TEST_COMM_VPSS_H_
61