Lines Matching refs:pComponentPrivate

186     WMADEC_COMPONENT_PRIVATE *pComponentPrivate = NULL;
219 OMX_MALLOC_GENERIC(pHandle->pComponentPrivate, WMADEC_COMPONENT_PRIVATE);
220 ((WMADEC_COMPONENT_PRIVATE *)pHandle->pComponentPrivate)->pHandle = pHandle;
223 ((WMADEC_COMPONENT_PRIVATE *)pHandle->pComponentPrivate)->sPortParam.nPorts = 0x2;
224 ((WMADEC_COMPONENT_PRIVATE *)pHandle->pComponentPrivate)->sPortParam.nStartPortNumber = 0x0;
232 ((WMADEC_COMPONENT_PRIVATE *)pHandle->pComponentPrivate)->wma_op=wma_op;
233 ((WMADEC_COMPONENT_PRIVATE *)pHandle->pComponentPrivate)->rcaheader=rcaheader;
235 ((WMADEC_COMPONENT_PRIVATE *)pHandle->pComponentPrivate)->wmaParams[INPUT_PORT] = wma_ip;
236 ((WMADEC_COMPONENT_PRIVATE *)pHandle->pComponentPrivate)->wmaParams[OUTPUT_PORT] = (OMX_AUDIO_PARAM_WMATYPE*)wma_op;
239 pComponentPrivate = pHandle->pComponentPrivate;
240 OMX_MALLOC_GENERIC(pComponentPrivate->pInputBufferList, BUFFERLIST);
241 OMX_DBG_INIT(pComponentPrivate->dbg, "OMX_DBG_WMADEC");
244 OMX_PRDSP1(pComponentPrivate->dbg, "PERF %d :: OMX_WmaDecoder.c\n", __LINE__);
245 pComponentPrivate->pPERF = PERF_Create(PERF_FOURCC('W','M','A','_'),
251 pComponentPrivate->iPVCapabilityFlags.iIsOMXComponentMultiThreaded = OMX_TRUE;
252 pComponentPrivate->iPVCapabilityFlags.iOMXComponentNeedsNALStartCode = OMX_FALSE;
253 pComponentPrivate->iPVCapabilityFlags.iOMXComponentSupportsExternalOutputBufferAlloc = OMX_FALSE;
254 pComponentPrivate->iPVCapabilityFlags.iOMXComponentSupportsExternalInputBufferAlloc = OMX_FALSE;
255 pComponentPrivate->iPVCapabilityFlags.iOMXComponentSupportsMovableInputBuffers = OMX_FALSE;
256 pComponentPrivate->iPVCapabilityFlags.iOMXComponentSupportsPartialFrames = OMX_FALSE;
257 pComponentPrivate->iPVCapabilityFlags.iOMXComponentCanHandleIncompleteFrames = OMX_FALSE;
260 pComponentPrivate->pInputBufferList->numBuffers = 0; /* initialize number of buffers */
261 pComponentPrivate->bDspStoppedWhileExecuting = OMX_FALSE;
262 OMX_MALLOC_GENERIC(pComponentPrivate->pOutputBufferList, BUFFERLIST);
264 pComponentPrivate->pOutputBufferList->numBuffers = 0; /* initialize number of buffers */
265 OMX_MALLOC_GENERIC(pComponentPrivate->pHeaderInfo, WMA_HeadInfo);
266 OMX_MALLOC_GENERIC(pComponentPrivate->pDspDefinition, TI_OMX_DSP_DEFINITION);
269 pComponentPrivate->pHeaderInfo->iPackets.dwLo = 178 ;
270 pComponentPrivate->pHeaderInfo->iPlayDuration.dwHi = 0 ;
271 pComponentPrivate->pHeaderInfo->iPlayDuration.dwLo = 917760000 ;
272 pComponentPrivate->pHeaderInfo->iMaxPacketSize = 349 ;
273 pComponentPrivate->pHeaderInfo->iStreamType.Data1 = -127295936 ;
274 pComponentPrivate->pHeaderInfo->iStreamType.Data2 = 23373 ;
275 pComponentPrivate->pHeaderInfo->iStreamType.Data3 = 4559 ;
276 pComponentPrivate->pHeaderInfo->iStreamType.Data4[0] = 168 ;
277 pComponentPrivate->pHeaderInfo->iStreamType.Data4[1] = 253 ;
278 pComponentPrivate->pHeaderInfo->iStreamType.Data4[2] = 0 ;
279 pComponentPrivate->pHeaderInfo->iStreamType.Data4[3] = 128 ;
280 pComponentPrivate->pHeaderInfo->iStreamType.Data4[4] = 95 ;
281 pComponentPrivate->pHeaderInfo->iStreamType.Data4[5] = 92 ;
282 pComponentPrivate->pHeaderInfo->iStreamType.Data4[6] = 68 ;
283 pComponentPrivate->pHeaderInfo->iStreamType.Data4[7] = 43 ;
284 pComponentPrivate->pHeaderInfo->iTypeSpecific = 28 ;
285 pComponentPrivate->pHeaderInfo->iStreamNum = 1 ;
286 pComponentPrivate->pHeaderInfo->iFormatTag = 353 ;
287 pComponentPrivate->pHeaderInfo->iBlockAlign = 40 ;
288 pComponentPrivate->pHeaderInfo->iSamplePerSec = 8000;
289 pComponentPrivate->pHeaderInfo->iAvgBytesPerSec = 625 ;
290 pComponentPrivate->pHeaderInfo->iChannel = 1 ;
291 pComponentPrivate->pHeaderInfo->iValidBitsPerSample = 16 ;
292 pComponentPrivate->pHeaderInfo->iSizeWaveHeader = 10 ;
293 pComponentPrivate->pHeaderInfo->iEncodeOptV = 0 ;
294 pComponentPrivate->pHeaderInfo->iValidBitsPerSample = 16 ;
295 pComponentPrivate->pHeaderInfo->iChannelMask = 0 ;
296 pComponentPrivate->pHeaderInfo->iSamplePerBlock = 8704;
299 pComponentPrivate->bConfigData = 0; /* assume the first buffer received will contain only config data, need to use bufferFlag instead */
300 pComponentPrivate->reconfigInputPort = 0;
301 pComponentPrivate->reconfigOutputPort = 0;
304 pComponentPrivate->pOutputBufferList->pBufHdr[i] = NULL;
305 pComponentPrivate->pInputBufferList->pBufHdr[i] = NULL;
307 pComponentPrivate->dasfmode = 0;
308 pComponentPrivate->bPortDefsAllocated = 0;
309 pComponentPrivate->bCompThreadStarted = 0;
310 pComponentPrivate->bInitParamsInitialized = 0;
311 pComponentPrivate->pMarkBuf = NULL;
312 pComponentPrivate->pMarkData = NULL;
313 pComponentPrivate->nEmptyBufferDoneCount = 0;
314 pComponentPrivate->nEmptyThisBufferCount = 0;
315 pComponentPrivate->strmAttr = NULL;
316 pComponentPrivate->bDisableCommandParam = 0;
317 pComponentPrivate->bEnableCommandParam = 0;
319 pComponentPrivate->nUnhandledFillThisBuffers=0;
320 pComponentPrivate->nUnhandledEmptyThisBuffers = 0;
321 pComponentPrivate->SendAfterEOS = 0;
323 pComponentPrivate->bFlushOutputPortCommandPending = OMX_FALSE;
324 pComponentPrivate->bFlushInputPortCommandPending = OMX_FALSE;
329 pComponentPrivate->pInputBufHdrPending[i] = NULL;
330 pComponentPrivate->pOutputBufHdrPending[i] = NULL;
332 pComponentPrivate->nInvalidFrameCount = 0;
333 pComponentPrivate->nNumInputBufPending = 0;
334 pComponentPrivate->nNumOutputBufPending = 0;
335 pComponentPrivate->bDisableCommandPending = 0;
336 pComponentPrivate->bEnableCommandPending = 0;
337 pComponentPrivate->bBypassDSP = OMX_FALSE;
338 pComponentPrivate->bNoIdleOnStop= OMX_FALSE;
339 pComponentPrivate->bIdleCommandPending = OMX_FALSE;
340 pComponentPrivate->nOutStandingFillDones = 0;
342 pComponentPrivate->sInPortFormat.eEncoding = OMX_AUDIO_CodingWMA;
343 pComponentPrivate->sInPortFormat.nIndex = 0;
344 pComponentPrivate->sInPortFormat.nPortIndex = INPUT_PORT;
345 pComponentPrivate->bPreempted = OMX_FALSE;
347 pComponentPrivate->sOutPortFormat.eEncoding = OMX_AUDIO_CodingPCM; /*chrisk*/
348 pComponentPrivate->sOutPortFormat.nIndex = 1;
349 pComponentPrivate->sOutPortFormat.nPortIndex = OUTPUT_PORT;
351 OMX_MALLOC_SIZE(pComponentPrivate->sDeviceString, 100*sizeof(OMX_STRING), OMX_STRING);
370 strcpy((char *) pComponentPrivate->componentRole.cRole, WMA_DEC_ROLE);
372 strcpy((char*)pComponentPrivate->sDeviceString,"/eteedn:i0:o0/codec\0");
376 pthread_mutex_init(&pComponentPrivate->AlloBuf_mutex, NULL);
377 pthread_cond_init (&pComponentPrivate->AlloBuf_threshold, NULL);
378 pComponentPrivate->AlloBuf_waitingsignal = 0;
380 pthread_mutex_init(&pComponentPrivate->InLoaded_mutex, NULL);
381 pthread_cond_init (&pComponentPrivate->InLoaded_threshold, NULL);
382 pComponentPrivate->InLoaded_readytoidle = 0;
384 pthread_mutex_init(&pComponentPrivate->InIdle_mutex, NULL);
385 pthread_cond_init (&pComponentPrivate->InIdle_threshold, NULL);
386 pComponentPrivate->InIdle_goingtoloaded = 0;
388 pthread_mutex_init(&pComponentPrivate->codecStop_mutex, NULL);
389 pthread_cond_init (&pComponentPrivate->codecStop_threshold, NULL);
390 pComponentPrivate->codecStop_waitingsignal = 0;
392 pthread_mutex_init(&pComponentPrivate->codecFlush_mutex, NULL);
393 pthread_cond_init (&pComponentPrivate->codecFlush_threshold, NULL);
394 pComponentPrivate->codecFlush_waitingsignal = 0;
396 OMX_CreateEvent(&(pComponentPrivate->AlloBuf_event));
397 pComponentPrivate->AlloBuf_waitingsignal = 0;
399 OMX_CreateEvent(&(pComponentPrivate->InLoaded_event));
400 pComponentPrivate->InLoaded_readytoidle = 0;
402 OMX_CreateEvent(&(pComponentPrivate->InIdle_event));
403 pComponentPrivate->InIdle_goingtoloaded = 0;
410 OMX_PRCOMM2(pComponentPrivate->dbg, "%d ::pPortDef_ip = %p\n", __LINE__,pPortDef_ip);
411 OMX_PRCOMM2(pComponentPrivate->dbg, "%d ::pPortDef_op = %p\n", __LINE__,pPortDef_op);
413 ((WMADEC_COMPONENT_PRIVATE*) pHandle->pComponentPrivate)->pPortDef[INPUT_PORT]
416 ((WMADEC_COMPONENT_PRIVATE*) pHandle->pComponentPrivate)->pPortDef[OUTPUT_PORT]
436 if(pComponentPrivate->pPortDef[OUTPUT_PORT]->nBufferSize == 0)
442 pPortDef_op->nBufferSize = pComponentPrivate->pPortDef[OUTPUT_PORT]->nBufferSize;
446 pComponentPrivate->bIsInvalidState = OMX_FALSE;
451 OMX_PRCOMM2(pComponentPrivate->dbg, "%d :: Initialize RM Proxy... \n", __LINE__);
453 OMX_PRINT2(pComponentPrivate->dbg, "%d ::OMX_ComponentInit\n", __LINE__);
455 OMX_ERROR4(pComponentPrivate->dbg, "%d ::Error returned from loading ResourceManagerProxy thread\n",
460 OMX_PRINT1(pComponentPrivate->dbg, "%d ::Start Component Thread \n", __LINE__);
462 /*OMX_PRINT1(pComponentPrivate->dbg, "%d ::OMX_ComponentInit\n", __LINE__);*/
464 OMX_ERROR4(pComponentPrivate->dbg, "%d ::Error returned from the Component\n",
468 OMX_PRINT1(pComponentPrivate->dbg, "%d ::OMX_ComponentInit\n", __LINE__);
474 OMX_PRINT1(pComponentPrivate->dbg, "%d ::OMX_ComponentInit\n", __LINE__);
476 OMX_TRACE4(pComponentPrivate->dbg, "[WMA Dec Component] - failure to open WRITE pipe\n");
480 OMX_PRINT1(pComponentPrivate->dbg, "%d ::OMX_ComponentInit\n", __LINE__);
482 OMX_TRACE4(pComponentPrivate->dbg, "[WMA Dec Component] - failure to open READ pipe\n");
485 OMX_PRINT1(pComponentPrivate->dbg, "%d ::OMX_ComponentInit\n", __LINE__);
489 OMX_PRINT1(pComponentPrivate->dbg, "PERF %d :: OMX_WmaDecoder.c\n",__LINE__);
490 PERF_ThreadCreated(pComponentPrivate->pPERF, pComponentPrivate->ComponentThread,
497 OMX_PRINT2(pComponentPrivate->dbg, "%d ::OMX_ComponentInit - returning %d\n", __LINE__,eError);
502 OMX_MEMFREE_STRUCT(pComponentPrivate->sDeviceString);
503 OMX_MEMFREE_STRUCT(pComponentPrivate->pDspDefinition);
504 OMX_MEMFREE_STRUCT(pComponentPrivate->pHeaderInfo);
505 OMX_MEMFREE_STRUCT(pComponentPrivate->pOutputBufferList);
506 OMX_MEMFREE_STRUCT(pComponentPrivate->pInputBufferList);
509 OMX_MEMFREE_STRUCT(pHandle->pComponentPrivate);
542 WMADEC_COMPONENT_PRIVATE *pComponentPrivate =
543 (WMADEC_COMPONENT_PRIVATE *)pHandle->pComponentPrivate;
546 OMX_PRINT1(pComponentPrivate->dbg, "About to return OMX_ErrorBadParameter on line %d\n",__LINE__);
548 OMX_ERROR4(pComponentPrivate->dbg, "%d :: Received the empty callbacks from the \
554 memcpy (&(pComponentPrivate->cbInfo), pCallBacks, sizeof(OMX_CALLBACKTYPE));
559 pComponentPrivate->curState = OMX_StateLoaded;
561 OMX_PRDSP1(pComponentPrivate->dbg, "PERF %d :: OMX_WmaDecoder.c\n",__LINE__);
562 /* PERF_Boundary(pComponentPrivate->pPERFcomp,PERF_BoundaryComplete | PERF_BoundaryCleanup);*/
594 WMADEC_COMPONENT_PRIVATE *pComponentPrivate = (WMADEC_COMPONENT_PRIVATE *) pHandle->pComponentPrivate;
597 if (pComponentPrivate->curState == OMX_StateInvalid){
604 OMX_PRINT1(pComponentPrivate->dbg, "Inside the GetComponentVersion\n");
634 (WMADEC_COMPONENT_PRIVATE *)pHandle->pComponentPrivate;
769 WMADEC_COMPONENT_PRIVATE *pComponentPrivate;
773 pComponentPrivate = (WMADEC_COMPONENT_PRIVATE *)(((OMX_COMPONENTTYPE*)hComp)->pComponentPrivate);
781 OMX_PRINT1(pComponentPrivate->dbg, "pParameterStructure = %p\n",pParameterStructure);
783 if (pComponentPrivate->curState == OMX_StateInvalid){
788 if(pComponentPrivate->curState == OMX_StateInvalid) {
789 pComponentPrivate->cbInfo.EventHandler(
802 OMX_PRINT1(pComponentPrivate->dbg, "OMX_IndexParamAudioInit\n");
803 memcpy(ComponentParameterStructure, &pComponentPrivate->sPortParam, sizeof(OMX_PORT_PARAM_TYPE));
807 pComponentPrivate->pPortDef[INPUT_PORT]->nPortIndex) {
811 pComponentPrivate->pPortDef[INPUT_PORT],
816 pComponentPrivate->pPortDef[OUTPUT_PORT]->nPortIndex) {
820 pComponentPrivate->pPortDef[OUTPUT_PORT],
832 pComponentPrivate->pPortDef[INPUT_PORT]->nPortIndex) {
835 pComponentPrivate->sInPortFormat.nIndex) {
840 memcpy(ComponentParameterStructure, &pComponentPrivate->sInPortFormat,
845 pComponentPrivate->pPortDef[OUTPUT_PORT]->nPortIndex){
849 pComponentPrivate->sOutPortFormat.nIndex) {
855 memcpy(ComponentParameterStructure, &pComponentPrivate->sOutPortFormat,
868 OMX_PRINT2(pComponentPrivate->dbg, "%d :: GetParameter OMX_IndexParamAudioWma \n",__LINE__);
869 OMX_PRCOMM2(pComponentPrivate->dbg, "%d :: GetParameter nPortIndex %ld\n",__LINE__, ((OMX_AUDIO_PARAM_PORTFORMATTYPE *)(ComponentParameterStructure))->nPortIndex);
870 OMX_PRCOMM2(pComponentPrivate->dbg, "%d :: GetParameter wmaParams->nPortIndex %ld\n",__LINE__, pComponentPrivate->wmaParams[INPUT_PORT]->nPortIndex);
872 pComponentPrivate->wmaParams[INPUT_PORT]->nPortIndex)
874 memcpy(ComponentParameterStructure, pComponentPrivate->wmaParams[INPUT_PORT], sizeof(OMX_AUDIO_PARAM_PORTFORMATTYPE));
877 pComponentPrivate->wmaParams[OUTPUT_PORT]->nPortIndex)
879 memcpy(ComponentParameterStructure, pComponentPrivate->wmaParams[OUTPUT_PORT], sizeof(OMX_AUDIO_PARAM_PORTFORMATTYPE));
890 (OMX_AUDIO_PARAM_PCMMODETYPE*)pComponentPrivate->wma_op,
897 OMX_PRBUFFER2(pComponentPrivate->dbg, ":: GetParameter OMX_IndexParamCompBufferSupplier \n");
902 OMX_PRBUFFER2(pComponentPrivate->dbg, ":: GetParameter OMX_IndexParamCompBufferSupplier \n");
906 OMX_ERROR2(pComponentPrivate->dbg, ":: OMX_ErrorBadPortIndex from GetParameter");
919 OMX_PRINT1(pComponentPrivate->dbg, "%d :: Entering OMX_IndexParamVideoInit\n", __LINE__);
920 OMX_PRINT1(pComponentPrivate->dbg, "%d :: Entering OMX_IndexParamImageInit/OtherInit\n", __LINE__);
921 memcpy(ComponentParameterStructure,pComponentPrivate->sPortParam, sizeof(OMX_PORT_PARAM_TYPE));
933 OMX_PRDSP1(pComponentPrivate->dbg, "Entering PV_OMX_COMPONENT_CAPABILITY_TYPE_INDEX::%d\n", __LINE__);
937 OMX_ERROR4(pComponentPrivate->dbg, "%d :: ERROR PV_OMX_COMPONENT_CAPABILITY_TYPE_INDEX\n", __LINE__);
941 OMX_ERROR2(pComponentPrivate->dbg, "%d :: Copying PV_OMX_COMPONENT_CAPABILITY_TYPE_INDEX\n", __LINE__);
942 memcpy(pCap_flags, &(pComponentPrivate->iPVCapabilityFlags), sizeof(PV_OMXComponentCapabilityFlagsType));
952 OMX_PRINT1(pComponentPrivate->dbg, "%d :: Exiting GetParameter:: %x\n",__LINE__,nParamIndex);
977 WMADEC_COMPONENT_PRIVATE *pComponentPrivate;
982 pComponentPrivate = (WMADEC_COMPONENT_PRIVATE *)(((OMX_COMPONENTTYPE*)hComp)->pComponentPrivate);
992 if (pComponentPrivate->curState == OMX_StateInvalid){
1005 OMX_PRBUFFER4(pComponentPrivate->dbg, "%d :: Invalid input buffer Direction\n",__LINE__);
1007 OMX_ERROR4(pComponentPrivate->dbg, "About to return OMX_ErrorBadParameter on line %d\n",__LINE__);
1017 OMX_ERROR4(pComponentPrivate->dbg, "About to return OMX_ErrorBadParameter on line %d\n",__LINE__);
1020 pComponentPrivate->pPortDef[OUTPUT_PORT]->nBufferSize = pComponentParam->nBufferSize;
1024 OMX_PRINT1(pComponentPrivate->dbg, "About to return OMX_ErrorBadParameter on line %d\n",__LINE__);
1045 OMX_PRCOMM2(pComponentPrivate->dbg, "pCompWmaParam->nPortIndex == 0\n");
1047 pHandle->pComponentPrivate)->wmaParams[INPUT_PORT],
1051 pComponentPrivate->wmaParams[OUTPUT_PORT]->nSize = pCompWmaParam->nSize;
1052 pComponentPrivate->wmaParams[OUTPUT_PORT]->nPortIndex = pCompWmaParam->nPortIndex;
1053 pComponentPrivate->wmaParams[OUTPUT_PORT]->nBitRate = pCompWmaParam->nBitRate;
1054 pComponentPrivate->wmaParams[OUTPUT_PORT]->eFormat = pCompWmaParam->eFormat;
1063 pComponentPrivate->pPortDef[INPUT_PORT]->nPortIndex) {
1065 memcpy(pComponentPrivate->pPortDef[INPUT_PORT],
1072 pComponentPrivate->pPortDef[OUTPUT_PORT]->nPortIndex) {
1074 memcpy(pComponentPrivate->pPortDef[OUTPUT_PORT],
1085 if (pComponentPrivate->curState != OMX_StateLoaded) {
1092 memcpy(&(pComponentPrivate->componentRole), (void *)pRole, sizeof(OMX_PARAM_COMPONENTROLETYPE));
1101 memcpy(pComponentPrivate->wma_op, wma_op, sizeof(OMX_AUDIO_PARAM_PCMMODETYPE));
1110 pComponentPrivate->pPortDef[INPUT_PORT]->nPortIndex) {
1111 OMX_PRINT2(pComponentPrivate->dbg, ":: SetParameter OMX_IndexParamCompBufferSupplier \n");
1116 pComponentPrivate->pPortDef[OUTPUT_PORT]->nPortIndex) {
1117 OMX_PRINT2(pComponentPrivate->dbg, ":: SetParameter OMX_IndexParamCompBufferSupplier \n");
1122 OMX_ERROR2(pComponentPrivate->dbg, ":: OMX_ErrorBadPortIndex from SetParameter");
1153 WMADEC_COMPONENT_PRIVATE *pComponentPrivate;
1157 pComponentPrivate = (WMADEC_COMPONENT_PRIVATE *)
1158 (((OMX_COMPONENTTYPE*)hComp)->pComponentPrivate);
1160 OMX_PRINT1(pComponentPrivate->dbg, "Inside GetConfig\n");
1163 if (pComponentPrivate->curState == OMX_StateInvalid){
1172 streamInfo->streamId = pComponentPrivate->streamID;
1175 OMX_DBG_GETCONFIG(pComponentPrivate->dbg, ComponentConfigStructure);
1184 OMX_PRINT1(pComponentPrivate->dbg, "Exiting GetConfig\n");
1206 WMADEC_COMPONENT_PRIVATE *pComponentPrivate;
1218 pComponentPrivate = (WMADEC_COMPONENT_PRIVATE *)pHandle->pComponentPrivate;
1219 OMX_PRSTATE1(pComponentPrivate->dbg, "Set Config %d\n",__LINE__);
1222 if (pComponentPrivate->curState == OMX_StateInvalid){
1230 memcpy(pComponentPrivate->pDspDefinition,pDspDefinition,sizeof(TI_OMX_DSP_DEFINITION));
1232 memcpy(pComponentPrivate->pHeaderInfo,headerInfo,sizeof(WMA_HeadInfo));
1233 if(pComponentPrivate->pDspDefinition->dasfMode == 0){
1234 pComponentPrivate->dasfmode = 0;
1236 else if (pComponentPrivate->pDspDefinition->dasfMode == 1) {
1237 pComponentPrivate->dasfmode = 1;
1239 else if(pComponentPrivate->pDspDefinition->dasfMode == 2) {
1240 pComponentPrivate->dasfmode = 1;
1242 pComponentPrivate->streamID = pDspDefinition->streamId;
1256 OMX_MMMIXER_DATAPATH(pComponentPrivate->sDeviceString, RENDERTYPE_DECODER, pComponentPrivate->streamID);
1260 strcpy((char*)pComponentPrivate->sDeviceString,(char*)RTM_STRING);
1264 strcpy((char*)pComponentPrivate->sDeviceString,(char*)ACDN_STRING);
1272 OMX_DBG_SETCONFIG(pComponentPrivate->dbg, ComponentConfigStructure);
1279 OMX_PRINT1(pComponentPrivate->dbg, "%d :: Exiting SetConfig\n", __LINE__);
1280 OMX_PRINT1(pComponentPrivate->dbg, "%d :: Returning = 0x%x\n",__LINE__,eError);
1309 if (pHandle && pHandle->pComponentPrivate) {
1311 pHandle->pComponentPrivate)->curState;
1340 WMADEC_COMPONENT_PRIVATE *pComponentPrivate =
1341 (WMADEC_COMPONENT_PRIVATE *)pHandle->pComponentPrivate;
1345 pComponentPrivate)->pPortDef[INPUT_PORT];
1347 if (pComponentPrivate->curState == OMX_StateInvalid){
1353 OMX_PRINT1(pComponentPrivate->dbg, "PERF %d :: OMX_WmaDecoder.c\n",__LINE__);
1354 PERF_ReceivedFrame(pComponentPrivate->pPERF,
1366 OMX_ERROR4(pComponentPrivate->dbg, "About to return OMX_ErrorBadParameter on line %d\n",__LINE__);
1375 if (pBuffer->nVersion.nVersion != pComponentPrivate->nVersion) {
1385 if(pComponentPrivate->curState != OMX_StateExecuting && pComponentPrivate->curState != OMX_StatePause
1386 && pComponentPrivate->curState != OMX_StateIdle) {
1391 OMX_PRBUFFER1(pComponentPrivate->dbg, "\n------------------------------------------\n\n");
1392 OMX_PRBUFFER1(pComponentPrivate->dbg, "%d :: Component Sending Filled ip buff %p to Component Thread\n",
1394 OMX_PRBUFFER1(pComponentPrivate->dbg, "\n------------------------------------------\n\n");
1396 if (pComponentPrivate->bBypassDSP == 0) {
1397 pComponentPrivate->app_nBuf--;
1400 pComponentPrivate->pMarkData = pBuffer->pMarkData;
1401 pComponentPrivate->hMarkTargetComponent = pBuffer->hMarkTargetComponent;
1403 pComponentPrivate->nUnhandledEmptyThisBuffers++;
1405 ret = write (pComponentPrivate->dataPipe[1], &pBuffer, sizeof(OMX_BUFFERHEADERTYPE*));
1408 OMX_TRACE4(pComponentPrivate->dbg, "%d :: Error in Writing to the Data pipe\n", __LINE__);
1413 pComponentPrivate->nEmptyThisBufferCount++;
1436 WMADEC_COMPONENT_PRIVATE *pComponentPrivate =
1437 (WMADEC_COMPONENT_PRIVATE *)pHandle->pComponentPrivate;
1441 OMX_PRBUFFER1(pComponentPrivate->dbg, "\n------------------------------------------\n\n");
1442 OMX_PRBUFFER1(pComponentPrivate->dbg, "%d :: Component Sending Emptied op buff %p to Component Thread\n",
1444 OMX_PRBUFFER1(pComponentPrivate->dbg, "\n------------------------------------------\n\n");
1447 pComponentPrivate)->pPortDef[OUTPUT_PORT];
1449 if (pComponentPrivate->curState == OMX_StateInvalid){
1455 OMX_PRDSP1(pComponentPrivate->dbg, "PERF %d :: OMX_WmaDecoder.c\n",__LINE__);
1456 PERF_ReceivedFrame(pComponentPrivate->pPERF,
1469 OMX_ERROR4(pComponentPrivate->dbg, "About to return OMX_ErrorBadParameter on line %d\n",__LINE__);
1478 if (pBuffer->nVersion.nVersion != pComponentPrivate->nVersion) {
1488 if(pComponentPrivate->curState != OMX_StateExecuting && pComponentPrivate->curState != OMX_StatePause) {
1493 OMX_PRBUFFER1(pComponentPrivate->dbg, "FillThisBuffer Line %d\n",__LINE__);
1495 OMX_PRBUFFER1(pComponentPrivate->dbg, "FillThisBuffer Line %d\n",__LINE__);
1499 OMX_PRBUFFER1(pComponentPrivate->dbg, "FillThisBuffer Line %d\n",__LINE__);
1501 OMX_PRBUFFER1(pComponentPrivate->dbg, "pComponentPrivate->pMarkBuf = %p\n",pComponentPrivate->pMarkBuf);
1502 OMX_PRBUFFER1(pComponentPrivate->dbg, "pComponentPrivate->pMarkData = %p\n",pComponentPrivate->pMarkData);
1503 if(pComponentPrivate->pMarkBuf){
1504 OMX_PRBUFFER1(pComponentPrivate->dbg, "FillThisBuffer Line %d\n",__LINE__);
1505 pBuffer->hMarkTargetComponent = pComponentPrivate->pMarkBuf->hMarkTargetComponent;
1506 pBuffer->pMarkData = pComponentPrivate->pMarkBuf->pMarkData;
1507 pComponentPrivate->pMarkBuf = NULL;
1510 if (pComponentPrivate->pMarkData) {
1511 OMX_PRBUFFER1(pComponentPrivate->dbg, "FillThisBuffer Line %d\n",__LINE__);
1512 pBuffer->hMarkTargetComponent = pComponentPrivate->hMarkTargetComponent;
1513 pBuffer->pMarkData = pComponentPrivate->pMarkData;
1514 pComponentPrivate->pMarkData = NULL;
1516 pComponentPrivate->nUnhandledFillThisBuffers++;
1517 nRet = write (pComponentPrivate->dataPipe[1], &pBuffer,
1520 OMX_ERROR4(pComponentPrivate->dbg, "%d :: Error in Writing to the Data pipe\n", __LINE__);
1547 WMADEC_COMPONENT_PRIVATE *pComponentPrivate =
1548 (WMADEC_COMPONENT_PRIVATE *)pComponent->pComponentPrivate;
1550 dbg = pComponentPrivate->dbg;
1557 PERF_Boundary(pComponentPrivate->pPERF,
1580 pComponentPrivate->bIsStopping = 1;
1588 OMX_MEMFREE_STRUCT(pComponentPrivate->pHeaderInfo);
1589 OMX_MEMFREE_STRUCT(pComponentPrivate->pDspDefinition);
1590 OMX_MEMFREE_STRUCT(pComponentPrivate->pInputBufferList);
1591 OMX_MEMFREE_STRUCT(pComponentPrivate->pOutputBufferList);
1592 OMX_MEMFREE_STRUCT(pComponentPrivate->sDeviceString);
1593 OMX_MEMFREE_STRUCT(pComponentPrivate->rcaheader);
1596 PERF_Boundary(pComponentPrivate->pPERF,
1598 PERF_Done(pComponentPrivate->pPERF);
1600 OMX_MEMFREE_STRUCT(pComponentPrivate);
1601 OMX_PRINT1(dbg, "%d ::After free(pComponentPrivate)\n",__LINE__);
1655 WMADEC_COMPONENT_PRIVATE *pComponentPrivate;
1659 pComponentPrivate = (WMADEC_COMPONENT_PRIVATE *)
1660 (((OMX_COMPONENTTYPE*)hComponent)->pComponentPrivate);
1663 pComponentPrivate)->pPortDef[nPortIndex];
1666 if (pComponentPrivate->curState == OMX_StateInvalid){
1672 OMX_PRCOMM2(pComponentPrivate->dbg, "%d :: pPortDef = %p\n", __LINE__,pPortDef);
1673 OMX_PRCOMM2(pComponentPrivate->dbg, "%d :: pPortDef->bEnabled = %d\n", __LINE__,pPortDef->bEnabled);
1675 OMX_PRDSP2(pComponentPrivate->dbg, "pPortDef->bEnabled = %d\n", pPortDef->bEnabled);
1678 pComponentPrivate->AlloBuf_waitingsignal = 1;
1680 pthread_mutex_lock(&pComponentPrivate->AlloBuf_mutex);
1681 pthread_cond_wait(&pComponentPrivate->AlloBuf_threshold, &pComponentPrivate->AlloBuf_mutex);
1682 pthread_mutex_unlock(&pComponentPrivate->AlloBuf_mutex);
1684 OMX_WaitForEvent(&(pComponentPrivate->AlloBuf_event));
1695 OMX_PRBUFFER2(pComponentPrivate->dbg, "%d :: Malloc Failed\n",__LINE__);
1706 pComponentPrivate->pInputBufferList->pBufHdr[pComponentPrivate->pInputBufferList->numBuffers] = pBufferHeader;
1707 pComponentPrivate->pInputBufferList->bBufferPending[pComponentPrivate->pInputBufferList->numBuffers] = 0;
1708 OMX_PRBUFFER1(pComponentPrivate->dbg, "pComponentPrivate->pInputBufferList->pBufHdr[%d] = %p\n",pComponentPrivate->pInputBufferList->numBuffers,pComponentPrivate->pInputBufferList->pBufHdr[pComponentPrivate->pInputBufferList->numBuffers]);
1709 pComponentPrivate->pInputBufferList->bufferOwner[pComponentPrivate->pInputBufferList->numBuffers++] = 1;
1710 OMX_PRBUFFER1(pComponentPrivate->dbg, "Allocate Buffer Line %d\n",__LINE__);
1711 OMX_PRBUFFER1(pComponentPrivate->dbg, "pComponentPrivate->pInputBufferList->numBuffers = %d\n",pComponentPrivate->pInputBufferList->numBuffers);
1712 OMX_PRBUFFER1(pComponentPrivate->dbg, "pPortDef->nBufferCountMin = %ld\n",pPortDef->nBufferCountMin);
1713 if (pComponentPrivate->pInputBufferList->numBuffers == pPortDef->nBufferCountActual) {
1720 pComponentPrivate->pOutputBufferList->pBufHdr[pComponentPrivate->pOutputBufferList->numBuffers] = pBufferHeader;
1721 pComponentPrivate->pOutputBufferList->bBufferPending[pComponentPrivate->pOutputBufferList->numBuffers] = 0;
1722 OMX_PRBUFFER1(pComponentPrivate->dbg, "pComponentPrivate->pOutputBufferList->pBufHdr[%d] = %p\n",pComponentPrivate->pOutputBufferList->numBuffers,pComponentPrivate->pOutputBufferList->pBufHdr[pComponentPrivate->pOutputBufferList->numBuffers]);
1723 pComponentPrivate->pOutputBufferList->bufferOwner[pComponentPrivate->pOutputBufferList->numBuffers++] = 1;
1724 if (pComponentPrivate->pOutputBufferList->numBuffers == pPortDef->nBufferCountActual) {
1733 if((pComponentPrivate->pPortDef[OUTPUT_PORT]->bPopulated == pComponentPrivate->pPortDef[OUTPUT_PORT]->bEnabled)&&
1734 (pComponentPrivate->pPortDef[INPUT_PORT]->bPopulated == pComponentPrivate->pPortDef[INPUT_PORT]->bEnabled) &&
1735 (pComponentPrivate->InLoaded_readytoidle))
1739 pComponentPrivate->InLoaded_readytoidle = 0;
1741 pthread_mutex_lock(&pComponentPrivate->InLoaded_mutex);
1742 pthread_cond_signal(&pComponentPrivate->InLoaded_threshold);
1743 pthread_mutex_unlock(&pComponentPrivate->InLoaded_mutex);
1745 OMX_SignalEvent(&(pComponentPrivate->InLoaded_event));
1751 pBufferHeader->pPlatformPrivate = pComponentPrivate;
1755 pComponentPrivate->nVersion = pBufferHeader->nVersion.nVersion;
1759 OMX_PRINT2(pComponentPrivate->dbg, "Line %d\n",__LINE__);
1762 if (pComponentPrivate->bEnableCommandPending && pPortDef->bPopulated) {
1763 SendCommand (pComponentPrivate->pHandle,
1765 pComponentPrivate->bEnableCommandParam,NULL);
1769 OMX_PRDSP1(pComponentPrivate->dbg, "PERF %d :: OMX_WmaDecoder.c\n",__LINE__);
1770 PERF_ReceivedBuffer(pComponentPrivate->pPERF,
1776 OMX_PRINT1(pComponentPrivate->dbg, "AllocateBuffer returning %d\n",eError);
1797 WMADEC_COMPONENT_PRIVATE * pComponentPrivate = NULL;
1804 pComponentPrivate = (WMADEC_COMPONENT_PRIVATE *)
1805 (((OMX_COMPONENTTYPE*)hComponent)->pComponentPrivate);
1807 pHandle = (OMX_COMPONENTTYPE *) pComponentPrivate->pHandle;
1809 buff = pComponentPrivate->pInputBufferList->pBufHdr[i];
1811 OMX_PRBUFFER2(pComponentPrivate->dbg, "Found matching input buffer\n");
1812 OMX_PRBUFFER2(pComponentPrivate->dbg, "buff = %p\n",buff);
1813 OMX_PRBUFFER2(pComponentPrivate->dbg, "pBuffer = %p\n",pBuffer);
1818 OMX_PRBUFFER2(pComponentPrivate->dbg, "This is not a match\n");
1819 OMX_PRBUFFER2(pComponentPrivate->dbg, "buff = %p\n",buff);
1820 OMX_PRBUFFER2(pComponentPrivate->dbg, "pBuffer = %p\n",pBuffer);
1825 buff = pComponentPrivate->pOutputBufferList->pBufHdr[i];
1827 OMX_PRBUFFER2(pComponentPrivate->dbg, "Found matching output buffer\n");
1828 OMX_PRBUFFER2(pComponentPrivate->dbg, "buff = %p\n",buff);
1829 OMX_PRBUFFER2(pComponentPrivate->dbg, "pBuffer = %p\n",pBuffer);
1834 OMX_PRBUFFER2(pComponentPrivate->dbg, "This is not a match\n");
1835 OMX_PRBUFFER2(pComponentPrivate->dbg, "buff = %p\n",buff);
1836 OMX_PRBUFFER2(pComponentPrivate->dbg, "pBuffer = %p\n",pBuffer);
1842 if (pComponentPrivate->pInputBufferList->bufferOwner[inputIndex] == 1) {
1843 OMX_MEMFREE_STRUCT_DSPALIGN(pComponentPrivate->pInputBufferList->pBufHdr[inputIndex]->pBuffer, OMX_U8);
1846 OMX_PRDSP1(pComponentPrivate->dbg, "PERF %d :: OMX_WmaDecoder.c\n",__LINE__);
1847 PERF_SendingBuffer(pComponentPrivate->pPERF,
1848 pComponentPrivate->pInputBufferList->pBufHdr[inputIndex]->pBuffer,
1849 pComponentPrivate->pInputBufferList->pBufHdr[inputIndex]->nAllocLen,
1852 OMX_PRBUFFER2(pComponentPrivate->dbg, "%d:[FREE] %p\n",__LINE__,pComponentPrivate->pInputBufferList->pBufHdr[inputIndex]);
1853 OMX_MEMFREE_STRUCT(pComponentPrivate->pInputBufferList->pBufHdr[inputIndex]);
1854 pComponentPrivate->pInputBufferList->numBuffers--;
1856 if (pComponentPrivate->pInputBufferList->numBuffers <
1857 pComponentPrivate->pPortDef[INPUT_PORT]->nBufferCountMin) {
1859 pComponentPrivate->pPortDef[INPUT_PORT]->bPopulated = OMX_FALSE;
1862 if(pComponentPrivate->pPortDef[INPUT_PORT]->bEnabled &&
1863 pComponentPrivate->bLoadedCommandPending == OMX_FALSE &&
1864 (pComponentPrivate->curState == OMX_StateIdle ||
1865 pComponentPrivate->curState == OMX_StateExecuting ||
1866 pComponentPrivate->curState == OMX_StatePause)) {
1867 pComponentPrivate->cbInfo.EventHandler(
1873 if (pComponentPrivate->pOutputBufferList->bufferOwner[outputIndex] == 1) {
1874 OMX_MEMFREE_STRUCT_DSPALIGN(pComponentPrivate->pOutputBufferList->pBufHdr[outputIndex]->pBuffer, OMX_U8);
1878 OMX_PRDSP1(pComponentPrivate->dbg, "PERF %d :: OMX_WmaDecoder.c\n",__LINE__);
1879 PERF_SendingBuffer(pComponentPrivate->pPERF,
1880 pComponentPrivate->pOutputBufferList->pBufHdr[outputIndex]->pBuffer,
1881 pComponentPrivate->pOutputBufferList->pBufHdr[outputIndex]->nAllocLen,
1885 OMX_PRBUFFER2(pComponentPrivate->dbg, "%d:[FREE] %p\n",__LINE__,pComponentPrivate->pOutputBufferList->pBufHdr[outputIndex]);
1886 OMX_MEMFREE_STRUCT(pComponentPrivate->pOutputBufferList->pBufHdr[outputIndex]);
1887 pComponentPrivate->pOutputBufferList->numBuffers--;
1889 if (pComponentPrivate->pOutputBufferList->numBuffers <
1890 pComponentPrivate->pPortDef[OUTPUT_PORT]->nBufferCountMin) {
1891 pComponentPrivate->pPortDef[OUTPUT_PORT]->bPopulated = OMX_FALSE;
1893 if(pComponentPrivate->pPortDef[OUTPUT_PORT]->bEnabled &&
1894 pComponentPrivate->bLoadedCommandPending == OMX_FALSE &&
1895 !pComponentPrivate->reconfigOutputPort &&
1896 (pComponentPrivate->curState == OMX_StateIdle ||
1897 pComponentPrivate->curState == OMX_StateExecuting ||
1898 pComponentPrivate->curState == OMX_StatePause)) {
1899 pComponentPrivate->cbInfo.EventHandler(
1905 OMX_ERROR2(pComponentPrivate->dbg, "%d::Returning OMX_ErrorBadParameter\n",__LINE__);
1910 if ((!pComponentPrivate->pInputBufferList->numBuffers &&
1911 !pComponentPrivate->pOutputBufferList->numBuffers) &&
1912 pComponentPrivate->InIdle_goingtoloaded)
1914 pComponentPrivate->InIdle_goingtoloaded = 0;
1916 pthread_mutex_lock(&pComponentPrivate->InIdle_mutex);
1917 pthread_cond_signal(&pComponentPrivate->InIdle_threshold);
1918 pthread_mutex_unlock(&pComponentPrivate->InIdle_mutex);
1920 OMX_SignalEvent(&(pComponentPrivate->InIdle_event));
1926 if (pComponentPrivate->bDisableCommandPending &&
1927 (pComponentPrivate->pInputBufferList->numBuffers +
1928 pComponentPrivate->pOutputBufferList->numBuffers == 0)) {
1929 if (pComponentPrivate->pInputBufferList->numBuffers +
1930 pComponentPrivate->pOutputBufferList->numBuffers == 0) {
1931 SendCommand (pComponentPrivate->pHandle,OMX_CommandPortDisable,
1932 pComponentPrivate->bDisableCommandParam,NULL);
1936 if (pComponentPrivate->bDisableCommandPending &&
1937 (pComponentPrivate->pInputBufferList->numBuffers == 0)) {
1938 pComponentPrivate->bDisableCommandPending = OMX_FALSE;
1939 pComponentPrivate->cbInfo.EventHandler( pComponentPrivate->pHandle,
1940 pComponentPrivate->pHandle->pApplicationPrivate,
1947 if (pComponentPrivate->bDisableCommandPending &&
1948 (pComponentPrivate->pOutputBufferList->numBuffers == 0)) {
1949 pComponentPrivate->bDisableCommandPending = OMX_FALSE;
1950 pComponentPrivate->cbInfo.EventHandler( pComponentPrivate->pHandle,
1951 pComponentPrivate->pHandle->pApplicationPrivate,
1961 OMX_PRINT1(pComponentPrivate->dbg, "%d :: Exiting FreeBuffer\n", __LINE__);
1985 WMADEC_COMPONENT_PRIVATE *pComponentPrivate;
1989 pComponentPrivate = (WMADEC_COMPONENT_PRIVATE *)
1990 (((OMX_COMPONENTTYPE*)hComponent)->pComponentPrivate);
1993 if (pComponentPrivate->curState == OMX_StateInvalid){
2001 OMX_PRDSP1(pComponentPrivate->dbg, "PERF %d :: OMX_WmaDecoder.c\n",__LINE__);
2002 PERF_ReceivedBuffer(pComponentPrivate->pPERF,
2008 pComponentPrivate)->pPortDef[nPortIndex];
2010 pthread_mutex_lock(&pComponentPrivate->AlloBuf_mutex);
2011 pComponentPrivate->AlloBuf_waitingsignal = 1;
2013 pthread_cond_wait(&pComponentPrivate->AlloBuf_threshold, &pComponentPrivate->AlloBuf_mutex);
2014 pthread_mutex_unlock(&pComponentPrivate->AlloBuf_mutex);
2016 OMX_PRCOMM1(pComponentPrivate->dbg, "%d :: pPortDef = %p\n", __LINE__,pPortDef);
2017 OMX_PRCOMM1(pComponentPrivate->dbg, "%d :: pPortDef->bEnabled = %d\n", __LINE__,pPortDef->bEnabled);
2019 OMX_PRINT1(pComponentPrivate->dbg, "Line %d\n",__LINE__);
2021 OMX_ERROR4(pComponentPrivate->dbg, "%d :: In AllocateBuffer\n", __LINE__);
2026 OMX_PRINT1(pComponentPrivate->dbg, "Line %d\n",__LINE__);
2027 OMX_PRINT1(pComponentPrivate->dbg, "pPortDef->bPopulated =%d\n",pPortDef->bPopulated);
2028 OMX_PRINT1(pComponentPrivate->dbg, "nSizeBytes =%ld\n",nSizeBytes);
2029 OMX_PRBUFFER1(pComponentPrivate->dbg, "pPortDef->nBufferSize =%ld\n",pPortDef->nBufferSize);
2038 OMX_PRINT1(pComponentPrivate->dbg, "Line %d\n",__LINE__);
2040 OMX_PRBUFFER2(pComponentPrivate->dbg, "%d:[ALLOC] %p\n",__LINE__,pBufferHeader);
2048 OMX_PRINT1(pComponentPrivate->dbg, "Line %d\n",__LINE__);
2052 pComponentPrivate->pOutputBufferList->pBufHdr[pComponentPrivate->pOutputBufferList->numBuffers] = pBufferHeader;
2053 pComponentPrivate->pOutputBufferList->bBufferPending[pComponentPrivate->pOutputBufferList->numBuffers] = 0;
2054 pComponentPrivate->pOutputBufferList->bufferOwner[pComponentPrivate->pOutputBufferList->numBuffers++] = 0;
2055 if (pComponentPrivate->pOutputBufferList->numBuffers == pPortDef->nBufferCountActual) {
2062 pComponentPrivate->pInputBufferList->pBufHdr[pComponentPrivate->pInputBufferList->numBuffers] = pBufferHeader;
2063 pComponentPrivate->pInputBufferList->bBufferPending[pComponentPrivate->pInputBufferList->numBuffers] = 0;
2064 pComponentPrivate->pInputBufferList->bufferOwner[pComponentPrivate->pInputBufferList->numBuffers++] = 0;
2065 if (pComponentPrivate->pInputBufferList->numBuffers == pPortDef->nBufferCountActual) {
2070 if((pComponentPrivate->pPortDef[OUTPUT_PORT]->bPopulated == pComponentPrivate->pPortDef[OUTPUT_PORT]->bEnabled)&&
2071 (pComponentPrivate->pPortDef[INPUT_PORT]->bPopulated == pComponentPrivate->pPortDef[INPUT_PORT]->bEnabled) &&
2072 (pComponentPrivate->InLoaded_readytoidle))
2074 pComponentPrivate->InLoaded_readytoidle = 0;
2076 pthread_mutex_lock(&pComponentPrivate->InLoaded_mutex);
2077 pthread_cond_signal(&pComponentPrivate->InLoaded_threshold);
2078 pthread_mutex_unlock(&pComponentPrivate->InLoaded_mutex);
2080 OMX_SignalEvent(&(pComponentPrivate->InLoaded_event));
2084 OMX_PRINT1(pComponentPrivate->dbg, "Line %d\n",__LINE__);
2086 pBufferHeader->pPlatformPrivate = pComponentPrivate;
2090 pComponentPrivate->nVersion = pBufferHeader->nVersion.nVersion;
2093 OMX_PRINT1(pComponentPrivate->dbg, "Line %d\n",__LINE__);
2095 OMX_PRBUFFER1(pComponentPrivate->dbg, "pBufferHeader = %p\n",pBufferHeader);
2096 if (pComponentPrivate->bEnableCommandPending && pPortDef->bPopulated){
2097 OMX_PRCOMM2(pComponentPrivate->dbg, "Sending command before exiting usbuffer\n");
2098 SendCommand (pComponentPrivate->pHandle,
2100 pComponentPrivate->bEnableCommandParam,NULL);
2102 OMX_PRINT1(pComponentPrivate->dbg, "exiting Use buffer\n");
2165 WMADEC_COMPONENT_PRIVATE *pComponentPrivate;
2168 pComponentPrivate = (WMADEC_COMPONENT_PRIVATE *)(((OMX_COMPONENTTYPE*)hComponent)->pComponentPrivate);
2171 memcpy(cRole, &pComponentPrivate->componentRole.cRole, sizeof(OMX_U8) * OMX_MAX_STRINGNAME_SIZE);
2172 OMX_PRINT1(pComponentPrivate->dbg, "::::In ComponenetRoleEnum: cRole is set to %s\n",cRole);