Home
last modified time | relevance | path

Searched refs:jpegBuf (Results 1 - 5 of 5) sorted by relevance

/third_party/skia/third_party/externals/libjpeg-turbo/
H A Dturbojpeg.h717 * @param jpegBuf address of a pointer to an image buffer that will receive the
722 * -# set <tt>*jpegBuf</tt> to NULL to tell TurboJPEG to allocate the buffer
730 * you should always check <tt>*jpegBuf</tt> upon return from this function, as
734 * the JPEG image buffer. If <tt>*jpegBuf</tt> points to a pre-allocated
737 * bytes.) If <tt>*jpegBuf</tt> points to a JPEG image buffer that is being
756 unsigned char **jpegBuf, unsigned long *jpegSize,
787 * @param jpegBuf address of a pointer to an image buffer that will receive the
792 * -# set <tt>*jpegBuf</tt> to NULL to tell TurboJPEG to allocate the buffer
800 * you should always check <tt>*jpegBuf</tt> upon return from this function, as
804 * the JPEG image buffer. If <tt>*jpegBuf</t
[all...]
H A Dtjbench.c142 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[ in fullTest()
534 unsigned char **jpegBuf = NULL, *srcBuf = NULL; decompTest() local
[all...]
H A Dturbojpeg-jni.c225 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()
648 unsigned char *jpegBuf = NULL; Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader() local
688 unsigned char *jpegBuf = NULL, *dstBuf = NULL; TJDecompressor_decompress() local
779 unsigned char *jpegBuf = NULL; Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III() local
870 unsigned char *jpegBuf = NULL, *dstBuf = NULL; Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI() local
1103 unsigned char *jpegBuf = NULL, **dstBufs = NULL; Java_org_libjpegturbo_turbojpeg_TJTransformer_transform() local
[all...]
H A Dturbojpeg.c668 unsigned char **jpegBuf, unsigned long *jpegSize, in tjCompress2()
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()
744 getPixelFormat(pixelSize, flags), jpegBuf, in tjCompress()
748 getPixelFormat(pixelSize, flags), &jpegBuf, &size, in tjCompress()
975 unsigned char **jpegBuf, in tjCompressFromYUVPlanes()
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()
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 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()
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()

Completed in 9 milliseconds