Home
last modified time | relevance | path

Searched refs:srcBuf (Results 1 – 5 of 5) sorted by relevance

/external/libvncserver/test/
Dtjunittest.c242 char tempStr[1024]; unsigned char *srcBuf=NULL; in compTest() local
249 if((srcBuf=(unsigned char *)malloc(w*h*tjPixelSize[pf]))==NULL) in compTest()
251 initBuf(srcBuf, w, h, pf, flags); in compTest()
256 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest()
268 if(srcBuf) free(srcBuf); in compTest()
380 unsigned char *srcBuf=NULL, *jpegBuf=NULL; in bufSizeTest() local
395 if((srcBuf=(unsigned char *)malloc(w*h*4))==NULL) in bufSizeTest()
404 if(random()<RAND_MAX/2) srcBuf[i]=0; in bufSizeTest()
405 else srcBuf[i]=255; in bufSizeTest()
408 _tj(tjCompress2(handle, srcBuf, w, 0, h, TJPF_BGRX, &jpegBuf, in bufSizeTest()
[all …]
/external/deqp/modules/gles3/functional/
Des3fBufferCopyTests.cpp84 deUint32 srcBuf = 0; in iterate() local
97 srcBuf = genBuffer(); in iterate()
98 glBindBuffer(m_srcTarget, srcBuf); in iterate()
109 isOk = verifier.verify(srcBuf, srcRef.getPtr(), 0, m_srcSize, m_srcTarget) && isOk; in iterate()
115 glBindBuffer(m_srcTarget, srcBuf); in iterate()
121 isOk = verifier.verify(srcBuf, srcRef.getPtr(), 0, m_srcSize, m_srcTarget) && isOk; in iterate()
/external/libvncserver/common/
Dturbojpeg.c534 DLLEXPORT int DLLCALL tjCompress2(tjhandle handle, unsigned char *srcBuf, in tjCompress2() argument
547 if(srcBuf==NULL || width<=0 || pitch<0 || height<=0 || pixelFormat<0 in tjCompress2()
566 srcBuf=toRGB(srcBuf, width, pitch, height, pixelFormat, rgbBuf); in tjCompress2()
589 if(flags&TJFLAG_BOTTOMUP) row_pointer[i]=&srcBuf[(height-i-1)*pitch]; in tjCompress2()
590 else row_pointer[i]=&srcBuf[i*pitch]; in tjCompress2()
610 DLLEXPORT int DLLCALL tjCompress(tjhandle handle, unsigned char *srcBuf, in tjCompress() argument
615 retval=tjCompress2(handle, srcBuf, width, pitch, height, in tjCompress()
Dturbojpeg.h352 DLLEXPORT int DLLCALL tjCompress2(tjhandle handle, unsigned char *srcBuf,
509 DLLEXPORT int DLLCALL tjCompress(tjhandle handle, unsigned char *srcBuf,
/external/pdfium/core/src/fpdfapi/fpdf_parser/
Dfpdf_parser_objects.cpp973 FX_BYTE srcBuf[1024]; in Identical() local
983 m_pFile->ReadBlock(srcBuf, srcOffset, actualSize); in Identical()
985 if (FXSYS_memcmp32(srcBuf, destBuf, actualSize) != 0) { in Identical()
1010 FX_BYTE srcBuf[1024]; in Identical() local
1014 pFile->ReadBlock(srcBuf, offset, actualSize); in Identical()
1015 if (FXSYS_memcmp32(srcBuf, pBuf, actualSize) != 0) { in Identical()