xref: /OK3568_Linux_fs/external/rockit/mpi/sdk/include/rk_mpi_ivs.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * Copyright 2022 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 
18 #ifndef INCLUDE_RT_MPI_RK_MPI_IVS_H_
19 #define INCLUDE_RT_MPI_RK_MPI_IVS_H_
20 
21 #include "rk_common.h"
22 #include "rk_comm_video.h"
23 #include "rk_comm_ivs.h"
24 
25 #ifdef __cplusplus
26 #if __cplusplus
27 extern "C" {
28 #endif
29 #endif /* __cplusplus */
30 
31 RK_S32 RK_MPI_IVS_Init(RK_VOID);
32 
33 RK_S32 RK_MPI_IVS_Exit(RK_VOID);
34 
35 RK_S32 RK_MPI_IVS_CreateChn(IVS_CHN IvsChn, IVS_CHN_ATTR_S *pstAttr);
36 
37 RK_S32 RK_MPI_IVS_DestroyChn(IVS_CHN IvsChn);
38 
39 RK_S32 RK_MPI_IVS_SetChnAttr(IVS_CHN IvsChn, IVS_CHN_ATTR_S *pstAttr);
40 
41 RK_S32 RK_MPI_IVS_GetChnAttr(IVS_CHN IvsChn, IVS_CHN_ATTR_S *pstAttr);
42 
43 RK_S32 RK_MPI_IVS_SendFrame(IVS_CHN VdChn, const VIDEO_FRAME_INFO_S *pstFrame, RK_S32 s32MilliSec);
44 
45 RK_S32 RK_MPI_IVS_GetResults(IVS_CHN VdChn, IVS_RESULT_INFO_S *pstResults, RK_S32 s32MilliSec);
46 RK_S32 RK_MPI_IVS_ReleaseResults(IVS_CHN IvsChn, IVS_RESULT_INFO_S *pstResults);
47 
48 #ifdef __cplusplus
49 #if __cplusplus
50 }
51 #endif
52 #endif /* __cplusplus */
53 
54 #endif  // INCLUDE_RT_MPI_RK_MPI_IVS_H_
55