/external/libjpeg-turbo/ |
D | turbojpeg.h | 756 unsigned char **jpegBuf, unsigned long *jpegSize, 822 unsigned char **jpegBuf, 897 unsigned char **jpegBuf, 1158 const unsigned char *jpegBuf, 1227 DLLEXPORT int tjDecompress2(tjhandle handle, const unsigned char *jpegBuf, 1279 DLLEXPORT int tjDecompressToYUV2(tjhandle handle, const unsigned char *jpegBuf, 1337 const unsigned char *jpegBuf, 1526 DLLEXPORT int tjTransform(tjhandle handle, const unsigned char *jpegBuf, 1728 DLLEXPORT int tjDecompressHeader(tjhandle handle, unsigned char *jpegBuf, 1732 DLLEXPORT int tjDecompressHeader2(tjhandle handle, unsigned char *jpegBuf, [all …]
|
D | tjbench.c | 142 static int decomp(unsigned char *srcBuf, unsigned char **jpegBuf, 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() 324 unsigned char **jpegBuf = NULL, *yuvBuf = NULL, *tmpBuf = NULL, *srcPtr, in fullTest() local 352 if ((jpegBuf = (unsigned char **)malloc(sizeof(unsigned char *) * in fullTest() 355 memset(jpegBuf, 0, sizeof(unsigned char *) * ntilesw * ntilesh); in fullTest() 365 if ((jpegBuf[i] = (unsigned char *) in fullTest() 412 subsamp, &jpegBuf[tile], &jpegSize[tile], in fullTest() 417 &jpegBuf[tile], &jpegSize[tile], subsamp, jpegQual, in fullTest() 489 if (fwrite(jpegBuf[0], jpegSize[0], 1, file) != 1) in fullTest() [all …]
|
D | turbojpeg-jni.c | 225 unsigned char *srcBuf = NULL, *jpegBuf = NULL; in TJCompressor_compress() local 246 BAILIF0(jpegBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in TJCompressor_compress() 249 width, pitch, height, pf, &jpegBuf, &jpegSize, jpegSubsamp, in TJCompressor_compress() 251 SAFE_RELEASE(dst, jpegBuf); in TJCompressor_compress() 257 SAFE_RELEASE(dst, jpegBuf); in TJCompressor_compress() 333 unsigned char *jpegBuf = NULL; in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() local 388 BAILIF0(jpegBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); 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() 393 SAFE_RELEASE(dst, jpegBuf); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() 398 SAFE_RELEASE(dst, jpegBuf); 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 680 pixelFormat < 0 || pixelFormat >= TJ_NUMPF || jpegBuf == NULL || in tjCompress2() 707 jpeg_mem_dest_tj(cinfo, jpegBuf, jpegSize, alloc); in tjCompress2() 735 unsigned char *jpegBuf, unsigned long *jpegSize, in tjCompress() argument 744 getPixelFormat(pixelSize, flags), jpegBuf, in tjCompress() 748 getPixelFormat(pixelSize, flags), &jpegBuf, &size, in tjCompress() 975 unsigned char **jpegBuf, in tjCompressFromYUVPlanes() argument 996 subsamp < 0 || subsamp >= NUMSUBOPT || jpegBuf == NULL || in tjCompressFromYUVPlanes() 1019 jpeg_mem_dest_tj(cinfo, jpegBuf, jpegSize, alloc); in tjCompressFromYUVPlanes() 1110 unsigned char **jpegBuf, in tjCompressFromYUV() argument [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() 432 static void _decompTest(tjhandle handle, unsigned char *jpegBuf, 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() 501 static void decompTest(tjhandle handle, unsigned char *jpegBuf, in decompTest() argument 516 _decompTest(handle, jpegBuf, jpegSize, w, h, pf, basename, subsamp, in decompTest()
|