Home
last modified time | relevance | path

Searched refs:nRead (Results 1 – 17 of 17) sorted by relevance

/hardware/ti/omap3/omx/audio/src/openmax_il/wma_dec/tests/
DWmaDecTest.c1566 int nRead = fill_data (pBuffer, fIn); in send_input_buffer() local
1569 if(nRead <= 0) { in send_input_buffer()
1572 pBuffer->nFilledLen = nRead; in send_input_buffer()
1573 APP_DPRINT("nRead = %d\n",nRead); in send_input_buffer()
1579 APP_DPRINT("Send input buffer nRead = %d\n",nRead); in send_input_buffer()
1580 pBuffer->nFilledLen = nRead; in send_input_buffer()
1600 int nRead = fill_data_tc7 (pBuffer, fIn); in send_input_buffer_tc7() local
1601 if(nRead < pBuffer->nAllocLen) { in send_input_buffer_tc7()
1613 pBuffer->nFilledLen = nRead; in send_input_buffer_tc7()
1629 int nRead; in fill_data() local
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/g729_enc/tests/
DG729EncTest.c391 int nRead = 0; in main() local
935 nRead = fread(pBuffer->pBuffer, 1, pBuffer->nAllocLen, fIn); in main()
936 …T("%d :: App :: Reading InputBuffer = %d from the input file nRead = %d\n",__LINE__,nIpBuff,nRead); in main()
937 pBuffer->nFilledLen = nRead; in main()
941 if((nRead == 0) && (done == 0)) { in main()
1009 nRead = fread(pBuffer->pBuffer, 1, pBuffer->nAllocLen, fIn); in main()
1010 …T("%d :: App :: Reading InputBuffer = %d from the input file nRead = %d\n",__LINE__,nIpBuff,nRead); in main()
1011 pBuffer->nFilledLen = nRead; in main()
1018 if((nRead < 160) && (done == 0)) { in main()
1067 nRead = fread(pBuffer->pBuffer, 1, pBuffer->nAllocLen, fIn); in main()
[all …]
/hardware/ti/omap3/omx/video/src/openmax_il/prepost_processor/tests/
DVPPTest.c504 int nRead = 0; in _tmain() local
1528 nRead = fill_data (InputBufHeader[nCounter],fIn); in _tmain()
1529 if(nRead == 0){ in _tmain()
1554 nRead = fill_data (OvlyBufHeader[nCounter],fInOvelay); in _tmain()
1555 if (nRead < (DEFAULT_WIDTH * DEFAULT_HEIGHT)* 3){ in _tmain()
1588 nRead = 0; in _tmain()
1728 nRead = fill_data (pBuffer,fIn); in _tmain()
1730 pBuffer->nAllocLen,nRead); in _tmain()
1731 if((nRead < pBuffer->nAllocLen) && (done == 0)){ in _tmain()
1745 pBuffer->nFilledLen = nRead; in _tmain()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/g726_dec/tests/
DG726DecTest.c1368 int nRead = 0; in send_input_buffer() local
1370 nRead = fill_data (pBuffer, fIn); in send_input_buffer()
1378 if(nRead < nIpBufSize) in send_input_buffer()
1411 int nRead = 0; in fill_data() local
1420 nRead = fread(pBuf->pBuffer, 1, pBuf->nAllocLen , fIn); in fill_data()
1422 if (nRead != 0) { in fill_data()
1423 totalRead += nRead; in fill_data()
1424 pBuf->nFilledLen = nRead; in fill_data()
1430 __LINE__, pBuf->pBuffer, pBuf->nAllocLen, nRead, totalRead); in fill_data()
1433 if (nRead < pBuf->nAllocLen){ in fill_data()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/aac_enc/tests/
DAacEncTest.c527 int nRead = 0; local
1445nRead = fread(pInputBufferHeader[i]->pBuffer, 1, pInputBufferHeader[i]->nAllocLen, fIn);
1446 …("%d :: APP: Reading InputBuffer = %d from the input file nRead = %d\n",__LINE__, nIpBuffs, nRead);
1447 if((nRead < pInputBufferHeader[i]->nAllocLen) && (done == 0))
1453 pInputBufferHeader[i]->nFilledLen = nRead;
1538 nRead = fread(pBuffer->pBuffer, 1, pBuffer->nAllocLen, fIn);
1539 …("%d :: APP: Reading InputBuffer = %d from the input file nRead = %d\n",__LINE__, nIpBuffs, nRead);
1540 if((nRead < pBuffer->nAllocLen) && (done == 0))
1547 pBuffer->nFilledLen = nRead;
1599 …("%d :: APP: Reading InputBuffer = %d from the input file nRead = %d\n",__LINE__, nIpBuffs, nRead);
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/g722_enc/tests/
DG722EncTest.c1351 int nRead = fill_data (pBuffer, fIn); local
1352 if((nRead == 0) && (done == 0)){
1355 pBuffer->nFilledLen = nRead;
1363 pBuffer->nFilledLen = nRead;
1383 int nRead = 0; local
1386 nRead = fread(pBuf->pBuffer, 1, pBuf->nAllocLen , fIn);
1387 totalRead += nRead;
1388 pBuf->nFilledLen = nRead;
1389 return nRead;
/hardware/ti/omap3/omx/image/src/openmax_il/jpeg_dec/tests/
DJPEGTest.c487 int nRead; local
501 ReadFile(fIn, pBuf->pBuffer, lBuffUsed, &nRead, NULL);
503 nRead = fread(pBuf->pBuffer,1, lBuffUsed, fIn);
507 PRINT( "Read %d bytes from file\n", nRead);
509 pBuf->nFilledLen = nRead;
510 return nRead;
654 int nRead; local
1276 nRead = fill_data(pInBuffHead[0], fIn, lBuffused);
1284 pInBuffHead[0]->nFilledLen = nRead;
1364 pInBuffHead[0]->nFilledLen = nRead;
/hardware/ti/omap3/omx/audio/src/openmax_il/g711_dec/tests/
DG711DecTest.c1564 OMX_S16 nRead = fill_data (pBuffer, fIn); in send_input_buffer() local
1567 APP_DPRINT ("%d :: pBuffer = %p nRead = %d\n",__LINE__,pBuffer,nRead); in send_input_buffer()
1570 if((nRead < numRead) && (done == 0)) { in send_input_buffer()
1590 pBuffer->nFilledLen = nRead; in send_input_buffer()
1591 for (i=0; i < nRead; i++) { in send_input_buffer()
1609 OMX_S16 nRead = 0; in fill_data() local
1637 nRead = fread(pBuf->pBuffer, 1, numRead , fIn); in fill_data()
1638 totalRead += nRead; in fill_data()
1640 pBuf->nFilledLen = nRead; in fill_data()
1641 return nRead; in fill_data()
/hardware/ti/omap3/omx/audio/src/openmax_il/g726_enc/tests/
DG726EncTest.c286 int nRead = 0; variable
1600 nRead = fread(pBuffer->pBuffer, 1, G726ENC_INPUT_BUFFER_SIZE*2, fIn);
1603 nRead = fread(NextBuffer, 1, G726ENC_INPUT_BUFFER_SIZE/2, fIn);
1606 nRead = fread(pBuffer->pBuffer, 1, G726ENC_INPUT_BUFFER_SIZE, fIn);
1608 pBuffer->nFilledLen = nRead;
1611 memcpy(pBuffer->pBuffer, NextBuffer,nRead);
1612 pBuffer->nFilledLen = nRead;
1616 nRead = fread(NextBuffer, 1, G726ENC_INPUT_BUFFER_SIZE*2, fIn);
1619 nRead = fread(NextBuffer, 1, G726ENC_INPUT_BUFFER_SIZE/2, fIn);
1622 nRead = fread(NextBuffer, 1, G726ENC_INPUT_BUFFER_SIZE, fIn);
[all …]
/hardware/ti/omap3/omx/image/src/openmax_il/jpeg_enc/test/
DJPEGTestEnc.c811 int nRead; in fill_data() local
816 ReadFile(fIn, pBuf->pBuffer, lSize, &nRead, NULL); in fill_data()
818 nRead = fread(pBuf->pBuffer,1, buffSize , fIn); in fill_data()
821 printf ("Buffer Size = %d. Read %d bytes from file. \n", (int) buffSize, (int)nRead); in fill_data()
822 pBuf->nFilledLen = nRead; in fill_data()
834 return nRead; in fill_data()
1111 int nRead; in _tmain() local
1817 nRead = fill_data(pInBuff[nCounter], fIn,pInPortDef->nBufferSize); in _tmain()
1902 nRead = fill_data(pBuffer, fIn,pInPortDef->nBufferSize); in _tmain()
/hardware/ti/omap3/omx/audio/src/openmax_il/wbamr_dec/tests/
DWBAmrDecTest.c227 int nRead=0; variable
1806 APP_DPRINT ("%d :: pBuffer = %p nRead = %d\n",__LINE__,pBuffer,nRead);
1811 nRead = fill_data (pBuffer->pBuffer, WBAmrFrameFormat, fIn);
1812 pBuffer->nFilledLen = nRead;
1816 memcpy(pBuffer->pBuffer, NextBuffer,nRead);
1817 pBuffer->nFilledLen = nRead;
1820 nRead = fill_data (NextBuffer, WBAmrFrameFormat, fIn);
1824 if( nRead<numRead )
1832 if( 0 == nRead )
1983 nRead = 0;
/hardware/ti/omap3/omx/audio/src/openmax_il/g722_dec/tests/
DG722DecTest.c852 int nRead = 0; in send_input_buffer() local
859 nRead = fread(pBufferHeader->pBuffer, 1, pBufferHeader->nAllocLen , fIn); in send_input_buffer()
861 if (nRead != 0) { in send_input_buffer()
862 totalRead += nRead; in send_input_buffer()
863 pBufferHeader->nFilledLen = nRead; in send_input_buffer()
868 __LINE__, pBufferHeader->pBuffer, pBufferHeader->nAllocLen, nRead, totalRead); in send_input_buffer()
879 if(nRead < pBufferHeader->nAllocLen) { in send_input_buffer()
885 pBufferHeader->nFilledLen = nRead; in send_input_buffer()
/hardware/ti/omap3/omx/audio/src/openmax_il/wbamr_enc/tests/
DWbAmrEncTest.c307 int nRead; variable
1886 nRead = fread(pBuffer->pBuffer, 1, WBAPP_INPUT_BUFFER_SIZE * 2, fIn);
1888 nRead = fread(pBuffer->pBuffer, 1, WBAPP_INPUT_BUFFER_SIZE, fIn);
1891 pBuffer->nFilledLen = nRead;
1893 memcpy(pBuffer->pBuffer, NextBuffer, nRead);
1894 pBuffer->nFilledLen = nRead;
1898 nRead = fread(NextBuffer, 1, WBAPP_INPUT_BUFFER_SIZE * 2, fIn);
1900 nRead = fread(NextBuffer, 1, WBAPP_INPUT_BUFFER_SIZE, fIn);
1903 if (nRead < WBAPP_INPUT_BUFFER_SIZE && !DasfMode) {
/hardware/ti/omap3/omx/audio/src/openmax_il/nbamr_enc/tests/
DAmrEncTest.c323 int nRead; variable
1793 nRead = fread(pBuffer->pBuffer, 1, NBAPP_INPUT_BUFFER_SIZE*2, fIn);
1796 nRead = fread(pBuffer->pBuffer, 1, NBAPP_INPUT_BUFFER_SIZE, fIn);
1798 pBuffer->nFilledLen = nRead;
1801 memcpy(pBuffer->pBuffer, NextBuffer,nRead);
1802 pBuffer->nFilledLen = nRead;
1806 nRead = fread(NextBuffer, 1, NBAPP_INPUT_BUFFER_SIZE*2, fIn);
1809 nRead = fread(NextBuffer, 1, NBAPP_INPUT_BUFFER_SIZE, fIn);
1812 if(nRead < NBAPP_INPUT_BUFFER_SIZE && !DasfMode){
/hardware/ti/omap4xxx/test/CameraHal/
Dcamera_test_script.cpp1053 size_t nRead = 0; in load_script() local
1109 if ((nRead = fread(script, 1, fileSize, infile)) != fileSize) { in load_script()
/hardware/ti/omap3/omx/audio/src/openmax_il/g729_dec/tests/
DG729DecTest.c1387 OMX_S16 nRead = 0; in fill_data_fromFile() local
1413 nRead = fread(serial, sizeof(OMX_S16), 2 , fIn); in fill_data_fromFile()
1414 if(nRead != 0){ in fill_data_fromFile()
/hardware/ti/omap3/omx/video/src/openmax_il/video_encode/test/
DVideoEncTest.c637 int nRead = -1; in VIDENCTEST_fill_data() local
641 nRead = fread(pBuf->pBuffer,1, buffersize, fIn); in VIDENCTEST_fill_data()
642 if (nRead == -1) { in VIDENCTEST_fill_data()
654 pBuf->nFilledLen = nRead; in VIDENCTEST_fill_data()
659 return nRead; in VIDENCTEST_fill_data()