Lines Matching refs:pHandle

130 OMX_ERRORTYPE send_input_buffer (OMX_HANDLETYPE pHandle, OMX_BUFFERHEADERTYPE* pBuffer, FILE *fIn);
147 static OMX_ERRORTYPE WaitForState(OMX_HANDLETYPE* pHandle,
153 /*OMX_COMPONENTTYPE *pComponent = (OMX_COMPONENTTYPE *)pHandle;*/
155 eError = OMX_GetState(pHandle, &CurState);
162 eError = OMX_GetState(pHandle, &CurState);
296 OMX_HANDLETYPE pHandle = NULL;
446 /*pHandle = malloc(sizeof(OMX_HANDLETYPE));*/
447 APP_MEMPRINT("%d:::[TESTAPPALLOC] %p\n",__LINE__,pHandle);
450 error = TIOMX_GetHandle(&pHandle, strG722Encoder, &AppData, &PcmCaBa);
453 error = TIOMX_GetHandle(&pHandle, strG722Encoder, &AppData, &PcmCaBa);
455 if((error != OMX_ErrorNone) || (pHandle == NULL)) {
501 OMX_GetParameter (pHandle,OMX_IndexParamPortDefinition,pCompPrivateStruct);
514 error = OMX_SetParameter (pHandle,OMX_IndexParamPortDefinition, pCompPrivateStruct);
517 error = OMX_SetParameter (pHandle,OMX_IndexParamPortDefinition, pCompPrivateStruct);
536 error = OMX_SetParameter (pHandle, OMX_IndexParamPortDefinition, pCompPrivateStruct);
539 error = OMX_SetParameter (pHandle, OMX_IndexParamPortDefinition, pCompPrivateStruct);
565 error = OMX_SetParameter (pHandle, OMX_IndexParamAudioAdpcm, pG722Param);
568 error = OMX_SetParameter (pHandle, OMX_IndexParamAudioAdpcm, pG722Param);
580 error = OMX_SetParameter (pHandle, OMX_IndexParamAudioAdpcm, pG722Param);
583 error = OMX_SetParameter (pHandle, OMX_IndexParamAudioAdpcm, pG722Param);
608 error = OMX_GetExtensionIndex(pHandle, "OMX.TI.index.config.g722headerinfo",&index);
613 OMX_SetConfig(pHandle, index, pAppPrivate);
617 error = OMX_AllocateBuffer(pHandle,&pInputBufferHeader,0,NULL,inBufSize);
623 error = OMX_AllocateBuffer(pHandle,&pOutputBufferHeader,1,NULL,outBufSize);
634 error = OMX_UseBuffer(pHandle,&pInputBufferHeader,0,NULL,inBufSize,pInputBuffer);
643 error = OMX_UseBuffer(pHandle,&pOutputBufferHeader,1,NULL,outBufSize,pOutputBuffer);
651 error = OMX_GetExtensionIndex(pHandle, "OMX.TI.index.config.g722streamIDinfo",&index);
657 error = OMX_GetConfig (pHandle, index, streaminfo);
672 error = OMX_SetConfig (pHandle, index, pAppPrivate);
689 error = OMX_GetExtensionIndex(pHandle, "OMX.TI.index.config.g722.datapath",&index);
694 error = OMX_SetConfig (pHandle, index, &dataPath);
702 error = OMX_SendCommand(pHandle, OMX_CommandStateSet, OMX_StateIdle, NULL);
708 error = WaitForState(pHandle, OMX_StateIdle);
747 error = OMX_SendCommand(pHandle, OMX_CommandStateSet, OMX_StateExecuting, NULL);
752 pComponent = (OMX_COMPONENTTYPE *)(pHandle);
753 error = WaitForState(pHandle, OMX_StateExecuting);
770 send_input_buffer(pHandle, pInputBufferHeader, fIn);
780 OMX_GetState (pHandle, &testAppState);
826 error = send_input_buffer (pHandle, pBuffer, fIn);
839 error = OMX_SendCommand(pHandle, OMX_CommandStateSet, OMX_StateIdle, NULL);
844 error = WaitForState(pHandle, OMX_StateIdle);
869 error = OMX_SendCommand(pHandle,OMX_CommandStateSet, OMX_StateIdle, NULL);
874 error = WaitForState(pHandle, OMX_StateIdle);
891 error = send_input_buffer (pHandle, pBuffer, fIn);
906 error = OMX_SendCommand(pHandle,OMX_CommandStateSet, OMX_StateIdle, NULL);
912 error = WaitForState(pHandle, OMX_StateIdle);
931 error = OMX_SendCommand(pHandle, OMX_CommandStateSet,OMX_StateExecuting, NULL);
937 error = WaitForState(pHandle, OMX_StateExecuting);
952 error = OMX_SendCommand(pHandle, OMX_CommandStateSet, OMX_StatePause, NULL);
959 error = WaitForState(pHandle, OMX_StatePause);
972 error = OMX_SendCommand(pHandle, OMX_CommandStateSet,OMX_StateExecuting, NULL);
978 error = WaitForState(pHandle, OMX_StateExecuting);
994 error = send_input_buffer (pHandle, pBuffer, fIn);
1008 error = OMX_SendCommand(pHandle,OMX_CommandStateSet, OMX_StateIdle, NULL);
1014 error = WaitForState(pHandle, OMX_StateIdle);
1037 error = OMX_SetConfig(pHandle, OMX_IndexConfigAudioVolume, pCompPrivateStructGain);
1048 error = OMX_SetConfig(pHandle, OMX_IndexConfigAudioVolume, pCompPrivateStructGain);
1063 error = OMX_SendCommand(pHandle, OMX_CommandStateSet, OMX_StateIdle, NULL);
1069 error = WaitForState(pHandle, OMX_StateIdle);
1100 OMX_FillThisBuffer(pHandle, pBuf);
1112 WaitForState(pHandle,OMX_StateIdle);
1113 error = OMX_FreeBuffer(pHandle,OMX_DirInput,pInputBufferHeader);
1118 error = OMX_FreeBuffer(pHandle,OMX_DirOutput,pOutputBufferHeader);
1132 OMX_SendCommand(pHandle,OMX_CommandStateSet,OMX_StateLoaded,NULL);
1133 WaitForState(pHandle,OMX_StateLoaded);
1134 OMX_SendCommand(pHandle,OMX_CommandStateSet,OMX_StateWaitForResources,NULL);
1135 WaitForState(pHandle,OMX_StateWaitForResources);
1140 OMX_SendCommand(pHandle,OMX_CommandStateSet,OMX_StateIdle,NULL);
1142 error = OMX_AllocateBuffer(pHandle,&pInputBufferHeader,0,NULL,inBufSize);
1148 WaitForState(pHandle,OMX_StateIdle);
1149 OMX_SendCommand(pHandle,OMX_CommandStateSet,OMX_StateExecuting,NULL);
1150 WaitForState(pHandle,OMX_StateExecuting);
1152 send_input_buffer (pHandle, pBuffer, fIn);
1158 OMX_SendCommand(pHandle,OMX_CommandStateSet, OMX_StateIdle, NULL);
1159 WaitForState(pHandle, OMX_StateIdle);
1162 error = OMX_FreeBuffer(pHandle,OMX_DirInput,pInputBufferHeader);
1167 error = OMX_FreeBuffer(pHandle,OMX_DirOutput,pOutputBufferHeader);
1182 error = OMX_SendCommand(pHandle,OMX_CommandStateSet, OMX_StateLoaded, NULL);
1188 error = WaitForState(pHandle, OMX_StateLoaded);
1204 error = OMX_GetState(pHandle, &state);
1211 OMX_GetState (pHandle, &testAppState);
1240 error = OMX_FreeBuffer(pHandle,OMX_DirInput,pInputBufferHeader);
1245 error = OMX_FreeBuffer(pHandle,OMX_DirOutput,pOutputBufferHeader);
1264 error = OMX_SendCommand(pHandle,OMX_CommandStateSet, OMX_StateLoaded, NULL);
1266 error = WaitForState(pHandle, OMX_StateLoaded);
1272 error = OMX_SendCommand(pHandle,OMX_CommandStateSet, OMX_StateWaitForResources, NULL);
1278 error = WaitForState(pHandle, OMX_StateWaitForResources);
1289 error = TIOMX_FreeHandle(pHandle);
1347 OMX_ERRORTYPE send_input_buffer(OMX_HANDLETYPE pHandle, OMX_BUFFERHEADERTYPE* pBuffer, FILE *fIn)
1350 /* OMX_COMPONENTTYPE *pComponent = (OMX_COMPONENTTYPE *)pHandle;*/
1357 OMX_EmptyThisBuffer(pHandle, pBuffer);
1365 OMX_EmptyThisBuffer(pHandle, pBuffer);