/third_party/skia/third_party/externals/libjpeg-turbo/ |
H A D | turbojpeg.h | 728 * If you choose option 1, <tt>*jpegSize</tt> should be set to the size of your 733 * @param jpegSize pointer to an unsigned long variable that holds the size of 735 * buffer, then <tt>*jpegSize</tt> should be set to the size of the buffer. 736 * Upon return, <tt>*jpegSize</tt> will contain the size of the JPEG image (in 739 * <tt>*jpegSize</tt> is ignored. 756 unsigned char **jpegBuf, unsigned long *jpegSize, 798 * If you choose option 1, <tt>*jpegSize</tt> should be set to the size of your 803 * @param jpegSize pointer to an unsigned long variable that holds the size of 805 * buffer, then <tt>*jpegSize</tt> should be set to the size of the buffer. 806 * Upon return, <tt>*jpegSize</t [all...] |
H A D | tjbench.c | 143 unsigned long *jpegSize, unsigned char *dstBuf, int w, int h, in decomp() 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[ in fullTest() 142 decomp(unsigned char *srcBuf, unsigned char **jpegBuf, unsigned long *jpegSize, unsigned char *dstBuf, int w, int h, int subsamp, int jpegQual, char *fileName, int tilew, int tileh) decomp() argument 535 unsigned long *jpegSize = NULL, srcSize, totalJpegSize; decompTest() local [all...] |
H A 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() 644 Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader(JNIEnv *env, jobject obj, jbyteArray src, jint jpegSize) Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader() argument 681 TJDecompressor_decompress(JNIEnv *env, jobject obj, jbyteArray src, jint jpegSize, jarray dst, jint dstElementSize, jint x, jint y, jint width, jint pitch, jint height, jint pf, jint flags) TJDecompressor_decompress() argument 721 Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3BIIIIIII(JNIEnv *env, jobject obj, jbyteArray src, jint jpegSize, jbyteArray dst, jint x, jint y, jint width, jint pitch, jint height, jint pf, jint flags) Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3BIIIIIII() argument 730 Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3BIIIII(JNIEnv *env, jobject obj, jbyteArray src, jint jpegSize, jbyteArray dst, jint width, jint pitch, jint height, jint pf, jint flags) Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3BIIIII() argument 739 Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3IIIIIIII(JNIEnv *env, jobject obj, jbyteArray src, jint jpegSize, jintArray dst, jint x, jint y, jint width, jint stride, jint height, jint pf, jint flags) Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3IIIIIIII() argument 756 Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3IIIIII(JNIEnv *env, jobject obj, jbyteArray src, jint jpegSize, jintArray dst, jint width, jint stride, jint height, jint pf, jint flags) Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3IIIIII() argument 773 Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III(JNIEnv *env, jobject obj, jbyteArray src, jint jpegSize, jobjectArray dstobjs, jintArray jDstOffsets, jint desiredWidth, jintArray jDstStrides, jint desiredHeight, jint flags) Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III() argument 865 Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI(JNIEnv *env, jobject obj, jbyteArray src, jint jpegSize, jbyteArray dst, jint flags) Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI() argument 1098 Java_org_libjpegturbo_turbojpeg_TJTransformer_transform(JNIEnv *env, jobject obj, jbyteArray jsrcBuf, jint jpegSize, jobjectArray dstobjs, jobjectArray tobjs, jint flags) Java_org_libjpegturbo_turbojpeg_TJTransformer_transform() argument [all...] |
H A D | turbojpeg.c | 668 unsigned char **jpegBuf, unsigned long *jpegSize, in tjCompress2() 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() 751 *jpegSize = size; in tjCompress() 976 unsigned long *jpegSize, int jpegQual, in tjCompressFromYUVPlanes() 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, allo in tjCompressFromYUVPlanes() 666 tjCompress2(tjhandle handle, const unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat, unsigned char **jpegBuf, unsigned long *jpegSize, int jpegSubsamp, int jpegQual, int flags) tjCompress2() argument 733 tjCompress(tjhandle handle, unsigned char *srcBuf, int width, int pitch, int height, int pixelSize, unsigned char *jpegBuf, unsigned long *jpegSize, int jpegSubsamp, int jpegQual, int flags) tjCompress() argument 971 tjCompressFromYUVPlanes(tjhandle handle, const unsigned char **srcPlanes, int width, const int *strides, int height, int subsamp, unsigned char **jpegBuf, unsigned long *jpegSize, int jpegQual, int flags) tjCompressFromYUVPlanes() argument 1108 tjCompressFromYUV(tjhandle handle, const unsigned char *srcBuf, int width, int pad, int height, int subsamp, unsigned char **jpegBuf, unsigned long *jpegSize, int jpegQual, int flags) tjCompressFromYUV() argument 1194 tjDecompressHeader3(tjhandle handle, const unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height, int *jpegSubsamp, int *jpegColorspace) tjDecompressHeader3() argument 1244 tjDecompressHeader2(tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height, int *jpegSubsamp) tjDecompressHeader2() argument 1254 tjDecompressHeader(tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height) tjDecompressHeader() argument 1278 tjDecompress2(tjhandle handle, const unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, int width, int pitch, int height, int pixelFormat, int flags) tjDecompress2() argument 1365 tjDecompress(tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, int width, int pitch, int height, int pixelSize, int flags) tjDecompress() argument 1615 tjDecompressToYUVPlanes(tjhandle handle, const unsigned char *jpegBuf, unsigned long jpegSize, unsigned char **dstPlanes, int width, int *strides, int height, int flags) tjDecompressToYUVPlanes() argument 1795 tjDecompressToYUV2(tjhandle handle, const unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, int width, int pad, int height, int flags) tjDecompressToYUV2() argument 1859 tjDecompressToYUV(tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, int flags) tjDecompressToYUV() argument 1888 tjTransform(tjhandle handle, const unsigned char *jpegBuf, unsigned long jpegSize, int n, unsigned char **dstBufs, unsigned long *dstSizes, tjtransform *t, int flags) tjTransform() argument [all...] |
H A 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() 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() 516 _decompTest(handle, jpegBuf, jpegSize, w, h, pf, basename, subsamp, in decompTest() 432 _decompTest(tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, int w, int h, int pf, char *basename, int subsamp, int flags, tjscalingfactor sf) _decompTest() argument 501 decompTest(tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, int w, int h, int pf, char *basename, int subsamp, int flags) decompTest() argument
|
/third_party/skia/tests/ |
H A 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()
|
/third_party/skia/src/pdf/ |
H A 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()
|