/external/libjpeg-turbo/ |
D | tjexample.c | 170 unsigned char *imgBuf = NULL, *jpegBuf = NULL; in main() local 276 if ((jpegBuf = (unsigned char *)tjAlloc(jpegSize)) == NULL) in main() 278 if (fread(jpegBuf, jpegSize, 1, jpegFile) < 1) in main() 290 if (tjTransform(tjInstance, jpegBuf, jpegSize, 1, &dstBuf, &dstSize, in main() 293 tjFree(jpegBuf); in main() 294 jpegBuf = dstBuf; in main() 301 if (tjDecompressHeader3(tjInstance, jpegBuf, jpegSize, &width, &height, in main() 316 if (fwrite(jpegBuf, jpegSize, 1, jpegFile) < 1) in main() 335 if (tjDecompress2(tjInstance, jpegBuf, jpegSize, imgBuf, width, 0, height, in main() 338 tjFree(jpegBuf); jpegBuf = NULL; in main() [all …]
|
D | tjbench.c | 139 int decomp(unsigned char *srcBuf, unsigned char **jpegBuf, in decomp() argument 204 if (tjDecompressToYUV2(handle, jpegBuf[tile], jpegSize[tile], yuvBuf, in decomp() 212 } else if (tjDecompress2(handle, jpegBuf[tile], jpegSize[tile], in decomp() 318 unsigned char **jpegBuf = NULL, *yuvBuf = NULL, *tmpBuf = NULL, *srcPtr, in fullTest() local 346 if ((jpegBuf = (unsigned char **)malloc(sizeof(unsigned char *) * in fullTest() 349 memset(jpegBuf, 0, sizeof(unsigned char *) * ntilesw * ntilesh); in fullTest() 359 if ((jpegBuf[i] = (unsigned char *) in fullTest() 406 subsamp, &jpegBuf[tile], &jpegSize[tile], in fullTest() 411 &jpegBuf[tile], &jpegSize[tile], subsamp, jpegQual, in fullTest() 477 if (fwrite(jpegBuf[0], jpegSize[0], 1, file) != 1) in fullTest() [all …]
|
D | turbojpeg.h | 745 unsigned char **jpegBuf, unsigned long *jpegSize, 811 unsigned char **jpegBuf, 886 unsigned char **jpegBuf, 1147 const unsigned char *jpegBuf, 1216 DLLEXPORT int tjDecompress2(tjhandle handle, const unsigned char *jpegBuf, 1268 DLLEXPORT int tjDecompressToYUV2(tjhandle handle, const unsigned char *jpegBuf, 1326 const unsigned char *jpegBuf, 1515 DLLEXPORT int tjTransform(tjhandle handle, const unsigned char *jpegBuf, 1716 DLLEXPORT int tjDecompressHeader(tjhandle handle, unsigned char *jpegBuf, 1720 DLLEXPORT int tjDecompressHeader2(tjhandle handle, unsigned char *jpegBuf, [all …]
|
D | turbojpeg-jni.c | 220 unsigned char *srcBuf = NULL, *jpegBuf = NULL; in TJCompressor_compress() local 241 BAILIF0(jpegBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in TJCompressor_compress() 244 width, pitch, height, pf, &jpegBuf, &jpegSize, jpegSubsamp, in TJCompressor_compress() 249 if (jpegBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, jpegBuf, 0); in TJCompressor_compress() 322 unsigned char *jpegBuf = NULL; in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() local 368 BAILIF0(jpegBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() 371 subsamp, &jpegBuf, &jpegSize, jpegQual, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() 376 if (jpegBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, jpegBuf, 0); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() 626 unsigned char *jpegBuf = NULL; in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader() local 634 BAILIF0(jpegBuf = (*env)->GetPrimitiveArrayCritical(env, src, 0)); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader() [all …]
|
D | turbojpeg.c | 636 unsigned char **jpegBuf, unsigned long *jpegSize, in tjCompress2() argument 648 pixelFormat < 0 || pixelFormat >= TJ_NUMPF || jpegBuf == NULL || in tjCompress2() 675 jpeg_mem_dest_tj(cinfo, jpegBuf, jpegSize, alloc); in tjCompress2() 701 unsigned char *jpegBuf, unsigned long *jpegSize, in tjCompress() argument 710 getPixelFormat(pixelSize, flags), jpegBuf, in tjCompress() 714 getPixelFormat(pixelSize, flags), &jpegBuf, &size, in tjCompress() 941 unsigned char **jpegBuf, in tjCompressFromYUVPlanes() argument 962 subsamp < 0 || subsamp >= NUMSUBOPT || jpegBuf == NULL || in tjCompressFromYUVPlanes() 985 jpeg_mem_dest_tj(cinfo, jpegBuf, jpegSize, alloc); in tjCompressFromYUVPlanes() 1074 unsigned char **jpegBuf, in tjCompressFromYUV() argument [all …]
|
D | tjunittest.c | 345 void writeJPEG(unsigned char *jpegBuf, unsigned long jpegSize, char *filename) in writeJPEG() argument 349 if (!file || fwrite(jpegBuf, jpegSize, 1, file) != 1) { in writeJPEG() 417 void _decompTest(tjhandle handle, unsigned char *jpegBuf, in _decompTest() argument 427 TRY_TJ(tjDecompressHeader2(handle, jpegBuf, jpegSize, &_hdrw, &_hdrh, in _decompTest() 452 TRY_TJ(tjDecompressToYUV2(handle, jpegBuf, jpegSize, yuvBuf, scaledWidth, in _decompTest() 469 TRY_TJ(tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, scaledWidth, 0, in _decompTest() 484 void decompTest(tjhandle handle, unsigned char *jpegBuf, in decompTest() argument 499 _decompTest(handle, jpegBuf, jpegSize, w, h, pf, basename, subsamp, in decompTest()
|
/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
D | TJDecompressor.java | 104 jpegBuf = jpegImage; in setSourceImage() 106 decompressHeader(jpegBuf, jpegBufSize); in setSourceImage() 132 jpegBuf = null; in setSourceImage() 209 if (jpegBuf == null) in getJPEGBuf() 211 return jpegBuf; in getJPEGBuf() 380 if (jpegBuf == null && yuvImage == null) in decompress() 393 decompress(jpegBuf, jpegBufSize, dstBuf, x, y, desiredWidth, pitch, in decompress() 396 decompress(jpegBuf, jpegBufSize, dstBuf, desiredWidth, pitch, in decompress() 478 if (jpegBuf == null) in decompressToYUV() 492 decompressToYUV(jpegBuf, jpegBufSize, dstImage.getPlanes(), in decompressToYUV() [all …]
|
D | TJCompressor.java | 598 int height, int pixelFormat, byte[] jpegBuf, int jpegSubsamp, int jpegQual, in compress() argument 603 int pitch, int height, int pixelFormat, byte[] jpegBuf, int jpegSubsamp, in compress() argument 609 int height, int pixelFormat, byte[] jpegBuf, int jpegSubsamp, int jpegQual, in compress() argument 614 int stride, int height, int pixelFormat, byte[] jpegBuf, int jpegSubsamp, in compress() argument 619 int width, int[] srcStrides, int height, int subsamp, byte[] jpegBuf, in compressFromYUV() argument
|
D | TJTransformer.java | 99 if (jpegBuf == null) in transform() 101 transformedSizes = transform(jpegBuf, jpegBufSize, dstBufs, transforms, in transform()
|
/external/libjpeg-turbo/java/ |
D | TJBench.java | 163 static void decomp(byte[] srcBuf, byte[][] jpegBuf, int[] jpegSize, in decomp() argument 211 tjd.setSourceImage(jpegBuf[tile], jpegSize[tile]); in decomp() 246 for (i = 0; i < jpegBuf.length; i++) in decomp() 247 jpegBuf[i] = null; in decomp() 248 jpegBuf = null; jpegSize = null; in decomp() 330 byte[][] jpegBuf; in fullTest() 360 jpegBuf = new byte[ntilesw * ntilesh][TJ.bufSize(tilew, tileh, subsamp)]; in fullTest() 402 tjc.compress(jpegBuf[tile], flags); in fullTest() 471 fos.write(jpegBuf[0], 0, jpegSize[0]); in fullTest() 479 decomp(srcBuf, jpegBuf, jpegSize, tmpBuf, w, h, subsamp, jpegQual, in fullTest() [all …]
|
D | TJExample.java | 286 byte[] jpegBuf = new byte[jpegSize]; in main() 287 fis.read(jpegBuf); in main() 293 TJTransformer tjt = new TJTransformer(jpegBuf); in main() 301 tjd = new TJDecompressor(jpegBuf); in main() 380 byte[] jpegBuf = tjc.compress(flags); in main() 387 fos.write(jpegBuf, 0, jpegSize); in main()
|
D | TJUnitTest.java | 621 static void writeJPEG(byte[] jpegBuf, int jpegBufSize, String filename) in writeJPEG() argument 625 fos.write(jpegBuf, 0, jpegBufSize); in writeJPEG() 698 static void decompTest(TJDecompressor tjd, byte[] jpegBuf, int jpegSize, in decompTest() argument 719 tjd.setSourceImage(jpegBuf, jpegSize); in decompTest() 779 static void decompTest(TJDecompressor tjd, byte[] jpegBuf, int jpegSize, in decompTest() argument 792 decompTest(tjd, jpegBuf, jpegSize, w, h, pf, baseName, subsamp, in decompTest()
|