/external/libjpeg-turbo/ |
D | turbojpeg.h | 745 unsigned char **jpegBuf, unsigned long *jpegSize, 812 unsigned long *jpegSize, int jpegQual, 887 unsigned long *jpegSize, int jpegQual, 1148 unsigned long jpegSize, int *width, 1217 unsigned long jpegSize, unsigned char *dstBuf, 1269 unsigned long jpegSize, unsigned char *dstBuf, 1327 unsigned long jpegSize, 1516 unsigned long jpegSize, int n, 1717 unsigned long jpegSize, int *width, 1721 unsigned long jpegSize, int *width, [all …]
|
D | tjexample.c | 265 unsigned long jpegSize; in main() local 275 jpegSize = (unsigned long)size; in main() 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() 295 jpegSize = dstSize; 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() 359 unsigned long jpegSize = 0; in main() local [all …]
|
D | tjbench.c | 140 unsigned long *jpegSize, unsigned char *dstBuf, int w, int h, 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() 323 unsigned long *jpegSize = NULL, yuvSize = 0; in fullTest() local 350 if ((jpegSize = (unsigned long *)malloc(sizeof(unsigned long) * in fullTest() 353 memset(jpegSize, 0, sizeof(unsigned long) * ntilesw * ntilesh); in fullTest() 406 subsamp, &jpegBuf[tile], &jpegSize[tile], in fullTest() 411 &jpegBuf[tile], &jpegSize[tile], subsamp, jpegQual, in fullTest() 415 totalJpegSize += jpegSize[tile]; in fullTest() 477 if (fwrite(jpegBuf[0], jpegSize[0], 1, file) != 1) in fullTest() [all …]
|
D | turbojpeg-jni.c | 218 unsigned long jpegSize = 0; in TJCompressor_compress() local 234 jpegSize = tjBufSize(width, height, jpegSubsamp); in TJCompressor_compress() 235 if ((*env)->GetArrayLength(env, dst) < (jsize)jpegSize) in TJCompressor_compress() 244 width, pitch, height, pf, &jpegBuf, &jpegSize, jpegSubsamp, in TJCompressor_compress() 251 return (jint)jpegSize; in TJCompressor_compress() 319 unsigned long jpegSize = 0; in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() local 340 jpegSize = tjBufSize(width, height, subsamp); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() 341 if ((*env)->GetArrayLength(env, dst) < (jsize)jpegSize) 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() 386 return (jint)jpegSize; in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() [all …]
|
D | turbojpeg.c | 636 unsigned char **jpegBuf, unsigned long *jpegSize, in tjCompress2() argument 649 jpegSize == NULL || jpegSubsamp < 0 || jpegSubsamp >= NUMSUBOPT || in tjCompress2() 673 alloc = 0; *jpegSize = tjBufSize(width, height, jpegSubsamp); in tjCompress2() 675 jpeg_mem_dest_tj(cinfo, jpegBuf, jpegSize, alloc); in tjCompress2() 701 unsigned char *jpegBuf, unsigned long *jpegSize, in tjCompress() argument 717 *jpegSize = size; in tjCompress() 942 unsigned long *jpegSize, int jpegQual, in tjCompressFromYUVPlanes() argument 963 jpegSize == NULL || jpegQual < 0 || jpegQual > 100) in tjCompressFromYUVPlanes() 983 alloc = 0; *jpegSize = tjBufSize(width, height, subsamp); in tjCompressFromYUVPlanes() 985 jpeg_mem_dest_tj(cinfo, jpegBuf, jpegSize, alloc); in tjCompressFromYUVPlanes() [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() 418 unsigned long jpegSize, int w, int h, int pf, char *basename, 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() 485 unsigned long jpegSize, int w, int h, int pf, char *basename, in decompTest() argument 499 _decompTest(handle, jpegBuf, jpegSize, w, h, pf, basename, subsamp, in decompTest()
|
D | ChangeLog.md | 922 assume that the `jpegSize` parameter was equal to the size of the buffer, when
|
/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() 248 jpegBuf = null; jpegSize = null; in decomp() 331 int[] jpegSize; in fullTest() local 361 jpegSize = new int[ntilesw * ntilesh]; in fullTest() 403 jpegSize[tile] = tjc.getCompressedSize(); in fullTest() 404 totalJpegSize += jpegSize[tile]; in fullTest() 471 fos.write(jpegBuf[0], 0, jpegSize[0]); in fullTest() 479 decomp(srcBuf, jpegBuf, jpegSize, tmpBuf, w, h, subsamp, jpegQual, in fullTest() 491 int[] jpegSize = null; in decompTest() local [all …]
|
D | TJExample.java | 281 int jpegSize = fis.available(); in main() local 282 if (jpegSize < 1) { in main() 286 byte[] jpegBuf = new byte[jpegSize]; in main() 381 int jpegSize = tjc.getCompressedSize(); in main() local 387 fos.write(jpegBuf, 0, jpegSize); in main()
|
D | TJUnitTest.java | 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()
|
/external/skia/tests/ |
D | PDFJpegEmbedTest.cpp | 94 SkISize jpegSize; in SkIsJFIF() local 97 if (data && SkGetJpegInfo(data->data(), data->size(), &jpegSize, in SkIsJFIF() 103 *info = {jpegSize, yuv ? SkJFIFInfo::kYCbCr : SkJFIFInfo::kGrayscale}; in SkIsJFIF()
|
/external/skqp/tests/ |
D | PDFJpegEmbedTest.cpp | 95 SkISize jpegSize; in SkIsJFIF() local 98 if (data && SkGetJpegInfo(data->data(), data->size(), &jpegSize, in SkIsJFIF() 104 *info = {jpegSize, yuv ? SkJFIFInfo::kYCbCr : SkJFIFInfo::kGrayscale}; in SkIsJFIF()
|
/external/skqp/src/pdf/ |
D | SkPDFBitmap.cpp | 198 SkISize jpegSize; in do_jpeg() local 201 if (!SkGetJpegInfo(data->data(), data->size(), &jpegSize, in do_jpeg() 207 if (jpegSize != size // Sanity check. in do_jpeg() 220 jpegSize, yuv ? "DeviceRGB" : "DeviceGray", in do_jpeg()
|
/external/skia/src/pdf/ |
D | SkPDFBitmap.cpp | 198 SkISize jpegSize; in do_jpeg() local 201 if (!SkGetJpegInfo(data->data(), data->size(), &jpegSize, in do_jpeg() 207 if (jpegSize != size // Sanity check. in do_jpeg() 220 jpegSize, yuv ? "DeviceRGB" : "DeviceGray", in do_jpeg()
|