/external/libjpeg-turbo/ |
D | turbojpeg.h | 756 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 …]
|
D | tjbench.c | 143 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 …]
|
D | turbojpeg-jni.c | 223 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 …]
|
D | turbojpeg.c | 668 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 …]
|
D | tjunittest.c | 352 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()
|
D | ChangeLog.md | 1262 assume that the `jpegSize` parameter was equal to the size of the buffer, when
|
/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 | 199 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()
|