Lines Matching refs:pComponentPrivate

83 extern OMX_ERRORTYPE VIDDEC_DisablePort(VIDDEC_COMPONENT_PRIVATE *pComponentPrivate, OMX_U32 nParam1);
84 extern OMX_ERRORTYPE VIDDEC_EnablePort(VIDDEC_COMPONENT_PRIVATE *pComponentPrivate, OMX_U32 nParam1);
85 extern OMX_ERRORTYPE VIDDEC_HandleDataBuf_FromApp( VIDDEC_COMPONENT_PRIVATE *pComponentPrivate);
86 extern OMX_ERRORTYPE VIDDEC_HandleDataBuf_FromDsp( VIDDEC_COMPONENT_PRIVATE *pComponentPrivate );
87 extern OMX_ERRORTYPE VIDDEC_HandleFreeDataBuf( VIDDEC_COMPONENT_PRIVATE *pComponentPrivate );
88 extern OMX_ERRORTYPE VIDDEC_HandleFreeOutputBufferFromApp(VIDDEC_COMPONENT_PRIVATE *pComponentPrivate) ;
91 extern OMX_ERRORTYPE VIDDEC_HandleCommandMarkBuffer(VIDDEC_COMPONENT_PRIVATE *pComponentPrivate, OMX_U32 nParam1, OMX_PTR pCmdData);
92 extern OMX_ERRORTYPE VIDDEC_HandleCommandFlush(VIDDEC_COMPONENT_PRIVATE *pComponentPrivate, OMX_U32 nParam1, OMX_BOOL bPass);
93 extern OMX_ERRORTYPE VIDDEC_Handle_InvalidState (VIDDEC_COMPONENT_PRIVATE* pComponentPrivate);
120 VIDDEC_COMPONENT_PRIVATE* pComponentPrivate;
128 pComponentPrivate = (VIDDEC_COMPONENT_PRIVATE*)pThreadData;
131 pComponentPrivate->pPERFcomp = PERF_Create(PERF_FOURS("VD T"),
135 pLcmlHandle = (LCML_DSP_INTERFACE *)pComponentPrivate->pLCML;
138 fdmax = pComponentPrivate->cmdPipe[VIDDEC_PIPE_READ];
140 if (pComponentPrivate->free_inpBuf_Q[VIDDEC_PIPE_READ] > fdmax) {
141 fdmax = pComponentPrivate->free_inpBuf_Q[VIDDEC_PIPE_READ];
144 if (pComponentPrivate->free_outBuf_Q[VIDDEC_PIPE_READ] > fdmax) {
145 fdmax = pComponentPrivate->free_outBuf_Q[VIDDEC_PIPE_READ];
148 if (pComponentPrivate->filled_inpBuf_Q[VIDDEC_PIPE_READ] > fdmax) {
149 fdmax = pComponentPrivate->filled_inpBuf_Q[VIDDEC_PIPE_READ];
152 if (pComponentPrivate->filled_outBuf_Q[VIDDEC_PIPE_READ] > fdmax) {
153 fdmax = pComponentPrivate->filled_outBuf_Q[VIDDEC_PIPE_READ];
158 FD_SET(pComponentPrivate->cmdPipe[VIDDEC_PIPE_READ], &rfds);
159 FD_SET(pComponentPrivate->filled_outBuf_Q[VIDDEC_PIPE_READ], &rfds);
160 FD_SET(pComponentPrivate->free_inpBuf_Q[VIDDEC_PIPE_READ], &rfds);
161 FD_SET(pComponentPrivate->free_outBuf_Q[VIDDEC_PIPE_READ], &rfds);
162 FD_SET(pComponentPrivate->filled_inpBuf_Q[VIDDEC_PIPE_READ], &rfds);
186 OMX_TRACE4(pComponentPrivate->dbg, "Error in Select\n");
187 pComponentPrivate->cbInfo.EventHandler(pComponentPrivate->pHandle,
188 pComponentPrivate->pHandle->pApplicationPrivate,
197 if (FD_ISSET(pComponentPrivate->cmdPipe[VIDDEC_PIPE_READ], &rfds)) {
203 read(pComponentPrivate->cmdPipe[VIDDEC_PIPE_READ], &eCmd, sizeof(eCmd));
204 read(pComponentPrivate->cmdDataPipe[VIDDEC_PIPE_READ], &nParam1, sizeof(nParam1));
207 PERF_ReceivedCommand(pComponentPrivate->pPERFcomp,
212 OMX_ERROR2(pComponentPrivate->dbg, "Incorrect variable value used\n");
215 eError = VIDDEC_HandleCommand(pComponentPrivate, nParam1);
217 /*pComponentPrivate->cbInfo.EventHandler(pComponentPrivate->pHandle,
218 pComponentPrivate->pHandle->pApplicationPrivate,
229 OMX_VidDec_Return(pComponentPrivate);
230 VIDDEC_Handle_InvalidState( pComponentPrivate);
235 eError = VIDDEC_DisablePort(pComponentPrivate, nParam1);
237 pComponentPrivate->cbInfo.EventHandler(pComponentPrivate->pHandle,
238 pComponentPrivate->pHandle->pApplicationPrivate,
246 eError = VIDDEC_EnablePort(pComponentPrivate, nParam1);
248 pComponentPrivate->cbInfo.EventHandler(pComponentPrivate->pHandle,
249 pComponentPrivate->pHandle->pApplicationPrivate,
256 VIDDEC_HandleCommandFlush (pComponentPrivate, nParam1, OMX_TRUE);
259 read(pComponentPrivate->cmdDataPipe[VIDDEC_PIPE_READ], &pCmdData, sizeof(pCmdData));
260 pComponentPrivate->arrCmdMarkBufIndex[pComponentPrivate->nInCmdMarkBufIndex].hMarkTargetComponent = ((OMX_MARKTYPE*)(pCmdData))->hMarkTargetComponent;
261 pComponentPrivate->arrCmdMarkBufIndex[pComponentPrivate->nInCmdMarkBufIndex].pMarkData = ((OMX_MARKTYPE*)(pCmdData))->pMarkData;
262 pComponentPrivate->nInCmdMarkBufIndex++;
263 pComponentPrivate->nInCmdMarkBufIndex %= VIDDEC_MAX_QUEUE_SIZE;
274 if(pComponentPrivate->bPipeCleaned){
275 pComponentPrivate->bPipeCleaned =0;
278 if (FD_ISSET(pComponentPrivate->filled_outBuf_Q[VIDDEC_PIPE_READ], &rfds)) {
279 if(pComponentPrivate->bDynamicConfigurationInProgress){
283 eError = VIDDEC_HandleDataBuf_FromDsp(pComponentPrivate);
285 OMX_PRBUFFER4(pComponentPrivate->dbg, "Error while handling filled DSP output buffer\n");
286 pComponentPrivate->cbInfo.EventHandler(pComponentPrivate->pHandle,
287 pComponentPrivate->pHandle->pApplicationPrivate,
294 if ((FD_ISSET(pComponentPrivate->filled_inpBuf_Q[VIDDEC_PIPE_READ], &rfds))){
295 OMX_PRSTATE2(pComponentPrivate->dbg, "eExecuteToIdle 0x%x\n",pComponentPrivate->eExecuteToIdle);
297 if(pComponentPrivate->bDynamicConfigurationInProgress == OMX_TRUE ||
298 pComponentPrivate->eLCMLState != VidDec_LCML_State_Start){
303 eError = VIDDEC_HandleDataBuf_FromApp (pComponentPrivate);
305 OMX_PRBUFFER4(pComponentPrivate->dbg, "Error while handling filled input buffer\n");
306 pComponentPrivate->cbInfo.EventHandler(pComponentPrivate->pHandle,
307 pComponentPrivate->pHandle->pApplicationPrivate,
315 if (FD_ISSET(pComponentPrivate->free_inpBuf_Q[VIDDEC_PIPE_READ], &rfds)) {
316 if(pComponentPrivate->bDynamicConfigurationInProgress){
320 eError = VIDDEC_HandleFreeDataBuf(pComponentPrivate);
322 OMX_PRBUFFER4(pComponentPrivate->dbg, "Error while processing free input buffers\n");
323 pComponentPrivate->cbInfo.EventHandler(pComponentPrivate->pHandle,
324 pComponentPrivate->pHandle->pApplicationPrivate,
331 if (FD_ISSET(pComponentPrivate->free_outBuf_Q[VIDDEC_PIPE_READ], &rfds)) {
332 if(pComponentPrivate->bDynamicConfigurationInProgress){
336 OMX_PRSTATE2(pComponentPrivate->dbg, "eExecuteToIdle 0x%x\n",pComponentPrivate->eExecuteToIdle);
337 eError = VIDDEC_HandleFreeOutputBufferFromApp(pComponentPrivate);
339 OMX_PRBUFFER4(pComponentPrivate->dbg, "Error while processing free output buffer\n");
340 pComponentPrivate->cbInfo.EventHandler(pComponentPrivate->pHandle,
341 pComponentPrivate->pHandle->pApplicationPrivate,
353 PERF_Done(pComponentPrivate->pPERFcomp);
373 VIDDEC_COMPONENT_PRIVATE* pComponentPrivate = NULL;
375 pComponentPrivate = (VIDDEC_COMPONENT_PRIVATE*)pThreadData;
378 fdmax = pComponentPrivate->free_inpBuf_Q[VIDDEC_PIPE_READ];
380 if (pComponentPrivate->free_outBuf_Q[VIDDEC_PIPE_READ] > fdmax) {
381 fdmax = pComponentPrivate->free_outBuf_Q[VIDDEC_PIPE_READ];
384 if (pComponentPrivate->filled_inpBuf_Q[VIDDEC_PIPE_READ] > fdmax) {
385 fdmax = pComponentPrivate->filled_inpBuf_Q[VIDDEC_PIPE_READ];
388 if (pComponentPrivate->filled_outBuf_Q[VIDDEC_PIPE_READ] > fdmax) {
389 fdmax = pComponentPrivate->filled_outBuf_Q[VIDDEC_PIPE_READ];
391 while ((pComponentPrivate->nCountInputBFromApp != 0 &&
392 (pComponentPrivate->eLCMLState == VidDec_LCML_State_Start && pComponentPrivate->bDynamicConfigurationInProgress == OMX_FALSE)) ||
393 pComponentPrivate->nCountOutputBFromApp != 0 ||
394 pComponentPrivate->nCountInputBFromDsp != 0 || pComponentPrivate->nCountOutputBFromDsp != 0) {
396 FD_SET(pComponentPrivate->filled_outBuf_Q[VIDDEC_PIPE_READ], &rfds);
397 FD_SET(pComponentPrivate->free_inpBuf_Q[VIDDEC_PIPE_READ], &rfds);
398 FD_SET(pComponentPrivate->free_outBuf_Q[VIDDEC_PIPE_READ], &rfds);
399 FD_SET(pComponentPrivate->filled_inpBuf_Q[VIDDEC_PIPE_READ], &rfds);
421 pComponentPrivate->bPipeCleaned = 1;
426 OMX_PRINT2(pComponentPrivate->dbg, "Error in Select\n");
427 pComponentPrivate->cbInfo.EventHandler(pComponentPrivate->pHandle,
428 pComponentPrivate->pHandle->pApplicationPrivate,
437 if (FD_ISSET(pComponentPrivate->filled_outBuf_Q[VIDDEC_PIPE_READ], &rfds)) {
438 eError = VIDDEC_HandleDataBuf_FromDsp(pComponentPrivate);
440 OMX_PRBUFFER4(pComponentPrivate->dbg, "Error while handling filled DSP output buffer\n");
441 pComponentPrivate->cbInfo.EventHandler(pComponentPrivate->pHandle,
442 pComponentPrivate->pHandle->pApplicationPrivate,
449 if ((FD_ISSET(pComponentPrivate->filled_inpBuf_Q[VIDDEC_PIPE_READ], &rfds))){
450 OMX_PRSTATE2(pComponentPrivate->dbg, "eExecuteToIdle 0x%x\n",pComponentPrivate->eExecuteToIdle);
451 if(!(pComponentPrivate->bDynamicConfigurationInProgress == OMX_TRUE && pComponentPrivate->bInPortSettingsChanged == OMX_FALSE)){
452 eError = VIDDEC_HandleDataBuf_FromApp (pComponentPrivate);
454 OMX_PRBUFFER4(pComponentPrivate->dbg, "Error while handling filled input buffer\n");
455 pComponentPrivate->cbInfo.EventHandler(pComponentPrivate->pHandle,
456 pComponentPrivate->pHandle->pApplicationPrivate,
464 if (FD_ISSET(pComponentPrivate->free_inpBuf_Q[VIDDEC_PIPE_READ], &rfds)) {
465 eError = VIDDEC_HandleFreeDataBuf(pComponentPrivate);
467 OMX_PRBUFFER4(pComponentPrivate->dbg, "Error while processing free input buffers\n");
468 pComponentPrivate->cbInfo.EventHandler(pComponentPrivate->pHandle,
469 pComponentPrivate->pHandle->pApplicationPrivate,
476 if (FD_ISSET(pComponentPrivate->free_outBuf_Q[VIDDEC_PIPE_READ], &rfds)) {
477 OMX_PRSTATE2(pComponentPrivate->dbg, "eExecuteToIdle 0x%x\n",pComponentPrivate->eExecuteToIdle);
478 eError = VIDDEC_HandleFreeOutputBufferFromApp(pComponentPrivate);
480 OMX_PRBUFFER4(pComponentPrivate->dbg, "Error while processing free output buffer\n");
481 pComponentPrivate->cbInfo.EventHandler(pComponentPrivate->pHandle,
482 pComponentPrivate->pHandle->pApplicationPrivate,
492 pComponentPrivate->bPipeCleaned = OMX_TRUE;