Lines Matching defs:pComponentPrivate
87 AACENC_COMPONENT_PRIVATE* pComponentPrivate = (AACENC_COMPONENT_PRIVATE*)pThreadData;
88 OMX_COMPONENTTYPE *pHandle = pComponentPrivate->pHandle;
92 pComponentPrivate->pPERFcomp = PERF_Create(PERF_FOURCC('A', 'A', 'C', 'E'),
97 OMX_PRINT1(pComponentPrivate->dbg, "%d :: Entering ComponentThread\n", __LINE__);
98 fdmax = pComponentPrivate->cmdPipe[0];
100 if (pComponentPrivate->dataPipe[0] > fdmax)
101 fdmax = pComponentPrivate->dataPipe[0];
106 FD_SET (pComponentPrivate->cmdPipe[0], &rfds);
107 FD_SET (pComponentPrivate->dataPipe[0], &rfds);
120 if (pComponentPrivate->bIsThreadstop == 1) {
121 OMX_ERROR4(pComponentPrivate->dbg, ":: Comp Thrd Exiting here...\n");
128 OMX_PRINT1(pComponentPrivate->dbg, "%d : bIsStopping = %ld\n",__LINE__, pComponentPrivate->bIsStopping);
129 OMX_PRINT1(pComponentPrivate->dbg, "%d : lcml_nOpBuf = %ld\n",__LINE__, pComponentPrivate->lcml_nOpBuf);
130 OMX_PRINT1(pComponentPrivate->dbg, "%d : lcml_nIpBuf = %ld\n",__LINE__, pComponentPrivate->lcml_nIpBuf);
132 if (pComponentPrivate->bIsThreadstop == 1)
134 OMX_PRINT1(pComponentPrivate->dbg, "%d :: OMX_AACENC_ComponentThread \n",__LINE__);
135 pComponentPrivate->bIsStopping = 0;
136 pComponentPrivate->bIsThreadstop = 0;
137 pComponentPrivate->lcml_nOpBuf = 0;
138 pComponentPrivate->lcml_nIpBuf = 0;
139 pComponentPrivate->app_nBuf = 0; /* NOT USED */
140 pComponentPrivate->num_Op_Issued = 0;
141 pComponentPrivate->num_Sent_Ip_Buff = 0;
142 pComponentPrivate->num_Reclaimed_Op_Buff = 0;
143 pComponentPrivate->bIsEOFSent = 0;
144 OMX_PRINT1(pComponentPrivate->dbg, "%d :: OMX_AACENC_ComponentThread \n",__LINE__);
145 if (pComponentPrivate->curState != OMX_StateIdle)
147 OMX_PRINT1(pComponentPrivate->dbg, "%d ::OMX_AACENC_ComponentThread \n",__LINE__);
151 OMX_PRINT2(pComponentPrivate->dbg, "%d :: Component Time Out !!!!! \n",__LINE__);
155 OMX_ERROR2(pComponentPrivate->dbg, "%d :: Error in Select\n", __LINE__);
156 pComponentPrivate->cbInfo.EventHandler (pHandle, pHandle->pApplicationPrivate,
164 else if ((FD_ISSET (pComponentPrivate->dataPipe[0], &rfds)) && (pComponentPrivate->curState != OMX_StatePause))
166 OMX_PRCOMM2(pComponentPrivate->dbg, "%d :: DATA pipe is set in Component Thread\n",__LINE__);
167 OMX_PRDSP2(pComponentPrivate->dbg, "%d :: pHandle: %p \n",__LINE__, pHandle);
168 OMX_PRDSP1(pComponentPrivate->dbg, "%d :: pHandle->pComponentPrivate:%p \n",__LINE__, pHandle->pComponentPrivate);
170 OMX_PRDSP1(pComponentPrivate->dbg, "%d :: pComponentPrivate:%p \n",__LINE__, pComponentPrivate);
172 ret = read(pComponentPrivate->dataPipe[0], &pBufHeader, sizeof(pBufHeader));
175 OMX_ERROR4(pComponentPrivate->dbg, "%d :: Error while reading from the pipe\n",__LINE__);
179 OMX_PRBUFFER2(pComponentPrivate->dbg, "%d :: pBufHeader:%p \n",__LINE__, pBufHeader);
180 eError = AACENCHandleDataBuf_FromApp(pBufHeader,pComponentPrivate);
183 OMX_ERROR4(pComponentPrivate->dbg, "%d :: Error From AACENCHandleDataBuf_FromApp\n",__LINE__);
191 else if(FD_ISSET (pComponentPrivate->cmdPipe[0], &rfds))
193 OMX_PRDSP2(pComponentPrivate->dbg, "%d :: pHandle: %p \n",__LINE__,pHandle);
195 OMX_PRCOMM2(pComponentPrivate->dbg, "%d :: CMD pipe is set in Component Thread\n",__LINE__);
196 nRet = AACENCHandleCommand (pComponentPrivate);
199 OMX_ERROR2(pComponentPrivate->dbg, " %d :: Exiting from Component thread\n",__LINE__);
204 OMX_ERROR4(pComponentPrivate->dbg, "%d :: AACENC_CleanupInitParams returned error\n",__LINE__);
207 OMX_PRBUFFER2(pComponentPrivate->dbg, "%d :: ARM Side Resources Have Been Freed\n",__LINE__);
209 pComponentPrivate->curState = OMX_StateLoaded;
212 PERF_Boundary(pComponentPrivate->pPERFcomp,PERF_BoundaryComplete | PERF_BoundaryCleanup);
215 if(pComponentPrivate->bPreempted==0){
216 if (RemoveStateTransition(pComponentPrivate, OMX_TRUE) != OMX_ErrorNone) {
219 pComponentPrivate->cbInfo.EventHandler(pHandle,
223 pComponentPrivate->curState,
228 pComponentPrivate->cbInfo.EventHandler(pHandle,
234 pComponentPrivate->bPreempted = 0;
237 pComponentPrivate->bLoadedCommandPending = OMX_FALSE;
247 PERF_Done(pComponentPrivate->pPERFcomp);
249 OMX_PRINT1(pComponentPrivate->dbg, "%d :: Exiting ComponentThread\n", __LINE__);