Home | History | Annotate | Download | only in test

Lines Matching refs:pOutPortDef

1083     OMX_PARAM_PORTDEFINITIONTYPE* pOutPortDef = NULL;
1163 MALLOC(pOutPortDef, OMX_PARAM_PORTDEFINITIONTYPE);
1492 pOutPortDef->nPortIndex = nIndex2;
1493 error = OMX_GetParameter(pHandle, OMX_IndexParamPortDefinition, pOutPortDef);
1499 if (pOutPortDef->eDir == nIndex1 ) {
1500 pOutPortDef->nPortIndex = nIndex1;
1503 pOutPortDef->nPortIndex = nIndex2;
1507 pOutPortDef->nSize = sizeof(OMX_PARAM_PORTDEFINITIONTYPE);
1508 pOutPortDef->nVersion.s.nVersionMajor = 0x1;
1509 pOutPortDef->nVersion.s.nVersionMinor = 0x0;
1510 pOutPortDef->nVersion.s.nRevision = 0x0;
1511 pOutPortDef->nVersion.s.nStep = 0x0;
1512 pOutPortDef->nPortIndex = 0x1;
1513 pOutPortDef->eDir = OMX_DirInput;
1514 pOutPortDef->nBufferCountActual = NUM_OF_BUFFERSJPEG;
1515 pOutPortDef->nBufferCountMin = 1;
1516 pOutPortDef->bEnabled = OMX_TRUE;
1517 pOutPortDef->bPopulated = OMX_FALSE;
1518 pOutPortDef->eDomain = OMX_PortDomainImage;
1521 pOutPortDef->format.image.cMIMEType = "JPEGENC";
1522 pOutPortDef->format.image.pNativeRender = NULL;
1523 pOutPortDef->format.image.nFrameWidth = nWidth;
1524 pOutPortDef->format.image.nFrameHeight = nHeight;
1525 pOutPortDef->format.image.nStride = -1;
1526 pOutPortDef->format.image.nSliceHeight = -1;
1527 pOutPortDef->format.image.bFlagErrorConcealment = OMX_FALSE;
1530 pOutPortDef->nBufferSize = (nWidth*nHeight);
1532 pOutPortDef->nBufferSize /=10;
1535 pOutPortDef->nBufferSize /= (100/qualityfactor);
1539 pOutPortDef->nBufferSize += 12288;
1543 pOutPortDef->format.image.eColorFormat = OMX_COLOR_FormatCbYCrY;
1546 pOutPortDef->format.image.eColorFormat = OMX_COLOR_FormatCbYCrY;
1549 pOutPortDef->format.image.eColorFormat = OMX_COLOR_FormatYUV420PackedPlanar;
1553 pOutPortDef->format.image.eCompressionFormat = OMX_IMAGE_CodingEXIF;
1556 pOutPortDef->format.image.eCompressionFormat = OMX_IMAGE_CodingJPEG;
1559 error = OMX_SetParameter (pHandle, OMX_IndexParamPortDefinition, pOutPortDef);
1678 pTemp= (OMX_U8*)malloc(pOutPortDef->nBufferSize+256);
1691 error = OMX_UseBuffer(pHandle, &pOutBuff[nCounter], nIndex2, (void*)&sJPEGEnc_CompID, pOutPortDef->nBufferSize,pOutBuffer[nCounter]);
1700 error = OMX_AllocateBuffer(pHandle, &pOutBuff[nCounter], nIndex2, (void *)&sJPEGEnc_CompID, pOutPortDef->nBufferSize);
2007 FREE(pOutPortDef);