Lines Matching refs:nPortIndex

185                                    OMX_IN OMX_U32 nPortIndex,
193 OMX_IN OMX_U32 nPortIndex,
198 OMX_IN OMX_U32 nPortIndex,
226 OMX_IN OMX_U32 nPortIndex,
246 VPP_DPRINT("VPP::Inside the AllocateBuffer portindex =%ld\n",nPortIndex);
248 if (nPortIndex == pComponentPrivate->sCompPorts[nPortIndex].pPortDef.nPortIndex) {
249 pPortDef = &(pComponentPrivate->sCompPorts[nPortIndex].pPortDef);
257 if (pComponentPrivate->sCompPorts[nPortIndex].pPortDef.nBufferSize > nSizeBytes) {
258 nBufSize = pComponentPrivate->sCompPorts[nPortIndex].pPortDef.nBufferSize;
262 nDirection = pComponentPrivate->sCompPorts[nPortIndex].pPortDef.eDir;
264 nCount = pComponentPrivate->sCompPorts[nPortIndex].nBufferCount;
269 pComponentPrivate->sCompPorts[nPortIndex].pVPPBufHeader[nCount].pBufHeader = pBufferHdr;
270 pComponentPrivate->sCompPorts[nPortIndex].pVPPBufHeader[nCount].bSelfAllocated = OMX_TRUE;
286 pBufferHdr->pInputPortPrivate = &(pComponentPrivate->sCompPorts[nPortIndex].pPortDef);
289 pBufferHdr->nInputPortIndex = nPortIndex;
290 if(nPortIndex == OMX_VPP_INPUT_OVERLAY_PORT){
298 pBufferHdr->pOutputPortPrivate = &(pComponentPrivate->sCompPorts[nPortIndex].pPortDef);
300 pBufferHdr->nOutputPortIndex = nPortIndex;
325 pComponentPrivate->sCompPorts[nPortIndex].pVPPBufHeader[nCount].pBufferStart = pBufferStart;
326 pComponentPrivate->sCompPorts[nPortIndex].nBufferCount++;
336 pComponentPrivate->sCompPorts[nPortIndex].pPortDef.nBufferCountActual,
337 pComponentPrivate->sCompPorts[nPortIndex].nBufferCount);
338 if (pComponentPrivate->sCompPorts[nPortIndex].pPortDef.nBufferCountActual ==
339 pComponentPrivate->sCompPorts[nPortIndex].nBufferCount) {
341 VPP_InitBufferDataPropagation(pComponentPrivate, nPortIndex);
345 pComponentPrivate->sCompPorts[nPortIndex].pVPPBufHeader[nCount].eBufferOwner = VPP_BUFFER_CLIENT;
346 * ppBufferHdr = pComponentPrivate->sCompPorts[nPortIndex].pVPPBufHeader[nCount].pBufHeader;
366 OMX_IN OMX_U32 nPortIndex,
380 if(!((nPortIndex == OMX_VPP_INPUT_PORT) ||
381 (nPortIndex == OMX_VPP_INPUT_OVERLAY_PORT) ||
382 (nPortIndex == OMX_VPP_RGB_OUTPUT_PORT)||
383 (nPortIndex == OMX_VPP_YUV_OUTPUT_PORT))){
387 VPP_DPRINT("VPP.c: VPP_FreeBuffer port %d\n", nPortIndex);
388 VPP_DPRINT("VPP:: # allocated buffers = %d\n", pMyData->sCompPorts[nPortIndex].nBufferCount);
389 eError = VPP_IsValidBuffer(pBufHeader, pMyData, nPortIndex, &nCount);
394 pBufferStart = pMyData->sCompPorts[nPortIndex].pVPPBufHeader[nCount].pBufferStart;
396 VPP_DPRINT(" Free_ComponentResources --nPortIndex= %d, Header = %p \n", nPortIndex,
397 pMyData->sCompPorts[nPortIndex].pVPPBufHeader[nCount].pBufHeader);
399 if(pMyData->sCompPorts[nPortIndex].pVPPBufHeader[nCount].bSelfAllocated == OMX_TRUE) {
436 pMyData->sCompPorts[nPortIndex].nBufferCount--;
437 VPP_DPRINT("nBufferCount %d\n", pMyData->sCompPorts[nPortIndex].nBufferCount);
438 if (pMyData->sCompPorts[nPortIndex].nBufferCount == 0) {
439 VPP_DPRINT("port %d is unpopulated\n", nPortIndex);
440 pMyData->sCompPorts[nPortIndex].pPortDef.bPopulated = OMX_FALSE;
442 if (pMyData->sCompPorts[nPortIndex].pPortDef.bEnabled &&
457 VPP_DPRINT("nPortIndex %d\n", nPortIndex);
458 VPP_DPRINT("pPortDef->bEnabled %d pPortDef->bPopulated %d pMyData->bDisableIncomplete[nPortIndex] %d (%d)\n",
459 pMyData->sCompPorts[nPortIndex].pPortDef.bEnabled,
460 pMyData->sCompPorts[nPortIndex].pPortDef.bPopulated,
461 pMyData->bDisableIncomplete[nPortIndex],
462 nPortIndex);
465 if ((!pMyData->sCompPorts[nPortIndex].pPortDef.bEnabled) &&
466 (pMyData->sCompPorts[nPortIndex].pPortDef.bPopulated == OMX_FALSE)) {
468 if (pMyData->bDisableIncomplete[nPortIndex] == OMX_TRUE) {
469 pMyData->sCompPorts[nPortIndex].pPortDef.bEnabled = OMX_FALSE;
470 pMyData->bDisableIncomplete[nPortIndex] = OMX_FALSE;
471 VPP_DPRINT("send OMX_CommandPortDisable for port %d\n", nPortIndex);
476 nPortIndex,
503 OMX_IN OMX_U32 nPortIndex,
519 VPP_DPRINT("VPP::UseBuffer nPortIndex= %lu\n",nPortIndex);
525 if (nPortIndex == pMyData->pInPortFormat->nPortIndex) {
526 pPortDef = &(pMyData->sCompPorts[nPortIndex].pPortDef);
528 else if (nPortIndex == pMyData->pInPortOverlayFormat->nPortIndex) {
529 pPortDef = &(pMyData->sCompPorts[nPortIndex].pPortDef);
531 else if (nPortIndex == pMyData->pOutPortRGBFormat->nPortIndex) {
532 pPortDef = &(pMyData->sCompPorts[nPortIndex].pPortDef);
534 else if (nPortIndex == pMyData->pOutPortYUVFormat->nPortIndex) {
535 pPortDef = &(pMyData->sCompPorts[nPortIndex].pPortDef);
551 if ((nPortIndex == pMyData->pInPortFormat->nPortIndex) ||
552 (nPortIndex == pMyData->pInPortOverlayFormat->nPortIndex)) {
553 pBufListObj->nInputPortIndex = nPortIndex;
554 if (!pMyData->sCompPorts[nPortIndex].hTunnelComponent) {
558 pBufListObj->nOutputPortIndex = pMyData->sCompPorts[nPortIndex].nTunnelPort;
560 pBufListObj->pInputPortPrivate = &(pMyData->sCompPorts[nPortIndex].pPortDef);
563 if(nPortIndex == OMX_VPP_INPUT_OVERLAY_PORT){
570 else if (( nPortIndex == pMyData->pOutPortRGBFormat->nPortIndex) ||
571 ( nPortIndex == pMyData->pOutPortYUVFormat->nPortIndex)) {
572 pBufListObj->nOutputPortIndex = nPortIndex;
573 if (!pMyData->sCompPorts[nPortIndex].hTunnelComponent) {
577 pBufListObj->nInputPortIndex = pMyData->sCompPorts[nPortIndex].nTunnelPort;
580 pBufListObj->pOutputPortPrivate = &(pMyData->sCompPorts[nPortIndex].pPortDef);
582 nCount = pMyData->sCompPorts[nPortIndex].nBufferCount;
583 pMyData->sCompPorts[nPortIndex].pVPPBufHeader[nCount].pBufHeader = pBufListObj;
584 pMyData->sCompPorts[nPortIndex].pVPPBufHeader[nCount].bSelfAllocated = OMX_FALSE;
586 if (!pMyData->sCompPorts[nPortIndex].hTunnelComponent) {
587 pMyData->sCompPorts[nPortIndex].pVPPBufHeader[nCount].eBufferOwner = VPP_BUFFER_CLIENT;
590 pMyData->sCompPorts[nPortIndex].pVPPBufHeader[nCount].eBufferOwner = VPP_BUFFER_CLIENT;
593 pMyData->sCompPorts[nPortIndex].nBufferCount++;
594 if (pMyData->sCompPorts[nPortIndex].nBufferCount == pPortDef->nBufferCountActual) {
596 VPP_InitBufferDataPropagation(pMyData, nPortIndex);
1098 OMX_U32 portindex = pComponentParam->nPortIndex;
1100 VPP_DPRINT ("VPP::Inside the GetParameter portindex = %d (%d)\n",(int)portindex, pComponentPrivate->sCompPorts[portindex].pPortDef.nPortIndex);
1101 if(portindex == pComponentPrivate->sCompPorts[portindex].pPortDef.nPortIndex){
1122 if (pVidFmt->nPortIndex == pComponentPrivate->pInPortFormat->nPortIndex) {
1136 else if(pVidFmt->nPortIndex == pComponentPrivate->pInPortOverlayFormat->nPortIndex) {
1150 else if (pVidFmt->nPortIndex == pComponentPrivate->pOutPortRGBFormat->nPortIndex) {
1164 else if (pVidFmt->nPortIndex == pComponentPrivate->pOutPortYUVFormat->nPortIndex) {
1186 VPP_DPRINT ("VPP::Inside the GetParameter portindex =%d\n" , (int)pBuffSupplierParam->nPortIndex);
1187 if (pBuffSupplierParam->nPortIndex == OMX_VPP_INPUT_PORT ||
1188 pBuffSupplierParam->nPortIndex == OMX_VPP_INPUT_OVERLAY_PORT ||
1189 pBuffSupplierParam->nPortIndex == OMX_VPP_RGB_OUTPUT_PORT ||
1190 pBuffSupplierParam->nPortIndex == OMX_VPP_YUV_OUTPUT_PORT ) {
1192 pBuffSupplierParam->eBufferSupplier = pComponentPrivate->sCompPorts[pBuffSupplierParam->nPortIndex].eSupplierSetting;
1256 if (pComponentParam->nPortIndex == pComponentPrivate->pInPortFormat->nPortIndex) {
1266 else if (pComponentParam->nPortIndex == pComponentPrivate->pInPortOverlayFormat->nPortIndex) {
1275 else if (pComponentParam->nPortIndex == pComponentPrivate->pOutPortRGBFormat->nPortIndex) {
1284 else if (pComponentParam->nPortIndex == pComponentPrivate->pOutPortYUVFormat->nPortIndex) {
1310 OMX_U32 portIndex = pComponentParam->nPortIndex;
1408 ((VPP_COMPONENT_PRIVATE*)pHandle->pComponentPrivate)->sCompPorts[portIndex].pPortDef.nPortIndex);
1445 if ( pBuffSupplierParam->nPortIndex == OMX_VPP_INPUT_PORT ||
1446 pBuffSupplierParam->nPortIndex == OMX_VPP_INPUT_OVERLAY_PORT ||
1447 pBuffSupplierParam->nPortIndex == OMX_VPP_RGB_OUTPUT_PORT ||
1448 pBuffSupplierParam->nPortIndex == OMX_VPP_YUV_OUTPUT_PORT ) {
1450 pComponentPrivate->sCompPorts[pBuffSupplierParam->nPortIndex].eSupplierSetting =
1518 if (Rotate->nPortIndex==OMX_VPP_RGB_OUTPUT_PORT) {
1521 else if (Rotate->nPortIndex==OMX_VPP_YUV_OUTPUT_PORT) {
1524 else if (Rotate->nPortIndex==OMX_VPP_INPUT_PORT ||Rotate->nPortIndex==OMX_VPP_INPUT_OVERLAY_PORT){
1536 if(nMirror->nPortIndex > OMX_VPP_MAXPORT_NUM){
1540 nMirror->eMirror = ((VPP_COMPONENT_PRIVATE*)pHandle->pComponentPrivate)->sCompPorts[nMirror->nPortIndex].eMirror;
1546 if(sScale->nPortIndex > OMX_VPP_MAXPORT_NUM){
1559 if((pInputSize->nPortIndex != OMX_VPP_INPUT_PORT) && (pInputSize->nPortIndex != OMX_VPP_INPUT_OVERLAY_PORT)){
1564 if(pInputSize->nPortIndex == OMX_VPP_INPUT_PORT){
1568 else if(pInputSize->nPortIndex == OMX_VPP_INPUT_OVERLAY_PORT){
1578 if((pOutputSize->nPortIndex != OMX_VPP_YUV_OUTPUT_PORT) && (pOutputSize->nPortIndex != OMX_VPP_RGB_OUTPUT_PORT)){
1583 if(pOutputSize->nPortIndex == OMX_VPP_YUV_OUTPUT_PORT){
1587 else if(pOutputSize->nPortIndex == OMX_VPP_RGB_OUTPUT_PORT){
1681 if (((Rotate->nPortIndex == OMX_VPP_RGB_OUTPUT_PORT) || (Rotate->nPortIndex == OMX_VPP_YUV_OUTPUT_PORT)) &&
1686 if(Rotate->nPortIndex == OMX_VPP_RGB_OUTPUT_PORT){
1690 else if (Rotate->nPortIndex == OMX_VPP_YUV_OUTPUT_PORT) {
1695 else if (((Rotate->nPortIndex == OMX_VPP_INPUT_PORT) || (Rotate->nPortIndex == OMX_VPP_INPUT_OVERLAY_PORT)) &&
1764 if(nMirror->nPortIndex > OMX_VPP_MAXPORT_NUM){
1769 eMirrorPrev = ((VPP_COMPONENT_PRIVATE*)pHandle->pComponentPrivate)->sCompPorts[nMirror->nPortIndex].eMirror;
1789 ->sCompPorts[nMirror->nPortIndex].eMirror = OMX_MirrorHorizontal;
1796 ->sCompPorts[nMirror->nPortIndex].eMirror = OMX_MirrorVertical;
1806 ->sCompPorts[nMirror->nPortIndex].eMirror = OMX_MirrorBoth;
1817 ->sCompPorts[nMirror->nPortIndex].eMirror = OMX_MirrorNone;
1829 if (nDither->eDither == OMX_DitherErrorDiffusion && nDither->nPortIndex == OMX_VPP_RGB_OUTPUT_PORT) {
1860 if(sScale->nPortIndex > OMX_VPP_MAXPORT_NUM){
1874 if((pInputSize->nPortIndex != OMX_VPP_INPUT_PORT) && (pInputSize->nPortIndex != OMX_VPP_INPUT_OVERLAY_PORT)){
1879 if(pInputSize->nPortIndex == OMX_VPP_INPUT_PORT){
1890 else if(pInputSize->nPortIndex == OMX_VPP_INPUT_OVERLAY_PORT){
1900 if((pOutputSize->nPortIndex != OMX_VPP_YUV_OUTPUT_PORT) && (pOutputSize->nPortIndex != OMX_VPP_RGB_OUTPUT_PORT)){
1905 if(pOutputSize->nPortIndex == OMX_VPP_YUV_OUTPUT_PORT){
1916 else if(pOutputSize->nPortIndex == OMX_VPP_RGB_OUTPUT_PORT){
2039 eError = VPP_IsValidBuffer(pBufHdr, pComponentPrivate, portDef->nPortIndex, &nCount);
2054 if(pComponentPrivate->sCompPorts[portDef->nPortIndex].eSupplierSetting == OMX_BufferSupplyOutput){
2055 pComponentPrivate->sCompPorts[portDef->nPortIndex].pVPPBufHeader[nCount].eBufferOwner = VPP_BUFFER_TUNNEL_COMPONENT;
2062 pComponentPrivate->sCompPorts[portDef->nPortIndex].pVPPBufHeader[nCount].eBufferOwner = VPP_BUFFER_COMPONENT_IN;
2147 pComponentPrivate->sCompPorts[portDef->nPortIndex].pVPPBufHeader[nCount].pBufHeader->pBuffer = pBufHdr->pBuffer; /*Updating pBuffer*/
2148 pComponentPrivate->sCompPorts[portDef->nPortIndex].pVPPBufHeader[nCount].bHolding = OMX_TRUE;
2165 pComponentPrivate->sCompPorts[portDef->nPortIndex].pVPPBufHeader[nCount].eBufferOwner = VPP_BUFFER_COMPONENT_IN;
2183 * @param nPortIndex output port number
2265 if(pComponentPrivate->sCompPorts[portDef->nPortIndex].eSupplierSetting == OMX_BufferSupplyOutput){
2266 pComponentPrivate->sCompPorts[portDef->nPortIndex].pVPPBufHeader[nCount].eBufferOwner = VPP_BUFFER_COMPONENT_IN;
2269 pComponentPrivate->sCompPorts[portDef->nPortIndex].pVPPBufHeader[nCount].eBufferOwner = VPP_BUFFER_CLIENT;
2279 eError = VPP_IsValidBuffer(pBufferHdr,pComponentPrivate,portDef->nPortIndex, &nCount);
2284 pComponentPrivate->sCompPorts[portDef->nPortIndex].pVPPBufHeader[nCount].pBufHeader->pBuffer = pBufferHdr->pBuffer; /*Updating pBuffer*/
2285 pComponentPrivate->sCompPorts[portDef->nPortIndex].pVPPBufHeader[nCount].bHolding = OMX_TRUE;
2286 VPP_DPRINT("VPP: fillthisbuffer: (%p) %d %d %d\n", pBufferHdr, portDef->nPortIndex, nCount, pComponentPrivate->sCompPorts[portDef->nPortIndex].pVPPBufHeader[nCount].bHolding);
2293 pComponentPrivate->sCompPorts[portDef->nPortIndex].pVPPBufHeader[nCount].eBufferOwner = VPP_BUFFER_COMPONENT_IN;
2383 MyPortDef.nPortIndex = pPort->nTunnelPort;
2519 sBufferSupplier.nPortIndex = nTunneledPort;