Lines Matching refs:error

182     OMX_ERRORTYPE error = OMX_ErrorNone;
197 error = OMX_SendCommand(hComponent,OMX_CommandStateSet, OMX_StateIdle, NULL);
198 if(error != OMX_ErrorNone){
202 error = WaitForState(hComponent, OMX_StateIdle);
206 if(error != OMX_ErrorNone) {
207 APP_DPRINT( "Error: G722Encoder->WaitForState reports an error %X\n", error);
297 OMX_ERRORTYPE error = OMX_ErrorNone;
387 error = TIOMX_Init();
388 if(error != OMX_ErrorNone) {
450 error = TIOMX_GetHandle(&pHandle, strG722Encoder, &AppData, &PcmCaBa);
453 error = TIOMX_GetHandle(&pHandle, strG722Encoder, &AppData, &PcmCaBa);
455 if((error != OMX_ErrorNone) || (pHandle == NULL)) {
514 error = OMX_SetParameter (pHandle,OMX_IndexParamPortDefinition, pCompPrivateStruct);
517 error = OMX_SetParameter (pHandle,OMX_IndexParamPortDefinition, pCompPrivateStruct);
519 if (error != OMX_ErrorNone) {
520 error = OMX_ErrorBadParameter;
536 error = OMX_SetParameter (pHandle, OMX_IndexParamPortDefinition, pCompPrivateStruct);
539 error = OMX_SetParameter (pHandle, OMX_IndexParamPortDefinition, pCompPrivateStruct);
541 if (error != OMX_ErrorNone) {
542 error = OMX_ErrorBadParameter;
565 error = OMX_SetParameter (pHandle, OMX_IndexParamAudioAdpcm, pG722Param);
568 error = OMX_SetParameter (pHandle, OMX_IndexParamAudioAdpcm, pG722Param);
570 if (error != OMX_ErrorNone) {
571 error = OMX_ErrorBadParameter;
580 error = OMX_SetParameter (pHandle, OMX_IndexParamAudioAdpcm, pG722Param);
583 error = OMX_SetParameter (pHandle, OMX_IndexParamAudioAdpcm, pG722Param);
585 if (error != OMX_ErrorNone) {
586 error = OMX_ErrorBadParameter;
608 error = OMX_GetExtensionIndex(pHandle, "OMX.TI.index.config.g722headerinfo",&index);
609 if (error != OMX_ErrorNone) {
617 error = OMX_AllocateBuffer(pHandle,&pInputBufferHeader,0,NULL,inBufSize);
618 if(error != OMX_ErrorNone) {
623 error = OMX_AllocateBuffer(pHandle,&pOutputBufferHeader,1,NULL,outBufSize);
624 if(error != OMX_ErrorNone) {
634 error = OMX_UseBuffer(pHandle,&pInputBufferHeader,0,NULL,inBufSize,pInputBuffer);
635 if(error != OMX_ErrorNone) {
643 error = OMX_UseBuffer(pHandle,&pOutputBufferHeader,1,NULL,outBufSize,pOutputBuffer);
644 if(error != OMX_ErrorNone) {
651 error = OMX_GetExtensionIndex(pHandle, "OMX.TI.index.config.g722streamIDinfo",&index);
652 if (error != OMX_ErrorNone) {
657 error = OMX_GetConfig (pHandle, index, streaminfo);
658 if(error != OMX_ErrorNone) {
659 error = OMX_ErrorBadParameter;
672 error = OMX_SetConfig (pHandle, index, pAppPrivate);
673 if(error != OMX_ErrorNone) {
674 error = OMX_ErrorBadParameter;
689 error = OMX_GetExtensionIndex(pHandle, "OMX.TI.index.config.g722.datapath",&index);
690 if (error != OMX_ErrorNone) {
694 error = OMX_SetConfig (pHandle, index, &dataPath);
695 if(error != OMX_ErrorNone) {
696 error = OMX_ErrorBadParameter;
702 error = OMX_SendCommand(pHandle, OMX_CommandStateSet, OMX_StateIdle, NULL);
703 if(error != OMX_ErrorNone) {
704 APP_DPRINT ("Error from SendCommand-Idle(Init) State function - error = %d\n",error);
708 error = WaitForState(pHandle, OMX_StateIdle);
712 if(error != OMX_ErrorNone) {
713 APP_DPRINT( "Error: G722Encoder->WaitForState reports an error %X\n", error);
747 error = OMX_SendCommand(pHandle, OMX_CommandStateSet, OMX_StateExecuting, NULL);
748 if(error != OMX_ErrorNone) {
753 error = WaitForState(pHandle, OMX_StateExecuting);
757 if(error != OMX_ErrorNone) {
758 APP_DPRINT( "Error: hAmrEncoder->WaitForState reports an error %X\n", error);
787 while((error == OMX_ErrorNone) && (whileloopdone != 1)) {
789 while((error == OMX_ErrorNone) && (testAppState != OMX_StateIdle)) {
826 error = send_input_buffer (pHandle, pBuffer, fIn);
827 if (error != OMX_ErrorNone) {
839 error = OMX_SendCommand(pHandle, OMX_CommandStateSet, OMX_StateIdle, NULL);
840 if(error != OMX_ErrorNone){
844 error = WaitForState(pHandle, OMX_StateIdle);
848 if(error != OMX_ErrorNone) {
849 APP_DPRINT( "Error: G722Encoder->WaitForState reports an error %X\n",error);
869 error = OMX_SendCommand(pHandle,OMX_CommandStateSet, OMX_StateIdle, NULL);
870 if(error != OMX_ErrorNone) {
874 error = WaitForState(pHandle, OMX_StateIdle);
878 if(error != OMX_ErrorNone) {
879 APP_DPRINT( "Error: G722Encoder->WaitForState reports an error %X\n", error);
891 error = send_input_buffer (pHandle, pBuffer, fIn);
892 if (error != OMX_ErrorNone) {
906 error = OMX_SendCommand(pHandle,OMX_CommandStateSet, OMX_StateIdle, NULL);
907 if(error != OMX_ErrorNone) {
912 error = WaitForState(pHandle, OMX_StateIdle);
916 if(error != OMX_ErrorNone) {
917 APP_DPRINT( "Error: G722Encoder->WaitForState reports an error %X\n", error);
931 error = OMX_SendCommand(pHandle, OMX_CommandStateSet,OMX_StateExecuting, NULL);
932 if(error != OMX_ErrorNone) {
937 error = WaitForState(pHandle, OMX_StateExecuting);
942 if(error != OMX_ErrorNone) {
943 APP_DPRINT("%d :: Error: hPcmEncoder->WaitForState reports an error\n",__LINE__);
952 error = OMX_SendCommand(pHandle, OMX_CommandStateSet, OMX_StatePause, NULL);
953 if(error != OMX_ErrorNone) {
959 error = WaitForState(pHandle, OMX_StatePause);
964 if(error != OMX_ErrorNone) {
965 APP_DPRINT("%d :: Error: hPcmEncoder->WaitForState reports an error\n", __LINE__);
972 error = OMX_SendCommand(pHandle, OMX_CommandStateSet,OMX_StateExecuting, NULL);
973 if(error != OMX_ErrorNone) {
978 error = WaitForState(pHandle, OMX_StateExecuting);
983 if(error != OMX_ErrorNone) {
984 APP_DPRINT("%d :: Error: hPcmEncoder->WaitForState reports an error\n",__LINE__);
994 error = send_input_buffer (pHandle, pBuffer, fIn);
995 if (error != OMX_ErrorNone) {
1008 error = OMX_SendCommand(pHandle,OMX_CommandStateSet, OMX_StateIdle, NULL);
1009 if(error != OMX_ErrorNone) {
1014 error = WaitForState(pHandle, OMX_StateIdle);
1018 if(error != OMX_ErrorNone) {
1019 APP_DPRINT( "Error: G722Encoder->WaitForState reports an error %X\n", error);
1037 error = OMX_SetConfig(pHandle, OMX_IndexConfigAudioVolume, pCompPrivateStructGain);
1038 if (error != OMX_ErrorNone)
1040 error = OMX_ErrorBadParameter;
1048 error = OMX_SetConfig(pHandle, OMX_IndexConfigAudioVolume, pCompPrivateStructGain);
1049 if (error != OMX_ErrorNone)
1051 error = OMX_ErrorBadParameter;
1063 error = OMX_SendCommand(pHandle, OMX_CommandStateSet, OMX_StateIdle, NULL);
1064 if(error != OMX_ErrorNone) {
1069 error = WaitForState(pHandle, OMX_StateIdle);
1073 if(error != OMX_ErrorNone) {
1074 APP_DPRINT( "Error: G722Encoder->WaitForState reports an error %X\n", error);
1113 error = OMX_FreeBuffer(pHandle,OMX_DirInput,pInputBufferHeader);
1114 if( (error != OMX_ErrorNone)) {
1118 error = OMX_FreeBuffer(pHandle,OMX_DirOutput,pOutputBufferHeader);
1119 if( (error != OMX_ErrorNone)) {
1142 error = OMX_AllocateBuffer(pHandle,&pInputBufferHeader,0,NULL,inBufSize);
1143 if(error != OMX_ErrorNone) {
1162 error = OMX_FreeBuffer(pHandle,OMX_DirInput,pInputBufferHeader);
1163 if( (error != OMX_ErrorNone)) {
1167 error = OMX_FreeBuffer(pHandle,OMX_DirOutput,pOutputBufferHeader);
1168 if( (error != OMX_ErrorNone)) {
1182 error = OMX_SendCommand(pHandle,OMX_CommandStateSet, OMX_StateLoaded, NULL);
1183 if(error != OMX_ErrorNone) {
1188 error = WaitForState(pHandle, OMX_StateLoaded);
1192 if(error != OMX_ErrorNone) {
1193 APP_DPRINT( "%d Error: WaitForState reports an error %X\n",__LINE__, error);
1204 error = OMX_GetState(pHandle, &state);
1205 if(error != OMX_ErrorNone) {
1206 APP_DPRINT("%d :: Warning: OMX_GetState has returned status %X\n", __LINE__, error);
1240 error = OMX_FreeBuffer(pHandle,OMX_DirInput,pInputBufferHeader);
1241 if( (error != OMX_ErrorNone)) {
1245 error = OMX_FreeBuffer(pHandle,OMX_DirOutput,pOutputBufferHeader);
1246 if( (error != OMX_ErrorNone)) {
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);
1273 if(error != OMX_ErrorNone) {
1278 error = WaitForState(pHandle, OMX_StateWaitForResources);
1289 error = TIOMX_FreeHandle(pHandle);
1290 if((error != OMX_ErrorNone)) {
1335 return error;
1349 OMX_ERRORTYPE error = OMX_ErrorNone;
1370 return error;