xref: /OK3568_Linux_fs/external/rockit/mpi/sdk/include/rk_mpi_gdc.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /* GPL-2.0 WITH Linux-syscall-note OR Apache 2.0 */
2 /* Copyright (c) 2021 Fuzhou Rockchip Electronics Co., Ltd */
3 
4 #ifndef INCLUDE_RT_MPI_GDC_H_
5 #define INCLUDE_RT_MPI_GDC_H_
6 
7 #include "rk_common.h"
8 #include "rk_comm_video.h"
9 #include "rk_comm_gdc.h"
10 
11 #ifdef __cplusplus
12 #if __cplusplus
13 extern "C" {
14 #endif
15 #endif /*__cplusplus*/
16 
17 RK_S32 RK_MPI_GDC_BeginJob(GDC_HANDLE *phHandle);
18 RK_S32 RK_MPI_GDC_EndJob(GDC_HANDLE hHandle);
19 RK_S32 RK_MPI_GDC_CancelJob(GDC_HANDLE hHandle);
20 RK_S32 RK_MPI_GDC_StopJob(GDC_HANDLE hHandle);
21 RK_S32 RK_MPI_GDC_SetConfig(GDC_HANDLE hHandle, const FISHEYE_JOB_CONFIG_S *pstJobConfig);
22 RK_S32 RK_MPI_GDC_AddCorrectionTask(GDC_HANDLE hHandle,
23                                         const GDC_TASK_ATTR_S *pstTask,
24                                         const FISHEYE_ATTR_S *pstFisheyeAttr);
25 RK_S32 RK_MPI_GDC_AddCorrectionExTask(GDC_HANDLE hHandle,
26                                         const GDC_TASK_ATTR_S *pstTask,
27                                         const FISHEYE_ATTR_EX_S *pstFishEyeAttrrEx,
28                                         RK_BOOL bCheckMode);
29 RK_S32 RK_MPI_GDC_AddPMFTask(GDC_HANDLE hHandle,
30                                         const GDC_TASK_ATTR_S *pstTask,
31                                         const GDC_PMF_ATTR_S *pstGdcPmfAttrr);
32 RK_S32 RK_MPI_GDC_FisheyePosQueryDst2Src(const GDC_FISHEYE_POINT_QUERY_ATTR_S *pstFisheyePointQueryAttr,
33                                         const VIDEO_FRAME_INFO_S *pstVideoInfo,
34                                         const POINT_S *pstDstPoint,
35                                         POINT_S *pstSrcPoint);
36 RK_S32 RK_MPI_GDC_FisheyePosQueryDst2SrcArray(const GDC_FISHEYE_POINT_QUERY_ATTR_S *pstFisheyePointQueryAttr,
37                                                 const VIDEO_FRAME_INFO_S *pstVideoInfo,
38                                                 const RK_U32 u32PointNum,
39                                                 const POINT_S *pastDstPoint,
40                                                 POINT_S *pastSrcPoint);
41 RK_S32 RK_MPI_GDC_FisheyePosQueryDst2Pano(const GDC_FISHEYE_POINT_QUERY_ATTR_S *pstFisheyePointQueryAttr,
42                                             const VIDEO_FRAME_INFO_S *pstVideoInfo,
43                                             const RK_U32 u32PanoRegionIndex,
44                                             const POINT_S *pstDstPoint,
45                                             POINT_S *pstPanoPoint);
46 RK_S32 RK_MPI_GDC_FisheyePosQueryDst2PanoArray(const GDC_FISHEYE_POINT_QUERY_ATTR_S *pstFisheyePointQueryAttr,
47                                                 const VIDEO_FRAME_INFO_S *pstVideoInfo,
48                                                 const RK_U32 u32PanoRegionIndex,
49                                                 const RK_U32 u32PointNum,
50                                                 const POINT_S *pastDstPoint,
51                                                 POINT_S *pastPanoPoint);
52 #ifdef __cplusplus
53 #if __cplusplus
54 }
55 #endif
56 #endif /*__cplusplus*/
57 
58 #endif /*end of __MPI_GDC_H__*/
59