/external/libjpeg-turbo/ |
D | turbojpeg.h | 676 int width, int pitch, int height, int pixelFormat, unsigned char **jpegBuf, 740 int width, int pad, int height, int subsamp, unsigned char **jpegBuf, 811 unsigned char **jpegBuf, unsigned long *jpegSize, int jpegQual, int flags); 1067 unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height, 1135 unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, 1186 unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, 1243 unsigned char *jpegBuf, unsigned long jpegSize, unsigned char **dstPlanes, 1420 DLLEXPORT int DLLCALL tjTransform(tjhandle handle, unsigned char *jpegBuf, 1519 unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height); 1522 unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height, [all …]
|
D | turbojpeg-jni.c | 191 unsigned char *srcBuf=NULL, *jpegBuf=NULL; in TJCompressor_compress() local 210 bailif0(jpegBuf=(*env)->GetPrimitiveArrayCritical(env, dst, 0)); in TJCompressor_compress() 215 pitch, height, pf, &jpegBuf, &jpegSize, jpegSubsamp, jpegQual, in TJCompressor_compress() 220 if(jpegBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, jpegBuf, 0); in TJCompressor_compress() 290 unsigned char *srcPlanes[3], *jpegBuf=NULL; in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() local 335 bailif0(jpegBuf=(*env)->GetPrimitiveArrayCritical(env, dst, 0)); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() 340 subsamp, &jpegBuf, &jpegSize, jpegQual, flags|TJFLAG_NOREALLOC)==-1) in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() 344 if(jpegBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, jpegBuf, 0); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() 593 unsigned char *jpegBuf=NULL; in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader() local 601 bailif0(jpegBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0)); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader() [all …]
|
D | turbojpeg.c | 732 int width, int pitch, int height, int pixelFormat, unsigned char **jpegBuf, in tjCompress2() argument 745 || pixelFormat>=TJ_NUMPF || jpegBuf==NULL || jpegSize==NULL in tjCompress2() 779 jpeg_mem_dest_tj(cinfo, jpegBuf, jpegSize, alloc); in tjCompress2() 809 int width, int pitch, int height, int pixelSize, unsigned char *jpegBuf, in tjCompress() argument 817 getPixelFormat(pixelSize, flags), jpegBuf, jpegSubsamp, flags); in tjCompress() 822 getPixelFormat(pixelSize, flags), &jpegBuf, &size, jpegSubsamp, jpegQual, in tjCompress() 1046 unsigned char **jpegBuf, unsigned long *jpegSize, int jpegQual, int flags) in tjCompressFromYUVPlanes() argument 1064 || subsamp>=NUMSUBOPT || jpegBuf==NULL || jpegSize==NULL || jpegQual<0 in tjCompressFromYUVPlanes() 1088 jpeg_mem_dest_tj(cinfo, jpegBuf, jpegSize, alloc); in tjCompressFromYUVPlanes() 1176 int width, int pad, int height, int subsamp, unsigned char **jpegBuf, in tjCompressFromYUV() argument [all …]
|
D | tjunittest.c | 381 void writeJPEG(unsigned char *jpegBuf, unsigned long jpegSize, char *filename) in writeJPEG() argument 384 if(!file || fwrite(jpegBuf, jpegSize, 1, file)!=1) in writeJPEG() 454 void _decompTest(tjhandle handle, unsigned char *jpegBuf, in _decompTest() argument 464 _tj(tjDecompressHeader2(handle, jpegBuf, jpegSize, &_hdrw, &_hdrh, in _decompTest() 489 _tj(tjDecompressToYUV2(handle, jpegBuf, jpegSize, yuvBuf, scaledWidth, in _decompTest() 508 _tj(tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, scaledWidth, 0, in _decompTest() 523 void decompTest(tjhandle handle, unsigned char *jpegBuf, in decompTest() argument 538 _decompTest(handle, jpegBuf, jpegSize, w, h, pf, basename, subsamp, in decompTest()
|
/external/libvncserver/test/ |
D | tjunittest.c | 224 void writeJPEG(unsigned char *jpegBuf, unsigned long jpegSize, char *filename) in writeJPEG() argument 227 if(!file || fwrite(jpegBuf, jpegSize, 1, file)!=1) in writeJPEG() 272 void _decompTest(tjhandle handle, unsigned char *jpegBuf, in _decompTest() argument 288 _tj(tjDecompressHeader2(handle, jpegBuf, jpegSize, &_hdrw, &_hdrh, in _decompTest() 299 _tj(tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, scaledWidth, 0, in _decompTest() 313 void decompTest(tjhandle handle, unsigned char *jpegBuf, in decompTest() argument 324 _decompTest(handle, jpegBuf, jpegSize, w, h, pf, basename, subsamp, in decompTest() 328 _decompTest(handle, jpegBuf, jpegSize, w, h, pf, basename, subsamp, flags, in decompTest() 380 unsigned char *srcBuf=NULL, *jpegBuf=NULL; in bufSizeTest() local 397 if((jpegBuf=(unsigned char *)malloc(tjBufSize(w, h, subsamp))) in bufSizeTest() [all …]
|
/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
D | TJDecompressor.java | 101 jpegBuf = jpegImage; in setSourceImage() 103 decompressHeader(jpegBuf, jpegBufSize); in setSourceImage() 127 jpegBuf = null; in setSourceImage() 204 if (jpegBuf == null) in getJPEGBuf() 206 return jpegBuf; in getJPEGBuf() 373 if (jpegBuf == null && yuvImage == null) in decompress() 386 decompress(jpegBuf, jpegBufSize, dstBuf, x, y, desiredWidth, pitch, in decompress() 389 decompress(jpegBuf, jpegBufSize, dstBuf, desiredWidth, pitch, in decompress() 465 if (jpegBuf == null) in decompressToYUV() 479 decompressToYUV(jpegBuf, jpegBufSize, dstImage.getPlanes(), in decompressToYUV() [all …]
|
D | TJTransformer.java | 98 if (jpegBuf == null) in transform() 100 transformedSizes = transform(jpegBuf, jpegBufSize, dstBufs, transforms, in transform()
|
/external/libvncserver/common/ |
D | turbojpeg.h | 353 int width, int pitch, int height, int pixelFormat, unsigned char **jpegBuf, 407 unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height, 467 unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, 514 unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height); 517 unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf,
|
D | turbojpeg.c | 539 int width, int pitch, int height, int pixelFormat, unsigned char **jpegBuf, in tjCompress2() argument 552 || pixelFormat>=TJ_NUMPF || jpegBuf==NULL || jpegSize==NULL in tjCompress2() 585 this->jdst.next_output_byte=*jpegBuf; in tjCompress2() 615 int width, int pitch, int height, int pixelSize, unsigned char *jpegBuf, in tjCompress() argument 620 getPixelFormat(pixelSize, flags), &jpegBuf, &size, jpegSubsamp, jpegQual, in tjCompress() 685 unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height, in tjDecompressHeader2() argument 694 if(jpegBuf==NULL || jpegSize<=0 || width==NULL || height==NULL in tjDecompressHeader2() 705 this->jsrc.next_input_byte=jpegBuf; in tjDecompressHeader2() 724 unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height) in tjDecompressHeader() argument 727 return tjDecompressHeader2(handle, jpegBuf, jpegSize, width, height, in tjDecompressHeader() [all …]
|
/external/libjpeg-turbo/java/ |
D | TJBench.java | 133 static void decomp(byte[] srcBuf, byte[][] jpegBuf, int[] jpegSize, in decomp() argument 174 tjd.setSourceImage(jpegBuf[tile], jpegSize[tile]); in decomp() 198 for (i = 0; i < jpegBuf.length; i++) in decomp() 199 jpegBuf[i] = null; in decomp() 200 jpegBuf = null; jpegSize = null; in decomp() 276 byte[][] jpegBuf; in fullTest() 303 jpegBuf = new byte[ntilesw * ntilesh][TJ.bufSize(tilew, tileh, subsamp)]; in fullTest() 342 tjc.compress(jpegBuf[tile], flags); in fullTest() 401 fos.write(jpegBuf[0], 0, jpegSize[0]); in fullTest() 409 decomp(srcBuf, jpegBuf, jpegSize, tmpBuf, w, h, subsamp, jpegQual, in fullTest() [all …]
|
D | TJExample.java | 322 byte[] jpegBuf; in main() 331 jpegBuf = tjc.compress(flags); in main() 337 fos.write(jpegBuf, 0, jpegSize); in main()
|
D | TJUnitTest.java | 628 private static void writeJPEG(byte[] jpegBuf, int jpegBufSize, in writeJPEG() argument 632 fos.write(jpegBuf, 0, jpegBufSize); in writeJPEG() 705 private static void decompTest(TJDecompressor tjd, byte[] jpegBuf, in decompTest() argument 727 tjd.setSourceImage(jpegBuf, jpegSize); in decompTest() 787 private static void decompTest(TJDecompressor tjd, byte[] jpegBuf, in decompTest() argument 801 decompTest(tjd, jpegBuf, jpegSize, w, h, pf, baseName, subsamp, in decompTest()
|