Lines Matching refs:pHandle

192 static OMX_ERRORTYPE FreeAllResources( OMX_HANDLETYPE pHandle,
200 static OMX_ERRORTYPE freeAllUseResources(OMX_HANDLETYPE pHandle,
275 * @param pHandle Component pointer
283 static OMX_ERRORTYPE WaitForState(OMX_HANDLETYPE pHandle,
290 eError = OMX_GetState(pHandle, &CurState);
539 OMX_HANDLETYPE *pHandle = NULL;
810 pHandle = newmalloc(sizeof(OMX_HANDLETYPE));
811 if(NULL == pHandle)
816 APP_IPRINT("%d :: App: pHandle = %p\n",__LINE__,pHandle);
819 error = OMX_GetHandle(pHandle,strAacEncoder,&AppData, &AacCaBa);
822 error = TIOMX_GetHandle(pHandle,strAacEncoder,&AppData, &AacCaBa);
824 if( (error != OMX_ErrorNone) || (*pHandle == NULL) )
914 error = OMX_GetExtensionIndex(*pHandle, "OMX.TI.index.config.aacencframesPerOutBuf",&index);
921 error = OMX_SetConfig (*pHandle, index, &FramesPerOutBuf);
944 error = OMX_SetParameter (*pHandle,OMX_IndexParamPortDefinition, pCompPrivateStruct);
947 error = OMX_SetParameter (*pHandle,OMX_IndexParamPortDefinition, pCompPrivateStruct);
971 error = OMX_SetParameter (*pHandle,OMX_IndexParamPortDefinition, pCompPrivateStruct);
974 error = OMX_SetParameter (*pHandle,OMX_IndexParamPortDefinition, pCompPrivateStruct);
1007 error = OMX_SetParameter (*pHandle, OMX_IndexParamAudioPcm, iAacParam);
1010 error = OMX_SetParameter (*pHandle, OMX_IndexParamAudioPcm, iAacParam);
1124 error = OMX_SetParameter (*pHandle, OMX_IndexParamAudioAac, pAacParam);
1127 error = OMX_SetParameter (*pHandle, OMX_IndexParamAudioAac, pAacParam);
1157 error = OMX_GetExtensionIndex(*pHandle, "OMX.TI.index.config.aacencHeaderInfo",&index);
1164 cmd_data.hComponent = *pHandle;
1181 error = OMX_SetConfig (*pHandle, index, &audioinfo);
1201 error = OMX_GetExtensionIndex(*pHandle, "OMX.TI.index.config.aac.datapath",&index);
1207 error = OMX_SetConfig (*pHandle, index, &dataPath);
1222 error = OMX_AllocateBuffer(*pHandle, &pInputBufferHeader[i], 0, NULL, INPUT_AACENC_BUFFER_SIZE);
1235 error = OMX_AllocateBuffer(*pHandle, &pOutputBufferHeader[i], 1, NULL, OutputBufferSize);
1257 error = OMX_UseBuffer(*pHandle, &pInputBufferHeader[i], 0, NULL, INPUT_AACENC_BUFFER_SIZE, pInputBuffer[i]);
1280 error = OMX_UseBuffer(*pHandle, &pOutputBufferHeader[i], 1, NULL, OutputBufferSize, pOutputBuffer[i]);
1294 error = OMX_SendCommand(*pHandle, OMX_CommandStateSet, OMX_StateIdle, NULL);
1301 error = WaitForState(*pHandle, OMX_StateIdle);
1315 error = OMX_GetExtensionIndex(*pHandle, "OMX.TI.index.config.aacencstreamIDinfo",&index);
1322 error = OMX_GetConfig (*pHandle, index, streaminfo);
1417 error = OMX_SendCommand(*pHandle,OMX_CommandStateSet, OMX_StateExecuting, NULL);
1423 error = WaitForState(*pHandle, OMX_StateExecuting);
1433 pComponent = (OMX_COMPONENTTYPE *)*pHandle;
1434 error = OMX_GetState(*pHandle, &state);
1465 OMX_EmptyThisBuffer(*pHandle, pInputBufferHeader[i]);
1483 OMX_FillThisBuffer(*pHandle, pOutputBufferHeader[k]);
1550 OMX_EmptyThisBuffer(*pHandle, pBuffer);
1566 error = OMX_SendCommand(*pHandle,OMX_CommandStateSet, OMX_StateIdle, NULL);
1573 error = WaitForState(*pHandle, OMX_StateIdle);
1608 error = OMX_SendCommand(*pHandle,OMX_CommandStateSet, OMX_StateIdle, NULL);
1614 error = WaitForState(*pHandle, OMX_StateIdle);
1636 OMX_EmptyThisBuffer(*pHandle, pBuffer);
1652 error = OMX_SendCommand(*pHandle,OMX_CommandStateSet, OMX_StateIdle, NULL);
1659 error = WaitForState(*pHandle, OMX_StateIdle);
1695 OMX_EmptyThisBuffer(*pHandle, pBuffer);
1704 error = OMX_SendCommand(*pHandle,OMX_CommandStateSet, OMX_StatePause, NULL);
1711 error = WaitForState(*pHandle, OMX_StatePause);
1727 error = OMX_SendCommand(*pHandle,OMX_CommandStateSet, OMX_StateExecuting, NULL);
1734 error = WaitForState(*pHandle, OMX_StateExecuting);
1755 error = OMX_SendCommand(*pHandle,OMX_CommandStateSet, OMX_StateIdle, NULL);
1762 error = WaitForState(*pHandle, OMX_StateIdle);
1778 error = OMX_SendCommand(*pHandle,OMX_CommandStateSet, OMX_StatePause, NULL);
1785 error = WaitForState(*pHandle, OMX_StatePause);
1800 error = OMX_SendCommand(*pHandle,OMX_CommandStateSet, OMX_StateExecuting, NULL);
1807 error = WaitForState(*pHandle, OMX_StateExecuting);
1831 error = OMX_SendCommand(*pHandle,OMX_CommandStateSet, OMX_StateIdle, NULL);
1837 error = WaitForState(*pHandle, OMX_StateIdle);
1847 error = OMX_GetState(*pHandle, &state);
1872 OMX_EmptyThisBuffer(*pHandle, pBuffer);
1885 error = OMX_SendCommand(*pHandle,OMX_CommandStateSet, OMX_StateIdle, NULL);
1891 error = WaitForState(*pHandle, OMX_StateIdle);
1909 error = OMX_SendCommand(*pHandle,OMX_CommandStateSet, OMX_StateIdle, NULL);
1916 error = WaitForState(*pHandle, OMX_StateIdle);
1944 error = OMX_SetConfig(*pHandle, OMX_IndexConfigAudioVolume, pCompPrivateStructGain);
1956 error = OMX_SetConfig(*pHandle, OMX_IndexConfigAudioVolume, pCompPrivateStructGain);
1968 error = OMX_SendCommand(*pHandle, OMX_CommandStateSet, OMX_StateIdle, NULL);
1975 error = WaitForState(*pHandle, OMX_StateIdle);
2011 OMX_FillThisBuffer(*pHandle, pBuf);
2023 WaitForState(*pHandle,OMX_StateIdle);
2025 error = OMX_FreeBuffer(pHandle,OMX_DirInput,pInputBufferHeader[i]);
2030 error = OMX_FreeBuffer(pHandle,OMX_DirOutput,pOutputBufferHeader[i]);
2065 OMX_SendCommand(*pHandle,OMX_CommandStateSet, OMX_StateLoaded, NULL);
2066 WaitForState(*pHandle, OMX_StateLoaded);
2068 OMX_SendCommand(*pHandle,OMX_CommandStateSet,OMX_StateWaitForResources,NULL);
2069 WaitForState(*pHandle,OMX_StateWaitForResources);
2076 OMX_SendCommand(*pHandle,OMX_CommandStateSet,OMX_StateIdle,NULL);
2077 error = OMX_AllocateBuffer(pHandle,
2089 WaitForState(*pHandle,OMX_StateIdle);
2091 OMX_SendCommand(*pHandle,OMX_CommandStateSet,OMX_StateExecuting,NULL);
2092 WaitForState(*pHandle,OMX_StateExecuting);
2097 OMX_EmptyThisBuffer(*pHandle, pInputBufferHeader[i]);
2099 /* send_input_buffer (pHandle, pOutputBufferHeader, fIn); */
2107 OMX_SendCommand(*pHandle,OMX_CommandStateSet,OMX_StateIdle,NULL);
2108 WaitForState(*pHandle,OMX_StateIdle);
2117 error = OMX_FreeBuffer(pHandle,OMX_DirInput,pInputBufferHeader[i]);
2124 error = OMX_FreeBuffer(pHandle,OMX_DirOutput,pOutputBufferHeader[i]);
2131 OMX_SendCommand(*pHandle,OMX_CommandStateSet, OMX_StateLoaded, NULL);
2132 WaitForState(*pHandle, OMX_StateLoaded);
2144 error = OMX_GetState(*pHandle, &state);
2166 error = OMX_SendCommand(*pHandle,OMX_CommandStateSet, OMX_StateIdle, NULL);
2172 error = WaitForState(*pHandle, OMX_StateIdle);
2198 error = OMX_SendCommand(*pHandle, OMX_CommandPortDisable, -1, NULL);
2209 error = OMX_FreeBuffer(*pHandle, INPUT_PORT, pInputBufferHeader[i]);
2219 error = OMX_FreeBuffer(*pHandle, OUTPUT_PORT, pOutputBufferHeader[i]);
2262 error = OMX_SendCommand(*pHandle,OMX_CommandStateSet, OMX_StateLoaded, NULL);
2269 error = WaitForState(*pHandle, OMX_StateLoaded);
2283 error = OMX_SendCommand(pHandle,OMX_CommandStateSet, OMX_StateWaitForResources, NULL);
2288 error = WaitForState(pHandle, OMX_StateWaitForResources);
2374 cmd_data.hComponent = *pHandle;
2385 error = TIOMX_FreeHandle(*pHandle);
2390 APP_DPRINT("%d :: App: pHandle = %p\n",__LINE__,pHandle);
2399 error= newfree(pHandle);
2435 error = FreeAllResources(*pHandle,
2442 error = freeAllUseResources(*pHandle,
2528 OMX_ERRORTYPE FreeAllResources( OMX_HANDLETYPE pHandle,
2541 eError = OMX_FreeBuffer(pHandle, INPUT_PORT, pBufferIn+i);
2552 eError = OMX_FreeBuffer(pHandle, OUTPUT_PORT, pBufferOut+i);
2586 eError = TIOMX_FreeHandle(pHandle);
2615 OMX_ERRORTYPE freeAllUseResources(OMX_HANDLETYPE pHandle,
2683 eError = TIOMX_FreeHandle(pHandle);