Home
last modified time | relevance | path

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

/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
DTJCompressor.java147 srcBuf = srcImage; in setSourceImage()
243 srcBuf = null; in setSourceImage()
252 srcBuf = db.getData(); in setSourceImage()
270 srcBuf = null; in setSourceImage()
328 if (srcBuf == null && srcBufInt == null && srcYUVImage == null) in compress()
343 else if (srcBuf != null) { in compress()
345 compressedSize = compress(srcBuf, srcX, srcY, srcWidth, srcPitch, in compress()
349 compressedSize = compress(srcBuf, srcWidth, srcPitch, srcHeight, in compress()
423 if (srcBuf == null && srcBufInt == null) in encodeYUV()
437 encodeYUV(srcBuf, srcX, srcY, srcWidth, srcPitch, srcHeight, in encodeYUV()
[all …]
DTJDecompressor.java854 private native void decompressHeader(byte[] srcBuf, int size) in decompressHeader() argument
857 private native void decompress(byte[] srcBuf, int size, byte[] dstBuf, in decompress() argument
861 private native void decompress(byte[] srcBuf, int size, byte[] dstBuf, int x, in decompress() argument
865 private native void decompress(byte[] srcBuf, int size, int[] dstBuf, in decompress() argument
869 private native void decompress(byte[] srcBuf, int size, int[] dstBuf, int x, in decompress() argument
873 private native void decompressToYUV(byte[] srcBuf, int size, byte[] dstBuf, in decompressToYUV() argument
876 private native void decompressToYUV(byte[] srcBuf, int size, in decompressToYUV() argument
DTJTransformer.java154 private native int[] transform(byte[] srcBuf, int srcSize, byte[][] dstBufs, in transform() argument
/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/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/
DConverterPerformanceTest.java208 ByteBuffer srcBuf = ByteBuffer.wrap(encBuffer,0,encBuffer.length);
213 decoder.decode(srcBuf,outBuf,false);
215 srcBuf.rewind();
237 CharBuffer srcBuf = CharBuffer.wrap(unicodeBuffer,0,unicodeBuffer.length);
242 encoder.encode(srcBuf,outBuf,false);
244 srcBuf.rewind();
266 ByteBuffer srcBuf = ByteBuffer.wrap(encBuffer,0,encBuffer.length);
271 decoder.decode(srcBuf,outBuf,false);
273 srcBuf.rewind();
295 CharBuffer srcBuf = CharBuffer.wrap(unicodeBuffer,0,unicodeBuffer.length);
[all …]
/external/libjpeg-turbo/
Dtjunittest.c399 char tempStr[1024]; unsigned char *srcBuf=NULL, *yuvBuf=NULL; in compTest() local
404 if((srcBuf=(unsigned char *)malloc(w*h*tjPixelSize[pf]))==NULL) in compTest()
406 initBuf(srcBuf, w, h, pf, flags); in compTest()
424 _tj(tjEncodeYUV3(handle2, srcBuf, w, 0, h, pf, yuvBuf, pad, subsamp, in compTest()
439 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest()
450 if(srcBuf) free(srcBuf); in compTest()
599 unsigned char *srcBuf=NULL, *dstBuf=NULL; in bufSizeTest() local
614 if((srcBuf=(unsigned char *)malloc(w*h*4))==NULL) in bufSizeTest()
626 if(random()<RAND_MAX/2) srcBuf[i]=0; in bufSizeTest()
627 else srcBuf[i]=255; in bufSizeTest()
[all …]
Dturbojpeg.h675 DLLEXPORT int DLLCALL tjCompress2(tjhandle handle, unsigned char *srcBuf,
739 DLLEXPORT int DLLCALL tjCompressFromYUV(tjhandle handle, unsigned char *srcBuf,
969 unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat,
1027 unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat,
1294 DLLEXPORT int DLLCALL tjDecodeYUV(tjhandle handle, unsigned char *srcBuf,
1506 DLLEXPORT int DLLCALL tjCompress(tjhandle handle, unsigned char *srcBuf,
1511 unsigned char *srcBuf, int width, int pitch, int height, int pixelSize,
1515 unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat,
Dturbojpeg.c731 DLLEXPORT int DLLCALL tjCompress2(tjhandle handle, unsigned char *srcBuf, in tjCompress2() argument
744 if(srcBuf==NULL || width<=0 || pitch<0 || height<=0 || pixelFormat<0 in tjCompress2()
763 srcBuf=toRGB(srcBuf, width, pitch, height, pixelFormat, rgbBuf); in tjCompress2()
788 if(flags&TJFLAG_BOTTOMUP) row_pointer[i]=&srcBuf[(height-i-1)*pitch]; in tjCompress2()
789 else row_pointer[i]=&srcBuf[i*pitch]; in tjCompress2()
808 DLLEXPORT int DLLCALL tjCompress(tjhandle handle, unsigned char *srcBuf, in tjCompress() argument
816 retval=tjEncodeYUV2(handle, srcBuf, width, pitch, height, in tjCompress()
821 retval=tjCompress2(handle, srcBuf, width, pitch, height, in tjCompress()
830 DLLEXPORT int DLLCALL tjEncodeYUVPlanes(tjhandle handle, unsigned char *srcBuf, in tjEncodeYUVPlanes() argument
856 if(srcBuf==NULL || width<=0 || pitch<0 || height<=0 || pixelFormat<0 in tjEncodeYUVPlanes()
[all …]
Dturbojpeg-jni.c191 unsigned char *srcBuf=NULL, *jpegBuf=NULL; in TJCompressor_compress() local
209 bailif0(srcBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0)); in TJCompressor_compress()
214 if(tjCompress2(handle, &srcBuf[y*actualPitch + x*tjPixelSize[pf]], width, in TJCompressor_compress()
221 if(srcBuf) (*env)->ReleasePrimitiveArrayCritical(env, src, srcBuf, 0); in TJCompressor_compress()
366 unsigned char *srcBuf=NULL, *dstPlanes[3]; in TJCompressor_encodeYUV() local
414 bailif0(srcBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0)); in TJCompressor_encodeYUV()
416 if(tjEncodeYUVPlanes(handle, &srcBuf[y*actualPitch + x*tjPixelSize[pf]], in TJCompressor_encodeYUV()
421 if(srcBuf) (*env)->ReleasePrimitiveArrayCritical(env, src, srcBuf, 0); in TJCompressor_encodeYUV()
470 unsigned char *srcBuf=NULL, *dstBuf=NULL; in TJCompressor_encodeYUV_12() local
487 bailif0(srcBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0)); in TJCompressor_encodeYUV_12()
[all …]
/external/libjpeg-turbo/java/
DTJBench.java112 static void saveImage(String fileName, byte[] srcBuf, int w, int h, in saveImage() argument
122 int pixel = (srcBuf[srcPtr + rindex] & 0xff) << 16 | in saveImage()
123 (srcBuf[srcPtr + gindex] & 0xff) << 8 | in saveImage()
124 (srcBuf[srcPtr + bindex] & 0xff); in saveImage()
133 static void decomp(byte[] srcBuf, byte[][] jpegBuf, int[] jpegSize, in decomp() argument
241 if (srcBuf != null && sf.getNum() == 1 && sf.getDenom() == 1) { in decomp()
250 int lum = (int)((double)(srcBuf[rindex] & 0xff) * 0.299 + in decomp()
251 (double)(srcBuf[gindex] & 0xff) * 0.587 + in decomp()
252 (double)(srcBuf[bindex] & 0xff) * 0.114 + 0.5); in decomp()
265 (srcBuf[pitch * y + x] & 0xff)); in decomp()
[all …]
DTJUnitTest.java640 byte[] srcBuf = null; in compTest()
667 srcBuf = new byte[w * h * ps + 1]; in compTest()
668 initBuf(srcBuf, w, w * ps, h, pf, flags); in compTest()
669 tjc.setSourceImage(srcBuf, 0, 0, w, 0, h, pf); in compTest()
851 byte[] srcBuf, dstBuf = null; in bufSizeTest()
865 srcBuf = new byte[w * h * 4]; in bufSizeTest()
871 srcBuf[i] = (byte)(r.nextInt(2) * 255); in bufSizeTest()
873 tjc.setSourceImage(srcBuf, 0, 0, w, 0, h, TJ.PF_BGRX); in bufSizeTest()
881 srcBuf = new byte[h * w * 4]; in bufSizeTest()
887 srcBuf[i] = (byte)(r.nextInt(2) * 255); 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.c538 DLLEXPORT int DLLCALL tjCompress2(tjhandle handle, unsigned char *srcBuf, in tjCompress2() argument
551 if(srcBuf==NULL || width<=0 || pitch<0 || height<=0 || pixelFormat<0 in tjCompress2()
570 srcBuf=toRGB(srcBuf, width, pitch, height, pixelFormat, rgbBuf); in tjCompress2()
593 if(flags&TJFLAG_BOTTOMUP) row_pointer[i]=&srcBuf[(height-i-1)*pitch]; in tjCompress2()
594 else row_pointer[i]=&srcBuf[i*pitch]; in tjCompress2()
614 DLLEXPORT int DLLCALL tjCompress(tjhandle handle, unsigned char *srcBuf, in tjCompress() argument
619 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.cpp915 uint8_t srcBuf[kBlockSize]; in Identical() local
924 m_pFile->ReadBlock(srcBuf, offset, actualSize); in Identical()
926 if (FXSYS_memcmp(srcBuf, destBuf, actualSize) != 0) in Identical()
948 uint8_t srcBuf[kBlockSize]; in Identical() local
953 pFile->ReadBlock(srcBuf, offset, actualSize); in Identical()
954 if (FXSYS_memcmp(srcBuf, pBuf, actualSize) != 0) in Identical()