Home
last modified time | relevance | path

Searched refs:AdChn (Results 1 – 4 of 4) sorted by relevance

/OK3568_Linux_fs/external/rockit/mpi/sdk/include/
H A Drk_mpi_adec.h18 RK_S32 RK_MPI_ADEC_CreateChn(ADEC_CHN AdChn, const ADEC_CHN_ATTR_S *pstAttr);
19 RK_S32 RK_MPI_ADEC_DestroyChn(ADEC_CHN AdChn);
20 RK_S32 RK_MPI_ADEC_SendStream(ADEC_CHN AdChn, const AUDIO_STREAM_S *pstStream, RK_BOOL bBlock);
21 RK_S32 RK_MPI_ADEC_ClearChnBuf(ADEC_CHN AdChn);
22 RK_S32 RK_MPI_ADEC_GetFrame(ADEC_CHN AdChn, AUDIO_FRAME_INFO_S *pstFrmInfo, RK_BOOL bBlock);
23 RK_S32 RK_MPI_ADEC_ReleaseFrame(ADEC_CHN AdChn, AUDIO_FRAME_INFO_S *pstFrmInfo);
24 RK_S32 RK_MPI_ADEC_SendEndOfStream(ADEC_CHN AdChn, RK_BOOL bInstant);
25 RK_S32 RK_MPI_ADEC_QueryChnStat(ADEC_CHN AdChn, ADEC_CHN_STATE_S *pstBufferStatus);
/OK3568_Linux_fs/external/rockit/mpi/example/mod/
H A Dtest_mpi_adec.cpp44 void query_adec_flow_graph_stat(ADEC_CHN AdChn) { in query_adec_flow_graph_stat() argument
48 ret = RK_MPI_ADEC_QueryChnStat(AdChn, &pstStat); in query_adec_flow_graph_stat()
95 ADEC_CHN AdChn = (ADEC_CHN)(params->s32ChnIndex); in test_init_mpi_adec() local
112 s32ret = RK_MPI_ADEC_CreateChn(AdChn, &stAdecAttr); in test_init_mpi_adec()
114 RK_LOGE("create adec chn %d err:0x%x\n", AdChn, s32ret); in test_init_mpi_adec()
136 ADEC_CHN AdChn = (ADEC_CHN)(params->s32ChnIndex); in send_stream_thread() local
159 RK_MPI_ADEC_SendEndOfStream(AdChn, RK_FALSE); in send_stream_thread()
173 s32ret = RK_MPI_ADEC_SendStream(AdChn, &stAudioStream, bBlock); in send_stream_thread()
202 ADEC_CHN AdChn = (ADEC_CHN)(params->s32ChnIndex); in receive_data_thread() local
215 s32ret = RK_MPI_ADEC_GetFrame(AdChn, pstFrmInfo, bBlock); in receive_data_thread()
[all …]
H A Dtest_mpi_aenc.cpp116 AENC_CHN AdChn = (AENC_CHN)(params->s32ChnIndex); in test_init_mpi_aenc() local
134 s32ret = RK_MPI_AENC_CreateChn(AdChn, &stAencAttr); in test_init_mpi_aenc()
136 RK_LOGE("create aenc chn %d err:0x%x\n", AdChn, s32ret); in test_init_mpi_aenc()
142 params->s32DevFd = RK_MPI_AENC_GetFd(AdChn); in test_init_mpi_aenc()
143 RK_LOGI("ai chnId: %d, selectFd:%d", (RK_S32)AdChn, params->s32DevFd); in test_init_mpi_aenc()
157 ADEC_CHN AdChn = (AENC_CHN)(params->s32ChnIndex); in send_frame_thread() local
191 s32ret = RK_MPI_AENC_SendFrame(AdChn, &stAudioFrm, RK_NULL, params->s32MilliSec); in send_frame_thread()
216 AENC_CHN AdChn = (AENC_CHN)(params->s32ChnIndex); in receive_stream_thread() local
232 s32ret = RK_MPI_AENC_GetStream(AdChn, &pstStream, params->s32MilliSec); in receive_stream_thread()
244 RK_MPI_AENC_ReleaseStream(AdChn, &pstStream); in receive_stream_thread()
H A Dtest_mpi_sys.cpp111 ADEC_CHN AdChn = (ADEC_CHN)s32ChnId; in test_adec_create_channel() local
113 s32Ret = RK_MPI_ADEC_CreateChn(AdChn, pstChnAttr); in test_adec_create_channel()
115 RK_LOGE("failed to create adec chn %d, err %d", AdChn, s32Ret); in test_adec_create_channel()
125 ADEC_CHN AdChn = (ADEC_CHN)s32ChnId; in test_adec_destroy_channel() local
127 s32Ret = RK_MPI_ADEC_DestroyChn(AdChn); in test_adec_destroy_channel()
129 RK_LOGE("failed to destroy adec channel(%d), err: %d", AdChn, s32Ret); in test_adec_destroy_channel()
138 ADEC_CHN AdChn = (ADEC_CHN)s32ChnId; in test_ao_enable_channel() local
140 s32Ret = RK_MPI_AO_EnableChn(pstCtx->s32DevId, AdChn); in test_ao_enable_channel()
142 RK_LOGE("failed to enable ao chn %d, err %d", AdChn, s32Ret); in test_ao_enable_channel()