xref: /OK3568_Linux_fs/external/rockit/mpi/sdk/include/rk_mpi_af.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * Copyright 2020 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  * This is api of audio filter
17  */
18 
19 #ifndef INCLUDE_RT_MPI_MPI_AF_H_
20 #define INCLUDE_RT_MPI_MPI_AF_H_
21 
22 #include <vector>
23 #include <string>
24 
25 #include "rk_type.h"
26 #include "rk_common.h"
27 #include "rk_comm_af.h"
28 #include "rk_comm_aio.h"
29 
30 #ifdef __cplusplus
31 #if __cplusplus
32 extern "C" {
33 #endif
34 #endif /* __cplusplus */
35 
36 RK_S32 RK_MPI_AF_Create(AF_CHN AfChn, const AF_ATTR_S *pstAttr);
37 RK_S32 RK_MPI_AF_Destroy(AF_CHN AfChn);
38 RK_S32 RK_MPI_AF_SendFrame(AF_CHN AfChn, AUDIO_FRAME_INFO_S *frame, RK_S32 s32MilliSec);
39 RK_S32 RK_MPI_AF_GetFrame(AF_CHN AfChn, AUDIO_FRAME_INFO_S *frame, RK_S32 s32MilliSec);
40 RK_S32 RK_MPI_AF_ReleaseFrame(AF_CHN AfChn, AUDIO_FRAME_INFO_S *frame);
41 RK_S32 RK_MPI_AF_SetChnAttr(AF_CHN AfChn, const AF_ATTR_S *pstAttr);
42 RK_S32 RK_MPI_AF_GetChnAttr(AF_CHN AfChn, AF_ATTR_S *pstAttr);
43 
44 #ifdef __cplusplus
45 #if __cplusplus
46 }
47 #endif
48 #endif /* End of #ifdef __cplusplus */
49 
50 #endif  // INCLUDE_RT_MPI_MPI_AF_H_