Lines Matching refs:pComponentPrivate

121     VIDENC_COMPONENT_PRIVATE* pComponentPrivate = NULL;
131 pComponentPrivate = (VIDENC_COMPONENT_PRIVATE*)pThreadData;
132 pLcmlHandle = (LCML_DSP_INTERFACE*)pComponentPrivate->pLCML;
135 pComponentPrivate->pPERFcomp = PERF_Create(PERF_FOURCC('V', 'E', ' ', 'T'),
143 fdmax = pComponentPrivate->nCmdPipe[0];
145 if (pComponentPrivate->nFree_oPipe[0] > fdmax)
147 fdmax = pComponentPrivate->nFree_oPipe[0];
150 if (pComponentPrivate->nFilled_iPipe[0] > fdmax)
152 fdmax = pComponentPrivate->nFilled_iPipe[0];
158 FD_SET (pComponentPrivate->nCmdPipe[0], &rfds);
159 FD_SET (pComponentPrivate->nFree_oPipe[0], &rfds);
160 FD_SET (pComponentPrivate->nFilled_iPipe[0], &rfds);
168 OMX_TRACE2(pComponentPrivate->dbg, "pselect() = 0\n");
177 if (pComponentPrivate->eState != OMX_StateLoaded)
179 OMX_TRACE3(pComponentPrivate->dbg, "select() error.\n");
180 OMX_VIDENC_EVENT_HANDLER(pComponentPrivate, OMX_EventError, OMX_ErrorHardware, 0, NULL);
182 /*OMX_VIDENC_SET_ERROR_BAIL(eError, OMX_ErrorHardware, pComponentPrivate);*/
184 OMX_ERROR5(pComponentPrivate->dbg, "*Fatal Error : %x\n", eError);
185 OMX_VIDENC_HandleError(pComponentPrivate, eError);
189 if (FD_ISSET(pComponentPrivate->nCmdPipe[0], &rfds))
191 nRet = read(pComponentPrivate->nCmdPipe[0],
196 OMX_PRCOMM4(pComponentPrivate->dbg, "Error while reading from cmdPipe\n");
199 pComponentPrivate);
203 PERF_ReceivedCommand(pComponentPrivate->pPERFcomp,
208 OMX_PRCOMM2(pComponentPrivate->dbg, "Received thread close command.\n");
214 nRet = read(pComponentPrivate->nCmdDataPipe[0],
219 OMX_PRCOMM4(pComponentPrivate->dbg, "Error while reading from cmdDataPipe\n");
222 pComponentPrivate);
227 nRet = read(pComponentPrivate->nCmdDataPipe[0],
232 OMX_PRCOMM4(pComponentPrivate->dbg, "Error while reading from cmdDataPipe\n");
235 pComponentPrivate);
240 PERF_ReceivedCommand(pComponentPrivate->pPERFcomp,
249 OMX_PRSTATE2(pComponentPrivate->dbg, "Enters OMX_VIDENC_HandleCommandStateSet\n");
250 eError = OMX_VIDENC_HandleCommandStateSet(pComponentPrivate,
252 OMX_VIDENC_BAIL_IF_ERROR(eError, pComponentPrivate);
253 OMX_PRSTATE2(pComponentPrivate->dbg, "Exits OMX_VIDENC_HandleCommandStateSet\n");
256 OMX_PRSTATE2(pComponentPrivate->dbg, "Enters OMX_VIDENC_HandleCommandFlush\n");
257 eError = OMX_VIDENC_HandleCommandFlush(pComponentPrivate,
260 OMX_VIDENC_BAIL_IF_ERROR(eError, pComponentPrivate);
261 OMX_PRSTATE2(pComponentPrivate->dbg, "Exits OMX_VIDENC_HandleCommandFlush\n");
264 OMX_PRSTATE2(pComponentPrivate->dbg, "Enters OMX_VIDENC_HandleCommandDisablePort\n");
265 eError = OMX_VIDENC_HandleCommandDisablePort(pComponentPrivate,
267 OMX_VIDENC_BAIL_IF_ERROR(eError, pComponentPrivate);
268 OMX_PRSTATE2(pComponentPrivate->dbg, "Exits OMX_VIDENC_HandleCommandDisablePort\n");
271 OMX_PRSTATE2(pComponentPrivate->dbg, "Enters OMX_VIDENC_HandleCommandDisablePort\n");
272 eError = OMX_VIDENC_HandleCommandEnablePort(pComponentPrivate,
274 OMX_VIDENC_BAIL_IF_ERROR(eError, pComponentPrivate);
275 OMX_PRSTATE2(pComponentPrivate->dbg, "Exits OMX_VIDENC_HandleCommandDisablePort\n");
278 if (!pComponentPrivate->pMarkBuf)
280 pComponentPrivate->pMarkBuf = (OMX_MARKTYPE*)(pCmdData);
284 OMX_VIDENC_EVENT_HANDLER(pComponentPrivate,
292 if ((FD_ISSET(pComponentPrivate->nFilled_iPipe[0], &rfds)) &&
293 (pComponentPrivate->eState != OMX_StatePause &&
294 pComponentPrivate->eState != OMX_StateIdle &&
295 pComponentPrivate->eState != OMX_StateLoaded))
297 OMX_PRBUFFER1(pComponentPrivate->dbg, "Enters OMX_VIDENC_Process_FilledInBuf\n");
298 eError = OMX_VIDENC_Process_FilledInBuf(pComponentPrivate);
301 OMX_VIDENC_EVENT_HANDLER(pComponentPrivate,
306 OMX_VIDENC_BAIL_IF_ERROR(eError, pComponentPrivate);
308 OMX_PRBUFFER1(pComponentPrivate->dbg, "Exits OMX_VIDENC_Process_FilledInBuf\n");
311 if (FD_ISSET(pComponentPrivate->nFree_oPipe[0], &rfds) &&
312 (pComponentPrivate->eState!= OMX_StatePause &&
313 pComponentPrivate->eState != OMX_StateIdle &&
314 pComponentPrivate->eState != OMX_StateLoaded))
316 OMX_PRBUFFER1(pComponentPrivate->dbg, "Enters OMX_VIDENC_Process_FreeOutBuf\n");
317 eError = OMX_VIDENC_Process_FreeOutBuf(pComponentPrivate);
320 OMX_VIDENC_EVENT_HANDLER(pComponentPrivate,
325 OMX_VIDENC_BAIL_IF_ERROR(eError, pComponentPrivate);
327 OMX_PRBUFFER1(pComponentPrivate->dbg, "Exits OMX_VIDENC_Process_FreeOutBuf\n");
335 if (pComponentPrivate)
336 PERF_Done(pComponentPrivate->pPERFcomp);
338 if (pComponentPrivate)
339 OMX_PRINT2(pComponentPrivate->dbg, "Component Thread Exits\n");