Home
last modified time | relevance | path

Searched refs:pBufferHeader (Results 1 – 19 of 19) sorted by relevance

/hardware/ti/omap3/omx/audio/src/openmax_il/g729_dec/src/
DOMX_G729Decoder.c1624 OMX_BUFFERHEADERTYPE *pBufferHeader = NULL; in AllocateBuffer() local
1648 OMX_G729MALLOC_STRUCT(pBufferHeader, OMX_BUFFERHEADERTYPE); in AllocateBuffer()
1649 pBufferHeader->pBuffer = (OMX_U8 *)malloc(nSizeBytes + EXTRA_BUFFBYTES); in AllocateBuffer()
1650 memset(pBufferHeader->pBuffer, 0x0, nSizeBytes + EXTRA_BUFFBYTES); in AllocateBuffer()
1651 G729DEC_MEMPRINT("%d :: [ALLOC] %p\n",__LINE__,pBufferHeader->pBuffer); in AllocateBuffer()
1653 if (pBufferHeader->pBuffer == NULL) { in AllocateBuffer()
1655 if (pBufferHeader) { in AllocateBuffer()
1656 free(pBufferHeader); in AllocateBuffer()
1657 pBufferHeader = NULL; in AllocateBuffer()
1663 pBufferHeader->pBuffer += CACHE_ALIGNMENT; in AllocateBuffer()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/g726_enc/src/
DOMX_G726Encoder.c1350 OMX_BUFFERHEADERTYPE *pBufferHeader = NULL; in AllocateBuffer() local
1369 OMX_NBMALLOC_STRUCT(pBufferHeader, OMX_BUFFERHEADERTYPE); in AllocateBuffer()
1370 memset(pBufferHeader, 0x0, sizeof(OMX_BUFFERHEADERTYPE)); in AllocateBuffer()
1372 pBufferHeader->pBuffer = (OMX_U8 *)SafeMalloc(nSizeBytes + 256); in AllocateBuffer()
1373 G726ENC_MEMPRINT("%d :: ALLOCATING MEMORY = %p\n",__LINE__,pBufferHeader->pBuffer); in AllocateBuffer()
1374 if (pBufferHeader->pBuffer == NULL) { in AllocateBuffer()
1376 if (pBufferHeader) { in AllocateBuffer()
1377 SafeFree(pBufferHeader); in AllocateBuffer()
1378 pBufferHeader = NULL; in AllocateBuffer()
1383 pBufferHeader->pBuffer += 128; in AllocateBuffer()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/g726_dec/src/
DOMX_G726Decoder.c1674 OMX_BUFFERHEADERTYPE *pBufferHeader = NULL; in AllocateBuffer() local
1701 G726D_OMX_MALLOC(pBufferHeader, OMX_BUFFERHEADERTYPE); in AllocateBuffer()
1704 G726D_OMX_MALLOC_SIZE(pBufferHeader->pBuffer,(nSizeBytes + 256),OMX_U8); in AllocateBuffer()
1705 pBufferHeader->pBuffer += 128; in AllocateBuffer()
1706 pBufferHeader->nVersion.nVersion = G726DEC_BUFHEADER_VERSION; in AllocateBuffer()
1711 pBufferHeader, in AllocateBuffer()
1712 pBufferHeader->pBuffer, nPortIndex); in AllocateBuffer()
1719 pBufferHeader->pAppPrivate = pAppPrivate; in AllocateBuffer()
1720 pBufferHeader->pPlatformPrivate = pComponentPrivate; in AllocateBuffer()
1721 pBufferHeader->nAllocLen = nSizeBytes; in AllocateBuffer()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/g722_dec/src/
DOMX_G722Decoder.c1625 OMX_BUFFERHEADERTYPE *pBufferHeader = NULL; in AllocateBuffer() local
1652 G722D_OMX_MALLOC(pBufferHeader, OMX_BUFFERHEADERTYPE); in AllocateBuffer()
1655 G722D_OMX_MALLOC_SIZE(pBufferHeader->pBuffer,(nSizeBytes + 256),OMX_U8); in AllocateBuffer()
1656 pBufferHeader->pBuffer += 128; in AllocateBuffer()
1665 pBufferHeader->nVersion.nVersion = G722DEC_BUFHEADER_VERSION; in AllocateBuffer()
1670 pBufferHeader, in AllocateBuffer()
1671 pBufferHeader->pBuffer, nPortIndex); in AllocateBuffer()
1678 pBufferHeader->pAppPrivate = pAppPrivate; in AllocateBuffer()
1679 pBufferHeader->pPlatformPrivate = pComponentPrivate; in AllocateBuffer()
1680 pBufferHeader->nAllocLen = nSizeBytes; in AllocateBuffer()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/g722_enc/src/
DOMX_G722Encoder.c1656 OMX_BUFFERHEADERTYPE *pBufferHeader = NULL; in AllocateBuffer() local
1685 OMX_G722MALLOC_STRUCT (pBufferHeader, OMX_BUFFERHEADERTYPE); in AllocateBuffer()
1687 if (pBufferHeader == NULL) { in AllocateBuffer()
1688 …C_DPRINT("pBufferHeader = %p - about to exit with OMX_ErrorInsufficientResources\n",pBufferHeader); in AllocateBuffer()
1694 pBufferHeader->pBuffer = (OMX_U8 *)malloc(nSizeBytes + G722ENC_CACHE_ALIGN_MALLOC); in AllocateBuffer()
1696 G722ENC_MEMPRINT("%d:::[ALLOC] %p\n",__LINE__,pBufferHeader->pBuffer); in AllocateBuffer()
1697 memset (pBufferHeader->pBuffer, 0, nSizeBytes + G722ENC_CACHE_ALIGN_MALLOC); in AllocateBuffer()
1700 pBufferHeader->pBuffer += G722ENC_CACHE_ALIGN_OFFSET; in AllocateBuffer()
1701 if(NULL == pBufferHeader->pBuffer) { in AllocateBuffer()
1705 if (pBufferHeader) { in AllocateBuffer()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/g729_enc/src/
DOMX_G729Encoder.c1616 OMX_BUFFERHEADERTYPE *pBufferHeader = NULL; in AllocateBuffer() local
1644 OMX_G729MALLOC_STRUCT(pBufferHeader, OMX_BUFFERHEADERTYPE); in AllocateBuffer()
1645 pBufferHeader->pBuffer = (OMX_U8 *)malloc(nSizeBytes + 256); in AllocateBuffer()
1646 G729ENC_MEMPRINT("%d :: [ALLOC] %p\n",__LINE__,pBufferHeader->pBuffer); in AllocateBuffer()
1647 if (pBufferHeader->pBuffer == NULL) in AllocateBuffer()
1650 if (pBufferHeader) in AllocateBuffer()
1652 free(pBufferHeader); in AllocateBuffer()
1653 pBufferHeader = NULL; in AllocateBuffer()
1658 pBufferHeader->pBuffer += 128; in AllocateBuffer()
1661 pBufferHeader->nInputPortIndex = nPortIndex; in AllocateBuffer()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/mp3_dec/src/
DOMX_Mp3Decoder.c1875 OMX_BUFFERHEADERTYPE *pBufferHeader = NULL; in AllocateBuffer() local
1898 OMX_MALLOC_GENERIC(pBufferHeader, OMX_BUFFERHEADERTYPE); in AllocateBuffer()
1899 memset((pBufferHeader), 0x0, sizeof(OMX_BUFFERHEADERTYPE)); in AllocateBuffer()
1902 OMX_MALLOC_SIZE_DSPALIGN(pBufferHeader->pBuffer, nSizeBytes, OMX_U8); in AllocateBuffer()
1903 OMX_PRBUFFER2(pComponentPrivate->dbg, ": Malloced = %p\n",pBufferHeader->pBuffer); in AllocateBuffer()
1904 pBufferHeader->nVersion.nVersion = MP3DEC_BUFHEADER_VERSION; in AllocateBuffer()
1907 …FER2(pComponentPrivate->dbg, " :: Allocated BufHeader %p Buffer = %p, on port %ld\n",pBufferHeader, in AllocateBuffer()
1908 pBufferHeader->pBuffer, nPortIndex); in AllocateBuffer()
1914 pBufferHeader->pAppPrivate = pAppPrivate; in AllocateBuffer()
1915 pBufferHeader->pPlatformPrivate = pComponentPrivate; in AllocateBuffer()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/g711_dec/src/
DOMX_G711Decoder.c1587 OMX_BUFFERHEADERTYPE *pBufferHeader = NULL; in AllocateBuffer() local
1611 G711D_OMX_MALLOC(pBufferHeader, OMX_BUFFERHEADERTYPE); in AllocateBuffer()
1612 G711D_OMX_MALLOC_SIZE(pBufferHeader->pBuffer, (nSizeBytes + EXTRA_BUFFBYTES), OMX_U8 ); in AllocateBuffer()
1615 memset(pBufferHeader->pBuffer, 0, (nSizeBytes + EXTRA_BUFFBYTES)); in AllocateBuffer()
1618 pBufferHeader->pBuffer += CACHE_ALIGNMENT; in AllocateBuffer()
1621 pBufferHeader->nInputPortIndex = nPortIndex; in AllocateBuffer()
1622 pBufferHeader->nOutputPortIndex = -1; in AllocateBuffer()
1623 …rivate->pInputBufferList->pBufHdr[pComponentPrivate->pInputBufferList->numBuffers] = pBufferHeader; in AllocateBuffer()
1636 pBufferHeader->nInputPortIndex = -1; in AllocateBuffer()
1637 pBufferHeader->nOutputPortIndex = nPortIndex; in AllocateBuffer()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/wma_dec/src/
DOMX_WmaDecoder.c1657 OMX_BUFFERHEADERTYPE *pBufferHeader; in AllocateBuffer() local
1689 OMX_MALLOC_GENERIC(pBufferHeader, OMX_BUFFERHEADERTYPE); in AllocateBuffer()
1691 memset(pBufferHeader, 0x0, sizeof(OMX_BUFFERHEADERTYPE)); in AllocateBuffer()
1693 OMX_MALLOC_SIZE_DSPALIGN(pBufferHeader->pBuffer, nSizeBytes, OMX_U8); in AllocateBuffer()
1694 if(NULL == pBufferHeader->pBuffer) { in AllocateBuffer()
1696 if (pBufferHeader) { in AllocateBuffer()
1697 OMX_MEMFREE_STRUCT(pBufferHeader); in AllocateBuffer()
1704 pBufferHeader->nInputPortIndex = nPortIndex; in AllocateBuffer()
1705 pBufferHeader->nOutputPortIndex = -1; in AllocateBuffer()
1706 …rivate->pInputBufferList->pBufHdr[pComponentPrivate->pInputBufferList->numBuffers] = pBufferHeader; in AllocateBuffer()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/g711_enc/src/
DOMX_G711Encoder.c1423 OMX_BUFFERHEADERTYPE *pBufferHeader = NULL; in AllocateBuffer() local
1447 G711ENC_OMX_MALLOC_STRUCT(pBufferHeader, OMX_BUFFERHEADERTYPE); in AllocateBuffer()
1449 G711ENC_OMX_MALLOC_SIZE(pBufferHeader->pBuffer, in AllocateBuffer()
1453 pBufferHeader->pBuffer += EXTRA_BYTES; in AllocateBuffer()
1456 pBufferHeader->nInputPortIndex = nPortIndex; in AllocateBuffer()
1457 pBufferHeader->nOutputPortIndex = -1; in AllocateBuffer()
1458 …rivate->pInputBufferList->pBufHdr[pComponentPrivate->pInputBufferList->numBuffers] = pBufferHeader; in AllocateBuffer()
1469 pBufferHeader->nInputPortIndex = -1; in AllocateBuffer()
1470 pBufferHeader->nOutputPortIndex = nPortIndex; in AllocateBuffer()
1471 …vate->pOutputBufferList->pBufHdr[pComponentPrivate->pOutputBufferList->numBuffers] = pBufferHeader; in AllocateBuffer()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/aac_enc/src/
DOMX_AacEncoder.c1837 OMX_BUFFERHEADERTYPE *pBufferHeader = NULL; in AllocateBuffer() local
1899 OMX_MALLOC_GENERIC(pBufferHeader, OMX_BUFFERHEADERTYPE); in AllocateBuffer()
1900 OMX_PRBUFFER2(pComponentPrivate->dbg, "AACENC: pBufferHeader %p\n",pBufferHeader); in AllocateBuffer()
1902 OMX_MALLOC_SIZE_DSPALIGN(pBufferHeader->pBuffer, nSizeBytes, OMX_U8); in AllocateBuffer()
1904 …CENC: pBufferHeader->pbuffer %p to %p \n",pBufferHeader->pBuffer,(pBufferHeader->pBuffer + sizeof( in AllocateBuffer()
1909 pBufferHeader->nInputPortIndex = nPortIndex; in AllocateBuffer()
1910 pBufferHeader->nOutputPortIndex = -1; in AllocateBuffer()
1915 pBufferHeader->nInputPortIndex = -1; in AllocateBuffer()
1916 pBufferHeader->nOutputPortIndex = nPortIndex; in AllocateBuffer()
1918 pBufferList->pBufHdr[pBufferList->numBuffers] = pBufferHeader; in AllocateBuffer()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/aac_dec/src/
DOMX_AacDecoder.c1805 OMX_BUFFERHEADERTYPE *pBufferHeader = NULL; in AllocateBuffer() local
1834 OMX_MALLOC_GENERIC(pBufferHeader, OMX_BUFFERHEADERTYPE); in AllocateBuffer()
1835 memset((pBufferHeader), 0x0, sizeof(OMX_BUFFERHEADERTYPE)); in AllocateBuffer()
1837 OMX_MALLOC_SIZE_DSPALIGN(pBufferHeader->pBuffer,nSizeBytes,OMX_U8); in AllocateBuffer()
1838 OMX_PRBUFFER2(pComponentPrivate->dbg, "%d :: Malloced = %p\n",__LINE__,pBufferHeader->pBuffer); in AllocateBuffer()
1839 pBufferHeader->nVersion.nVersion = AACDEC_BUFHEADER_VERSION; in AllocateBuffer()
1842 …:: Allocated BufHeader %p Buffer = %p, on port %ld\n",__LINE__,pBufferHeader,pBufferHeader->pBuffe… in AllocateBuffer()
1847 pBufferHeader->pAppPrivate = pAppPrivate; in AllocateBuffer()
1848 pBufferHeader->pPlatformPrivate = pComponentPrivate; in AllocateBuffer()
1849 pBufferHeader->nAllocLen = nSizeBytes; in AllocateBuffer()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/wbamr_dec/src/
DOMX_WbAmrDecoder.c1716 OMX_BUFFERHEADERTYPE *pBufferHeader; in AllocateBuffer() local
1744 OMX_MALLOC_GENERIC(pBufferHeader, OMX_BUFFERHEADERTYPE); in AllocateBuffer()
1745 OMX_MALLOC_SIZE_DSPALIGN(pBufferHeader->pBuffer, nSizeBytes,OMX_U8); in AllocateBuffer()
1748 pBufferHeader->nInputPortIndex = nPortIndex; in AllocateBuffer()
1749 pBufferHeader->nOutputPortIndex = -1; in AllocateBuffer()
1750 …rivate->pInputBufferList->pBufHdr[pComponentPrivate->pInputBufferList->numBuffers] = pBufferHeader; in AllocateBuffer()
1763 pBufferHeader->nInputPortIndex = -1; in AllocateBuffer()
1764 pBufferHeader->nOutputPortIndex = nPortIndex; in AllocateBuffer()
1765 OMX_MALLOC_GENERIC(pBufferHeader->pOutputPortPrivate, WBAMRDEC_BUFDATA); in AllocateBuffer()
1766 …vate->pOutputBufferList->pBufHdr[pComponentPrivate->pOutputBufferList->numBuffers] = pBufferHeader; in AllocateBuffer()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/wbamr_enc/src/
DOMX_WbAmrEncoder.c1954 OMX_BUFFERHEADERTYPE *pBufferHeader; in AllocateBuffer() local
1985 OMX_MALLOC_GENERIC(pBufferHeader, OMX_BUFFERHEADERTYPE); in AllocateBuffer()
1986 OMX_MALLOC_SIZE(pBufferHeader->pBuffer, nSizeBytes + 256, OMX_U8); in AllocateBuffer()
1988 if (pBufferHeader->pBuffer == NULL) { in AllocateBuffer()
1990 if (pBufferHeader) { in AllocateBuffer()
1991 newfree(pBufferHeader); in AllocateBuffer()
1992 pBufferHeader = NULL; in AllocateBuffer()
1999 pBufferHeader->pBuffer += 128; in AllocateBuffer()
2002 pBufferHeader->nInputPortIndex = nPortIndex; in AllocateBuffer()
2003 pBufferHeader->nOutputPortIndex = -1; in AllocateBuffer()
[all …]
/hardware/ti/omap4xxx/domx/domx/omx_proxy_common/src/
Domx_proxy_common.c830 OMX_BUFFERHEADERTYPE *pBufferHeader = NULL; in PROXY_AllocateBuffer() local
871 pBufferHeader = in PROXY_AllocateBuffer()
875 PROXY_assert((pBufferHeader != NULL), OMX_ErrorInsufficientResources, in PROXY_AllocateBuffer()
884 pBufferHeader->pPlatformPrivate = pPlatformPrivate; in PROXY_AllocateBuffer()
889 RPC_AllocateBuffer(pCompPrv->hRemoteComp, &pBufferHeader, in PROXY_AllocateBuffer()
897 pBufHeaderRemote, pBufferHeader); in PROXY_AllocateBuffer()
899 pCompPrv->tBufList[currentBuffer].pBufHeader = pBufferHeader; in PROXY_AllocateBuffer()
911 *ppBufferHdr = pBufferHeader; in PROXY_AllocateBuffer()
918 if (pBufferHeader) in PROXY_AllocateBuffer()
919 TIMM_OSAL_Free(pBufferHeader); in PROXY_AllocateBuffer()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/nbamr_dec/src/
DOMX_AmrDecoder.c1796 OMX_BUFFERHEADERTYPE *pBufferHeader; in AllocateBuffer() local
1830 OMX_MALLOC_GENERIC(pBufferHeader, OMX_BUFFERHEADERTYPE); in AllocateBuffer()
1832 OMX_MALLOC_SIZE_DSPALIGN(pBufferHeader->pBuffer, nSizeBytes,OMX_U8); in AllocateBuffer()
1835 pBufferHeader->nInputPortIndex = nPortIndex; in AllocateBuffer()
1836 pBufferHeader->nOutputPortIndex = -1; in AllocateBuffer()
1837 …rivate->pInputBufferList->pBufHdr[pComponentPrivate->pInputBufferList->numBuffers] = pBufferHeader; in AllocateBuffer()
1850 pBufferHeader->nInputPortIndex = -1; in AllocateBuffer()
1851 pBufferHeader->nOutputPortIndex = nPortIndex; in AllocateBuffer()
1852 OMX_MALLOC_GENERIC(pBufferHeader->pOutputPortPrivate, NBAMRDEC_BUFDATA); in AllocateBuffer()
1853 …vate->pOutputBufferList->pBufHdr[pComponentPrivate->pOutputBufferList->numBuffers] = pBufferHeader; in AllocateBuffer()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/nbamr_enc/src/
DOMX_AmrEncoder.c1866 OMX_BUFFERHEADERTYPE *pBufferHeader; in AllocateBuffer() local
1896 OMX_MALLOC_GENERIC(pBufferHeader, OMX_BUFFERHEADERTYPE); in AllocateBuffer()
1898 OMX_MALLOC_SIZE_DSPALIGN(pBufferHeader->pBuffer, nSizeBytes, OMX_U8); in AllocateBuffer()
1901 pBufferHeader->nInputPortIndex = nPortIndex; in AllocateBuffer()
1902 pBufferHeader->nOutputPortIndex = -1; in AllocateBuffer()
1903 …rivate->pInputBufferList->pBufHdr[pComponentPrivate->pInputBufferList->numBuffers] = pBufferHeader; in AllocateBuffer()
1912 pBufferHeader->nInputPortIndex = -1; in AllocateBuffer()
1913 pBufferHeader->nOutputPortIndex = nPortIndex; in AllocateBuffer()
1914 …vate->pOutputBufferList->pBufHdr[pComponentPrivate->pOutputBufferList->numBuffers] = pBufferHeader; in AllocateBuffer()
1917 OMX_MALLOC_GENERIC(pBufferHeader->pOutputPortPrivate, NBAMRENC_BUFDATA); in AllocateBuffer()
[all …]
/hardware/ti/omap4-aah/domx/domx/omx_proxy_common/src/
Domx_proxy_common.c794 OMX_BUFFERHEADERTYPE *pBufferHeader = NULL; in PROXY_AllocateBuffer() local
835 pBufferHeader = in PROXY_AllocateBuffer()
839 PROXY_assert((pBufferHeader != NULL), OMX_ErrorInsufficientResources, in PROXY_AllocateBuffer()
848 pBufferHeader->pPlatformPrivate = pPlatformPrivate; in PROXY_AllocateBuffer()
853 RPC_AllocateBuffer(pCompPrv->hRemoteComp, &pBufferHeader, in PROXY_AllocateBuffer()
861 pBufHeaderRemote, pBufferHeader); in PROXY_AllocateBuffer()
863 pCompPrv->tBufList[currentBuffer].pBufHeader = pBufferHeader; in PROXY_AllocateBuffer()
875 *ppBufferHdr = pBufferHeader; in PROXY_AllocateBuffer()
882 if (pBufferHeader) in PROXY_AllocateBuffer()
883 TIMM_OSAL_Free(pBufferHeader); in PROXY_AllocateBuffer()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/g722_dec/tests/
DG722DecTest.c142 … (OMX_HANDLETYPE *pHandle, int nBuffs, OMX_BUFFERHEADERTYPE *pBufferHeader [], char *sBu…
849 OMX_ERRORTYPE send_input_buffer(OMX_HANDLETYPE pHandle, OMX_BUFFERHEADERTYPE* pBufferHeader, FILE *… in send_input_buffer() argument
859 nRead = fread(pBufferHeader->pBuffer, 1, pBufferHeader->nAllocLen , fIn); in send_input_buffer()
863 pBufferHeader->nFilledLen = nRead; in send_input_buffer()
868 __LINE__, pBufferHeader->pBuffer, pBufferHeader->nAllocLen, nRead, totalRead); in send_input_buffer()
874 pBufferHeader->nFlags = 0; in send_input_buffer()
879 if(nRead < pBufferHeader->nAllocLen) { in send_input_buffer()
880 pBufferHeader->nFlags = OMX_BUFFERFLAG_EOS; in send_input_buffer()
883 pBufferHeader->nFlags = 0; in send_input_buffer()
885 pBufferHeader->nFilledLen = nRead; in send_input_buffer()
[all …]