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_MPI_AENC_H_ 5 #define INCLUDE_RT_MPI_MPI_AENC_H_ 6 7 #include "rk_common.h" 8 #include "rk_comm_aenc.h" 9 #include "rk_comm_aio.h" 10 11 #ifdef __cplusplus 12 #if __cplusplus 13 extern "C" { 14 #endif 15 #endif /* __cplusplus */ 16 17 RK_S32 RK_MPI_AENC_CreateChn(AENC_CHN AeChn, const AENC_CHN_ATTR_S *pstAttr); 18 RK_S32 RK_MPI_AENC_DestroyChn(AENC_CHN AeChn); 19 RK_S32 RK_MPI_AENC_SendFrame(AENC_CHN AeChn, const AUDIO_FRAME_S *pstFrm, 20 const AEC_FRAME_S *pstAecFrm, RK_S32 s32MilliSec); 21 RK_S32 RK_MPI_AENC_GetStream(AENC_CHN AeChn, AUDIO_STREAM_S *pstStream, RK_S32 s32MilliSec); 22 RK_S32 RK_MPI_AENC_ReleaseStream(AENC_CHN AeChn, const AUDIO_STREAM_S *pstStream); 23 RK_S32 RK_MPI_AENC_SetMute(AENC_CHN AeChn, RK_BOOL pstMuteFlag); 24 RK_S32 RK_MPI_AENC_SaveFile(AENC_CHN AeChn, const AUDIO_SAVE_FILE_INFO_S *pstSaveFileInfo); 25 RK_S32 RK_MPI_AENC_QueryFileStatus(AENC_CHN AeChn, AUDIO_FILE_STATUS_S* pstFileStatus); 26 RK_S32 RK_MPI_AENC_RegisterEncoder(RK_S32 *ps32Handle, const AENC_ENCODER_S *pstEncoder); 27 RK_S32 RK_MPI_AENC_UnRegisterEncoder(RK_S32 s32Handle); 28 RK_S32 RK_MPI_AENC_GetFd(AENC_CHN AeChn); 29 30 #ifdef __cplusplus 31 #if __cplusplus 32 } 33 #endif 34 #endif /* End of #ifdef __cplusplus */ 35 36 #endif /* End of INCLUDE_RT_MPI_MPI_AENC_H_ */ 37