Home
last modified time | relevance | path

Searched refs:jpegSize (Results 1 – 25 of 30) sorted by relevance

12

/third_party/skia/third_party/externals/libjpeg-turbo/
Dturbojpeg.h756 unsigned char **jpegBuf, unsigned long *jpegSize,
823 unsigned long *jpegSize, int jpegQual,
898 unsigned long *jpegSize, int jpegQual,
1159 unsigned long jpegSize, int *width,
1228 unsigned long jpegSize, unsigned char *dstBuf,
1280 unsigned long jpegSize, unsigned char *dstBuf,
1338 unsigned long jpegSize,
1527 unsigned long jpegSize, int n,
1729 unsigned long jpegSize, int *width,
1733 unsigned long jpegSize, int *width,
[all …]
Dtjbench.c143 unsigned long *jpegSize, unsigned char *dstBuf, int w, int h, in decomp() argument
208 if (tjDecompressToYUV2(handle, jpegBuf[tile], jpegSize[tile], yuvBuf, in decomp()
216 } else if (tjDecompress2(handle, jpegBuf[tile], jpegSize[tile], in decomp()
329 unsigned long *jpegSize = NULL, yuvSize = 0; in fullTest() local
356 if ((jpegSize = (unsigned long *)malloc(sizeof(unsigned long) * in fullTest()
359 memset(jpegSize, 0, sizeof(unsigned long) * ntilesw * ntilesh); in fullTest()
412 subsamp, &jpegBuf[tile], &jpegSize[tile], in fullTest()
417 &jpegBuf[tile], &jpegSize[tile], subsamp, jpegQual, in fullTest()
421 totalJpegSize += jpegSize[tile]; in fullTest()
489 if (fwrite(jpegBuf[0], jpegSize[0], 1, file) != 1) in fullTest()
[all …]
Dturbojpeg-jni.c223 unsigned long jpegSize = 0; in TJCompressor_compress() local
239 jpegSize = tjBufSize(width, height, jpegSubsamp); in TJCompressor_compress()
240 if ((*env)->GetArrayLength(env, dst) < (jsize)jpegSize) in TJCompressor_compress()
249 width, pitch, height, pf, &jpegBuf, &jpegSize, jpegSubsamp, in TJCompressor_compress()
259 return (jint)jpegSize; in TJCompressor_compress()
327 unsigned long jpegSize = 0; in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() local
350 jpegSize = tjBufSize(width, height, subsamp); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
351 if ((*env)->GetArrayLength(env, dst) < (jsize)jpegSize) in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
391 subsamp, &jpegBuf, &jpegSize, jpegQual, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
399 return (jint)jpegSize; in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
[all …]
Dturbojpeg.c668 unsigned char **jpegBuf, unsigned long *jpegSize, in tjCompress2() argument
681 jpegSize == NULL || jpegSubsamp < 0 || jpegSubsamp >= NUMSUBOPT || in tjCompress2()
705 alloc = 0; *jpegSize = tjBufSize(width, height, jpegSubsamp); in tjCompress2()
707 jpeg_mem_dest_tj(cinfo, jpegBuf, jpegSize, alloc); in tjCompress2()
735 unsigned char *jpegBuf, unsigned long *jpegSize, in tjCompress() argument
751 *jpegSize = size; in tjCompress()
976 unsigned long *jpegSize, int jpegQual, in tjCompressFromYUVPlanes() argument
997 jpegSize == NULL || jpegQual < 0 || jpegQual > 100) in tjCompressFromYUVPlanes()
1017 alloc = 0; *jpegSize = tjBufSize(width, height, subsamp); in tjCompressFromYUVPlanes()
1019 jpeg_mem_dest_tj(cinfo, jpegBuf, jpegSize, alloc); in tjCompressFromYUVPlanes()
[all …]
Dtjunittest.c352 static void writeJPEG(unsigned char *jpegBuf, unsigned long jpegSize, in writeJPEG() argument
362 if (!file || fwrite(jpegBuf, jpegSize, 1, file) != 1) { in writeJPEG()
433 unsigned long jpegSize, int w, int h, int pf, in _decompTest() argument
443 TRY_TJ(tjDecompressHeader2(handle, jpegBuf, jpegSize, &_hdrw, &_hdrh, in _decompTest()
468 TRY_TJ(tjDecompressToYUV2(handle, jpegBuf, jpegSize, yuvBuf, scaledWidth, in _decompTest()
486 TRY_TJ(tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, scaledWidth, 0, in _decompTest()
502 unsigned long jpegSize, int w, int h, int pf, in decompTest() argument
516 _decompTest(handle, jpegBuf, jpegSize, w, h, pf, basename, subsamp, in decompTest()
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/
Dturbojpeg.h745 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 …]
Dtjexample.c265 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 …]
Dtjbench.c139 unsigned long *jpegSize, unsigned char *dstBuf, int w, int h, in decomp() argument
198 if (tjDecompressToYUV2(handle, jpegBuf[tile], jpegSize[tile], yuvBuf, in decomp()
206 } else if (tjDecompress2(handle, jpegBuf[tile], jpegSize[tile], in decomp()
317 unsigned long *jpegSize = NULL; in fullTest() local
341 if ((jpegSize = (unsigned long *)malloc(sizeof(unsigned long) * in fullTest()
344 memset(jpegSize, 0, sizeof(unsigned long) * ntilesw * ntilesh); in fullTest()
393 subsamp, &jpegBuf[tile], &jpegSize[tile], in fullTest()
398 &jpegBuf[tile], &jpegSize[tile], subsamp, jpegQual, in fullTest()
402 totalJpegSize += jpegSize[tile]; in fullTest()
464 if (fwrite(jpegBuf[0], jpegSize[0], 1, file) != 1) in fullTest()
[all …]
Dturbojpeg-jni.c218 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 …]
Dturbojpeg.c610 unsigned char **jpegBuf, unsigned long *jpegSize, in tjCompress2() argument
623 jpegSize == NULL || jpegSubsamp < 0 || jpegSubsamp >= NUMSUBOPT || in tjCompress2()
647 alloc = 0; *jpegSize = tjBufSize(width, height, jpegSubsamp); in tjCompress2()
649 jpeg_mem_dest_tj(cinfo, jpegBuf, jpegSize, alloc); in tjCompress2()
675 unsigned char *jpegBuf, unsigned long *jpegSize, in tjCompress() argument
691 *jpegSize = size; in tjCompress()
916 unsigned long *jpegSize, int jpegQual, in tjCompressFromYUVPlanes() argument
937 jpegSize == NULL || jpegQual < 0 || jpegQual > 100) in tjCompressFromYUVPlanes()
957 alloc = 0; *jpegSize = tjBufSize(width, height, subsamp); in tjCompressFromYUVPlanes()
959 jpeg_mem_dest_tj(cinfo, jpegBuf, jpegSize, alloc); in tjCompressFromYUVPlanes()
[all …]
Dtjunittest.c345 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 _tj(tjDecompressHeader2(handle, jpegBuf, jpegSize, &_hdrw, &_hdrh, in _decompTest()
452 _tj(tjDecompressToYUV2(handle, jpegBuf, jpegSize, yuvBuf, scaledWidth, pad, in _decompTest()
469 _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()
/third_party/libjpeg-turbo/
Dturbojpeg.h745 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,
1718 unsigned long jpegSize, int *width,
1722 unsigned long jpegSize, int *width,
[all …]
Dtjexample.c265 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()
358 unsigned long jpegSize = 0; in main() local
[all …]
Dtjbench.c140 unsigned long *jpegSize, unsigned char *dstBuf, int w, int h, in decomp() argument
205 if (tjDecompressToYUV2(handle, jpegBuf[tile], jpegSize[tile], yuvBuf, in decomp()
213 } else if (tjDecompress2(handle, jpegBuf[tile], jpegSize[tile], in decomp()
324 unsigned long *jpegSize = NULL, yuvSize = 0; in fullTest() local
351 if ((jpegSize = (unsigned long *)malloc(sizeof(unsigned long) * in fullTest()
354 memset(jpegSize, 0, sizeof(unsigned long) * ntilesw * ntilesh); in fullTest()
407 subsamp, &jpegBuf[tile], &jpegSize[tile], in fullTest()
412 &jpegBuf[tile], &jpegSize[tile], subsamp, jpegQual, in fullTest()
416 totalJpegSize += jpegSize[tile]; in fullTest()
478 if (fwrite(jpegBuf[0], jpegSize[0], 1, file) != 1) in fullTest()
[all …]
Dturbojpeg-jni.c223 unsigned long jpegSize = 0; in TJCompressor_compress() local
239 jpegSize = tjBufSize(width, height, jpegSubsamp); in TJCompressor_compress()
240 if ((*env)->GetArrayLength(env, dst) < (jsize)jpegSize) in TJCompressor_compress()
249 width, pitch, height, pf, &jpegBuf, &jpegSize, jpegSubsamp, in TJCompressor_compress()
259 return (jint)jpegSize; in TJCompressor_compress()
327 unsigned long jpegSize = 0; in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() local
348 jpegSize = tjBufSize(width, height, subsamp); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
349 if ((*env)->GetArrayLength(env, dst) < (jsize)jpegSize) in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
396 subsamp, &jpegBuf, &jpegSize, jpegQual, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
404 return (jint)jpegSize; in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
[all …]
Dturbojpeg.c639 unsigned char **jpegBuf, unsigned long *jpegSize, in tjCompress2() argument
652 jpegSize == NULL || jpegSubsamp < 0 || jpegSubsamp >= NUMSUBOPT || in tjCompress2()
676 alloc = 0; *jpegSize = tjBufSize(width, height, jpegSubsamp); in tjCompress2()
678 jpeg_mem_dest_tj(cinfo, jpegBuf, jpegSize, alloc); in tjCompress2()
704 unsigned char *jpegBuf, unsigned long *jpegSize, in tjCompress() argument
720 *jpegSize = size; in tjCompress()
945 unsigned long *jpegSize, int jpegQual, in tjCompressFromYUVPlanes() argument
966 jpegSize == NULL || jpegQual < 0 || jpegQual > 100) in tjCompressFromYUVPlanes()
986 alloc = 0; *jpegSize = tjBufSize(width, height, subsamp); in tjCompressFromYUVPlanes()
988 jpeg_mem_dest_tj(cinfo, jpegBuf, jpegSize, alloc); in tjCompressFromYUVPlanes()
[all …]
Dtjunittest.c345 static void writeJPEG(unsigned char *jpegBuf, unsigned long jpegSize, in writeJPEG() argument
350 if (!file || fwrite(jpegBuf, jpegSize, 1, file) != 1) { in writeJPEG()
419 unsigned long jpegSize, int w, int h, int pf, in _decompTest() argument
429 TRY_TJ(tjDecompressHeader2(handle, jpegBuf, jpegSize, &_hdrw, &_hdrh, in _decompTest()
454 TRY_TJ(tjDecompressToYUV2(handle, jpegBuf, jpegSize, yuvBuf, scaledWidth, in _decompTest()
471 TRY_TJ(tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, scaledWidth, 0, in _decompTest()
487 unsigned long jpegSize, int w, int h, int pf, in decompTest() argument
501 _decompTest(handle, jpegBuf, jpegSize, w, h, pf, basename, subsamp, in decompTest()
/third_party/libjpeg-turbo/java/
DTJBench.java163 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()
493 int[] jpegSize = null; in decompTest() local
[all …]
DTJExample.java281 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()
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/java/
DTJBench.java161 static void decomp(byte[] srcBuf, byte[][] jpegBuf, int[] jpegSize, in decomp() argument
205 tjd.setSourceImage(jpegBuf[tile], jpegSize[tile]); in decomp()
241 jpegBuf = null; jpegSize = null; in decomp()
324 int[] jpegSize; in fullTest() local
352 jpegSize = new int[ntilesw * ntilesh]; in fullTest()
394 jpegSize[tile] = tjc.getCompressedSize(); in fullTest()
395 totalJpegSize += jpegSize[tile]; in fullTest()
462 fos.write(jpegBuf[0], 0, jpegSize[0]); in fullTest()
470 decomp(srcBuf, jpegBuf, jpegSize, tmpBuf, w, h, subsamp, jpegQual, in fullTest()
482 int[] jpegSize = null; in decompTest() local
[all …]
DTJExample.java281 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()
/third_party/skia/tests/
DPDFJpegEmbedTest.cpp94 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()
/third_party/flutter/skia/tests/
DPDFJpegEmbedTest.cpp94 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()
/third_party/flutter/skia/src/pdf/
DSkPDFBitmap.cpp198 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()
/third_party/skia/src/pdf/
DSkPDFBitmap.cpp199 SkISize jpegSize; in do_jpeg() local
202 if (!SkGetJpegInfo(data->data(), data->size(), &jpegSize, in do_jpeg()
208 if (jpegSize != size // Safety check. in do_jpeg()
221 jpegSize, yuv ? "DeviceRGB" : "DeviceGray", in do_jpeg()

12