HomeSort by relevance Sort by last modified time
    Searched refs:jpegBuf (Results 1 - 13 of 13) sorted by null

  /external/libjpeg-turbo/
tjexample.c 170 unsigned char *imgBuf = NULL, *jpegBuf = NULL;
276 if ((jpegBuf = (unsigned char *)tjAlloc(jpegSize)) == NULL)
278 if (fread(jpegBuf, jpegSize, 1, jpegFile) < 1)
290 if (tjTransform(tjInstance, jpegBuf, jpegSize, 1, &dstBuf, &dstSize,
293 tjFree(jpegBuf);
294 jpegBuf = dstBuf;
301 if (tjDecompressHeader3(tjInstance, jpegBuf, jpegSize, &width, &height,
316 if (fwrite(jpegBuf, jpegSize, 1, jpegFile) < 1)
335 if (tjDecompress2(tjInstance, jpegBuf, jpegSize, imgBuf, width, 0, height,
338 tjFree(jpegBuf); jpegBuf = NULL
    [all...]
turbojpeg.h 706 * @param jpegBuf address of a pointer to an image buffer that will receive the
711 * -# set <tt>*jpegBuf</tt> to NULL to tell TurboJPEG to allocate the buffer
719 * you should always check <tt>*jpegBuf</tt> upon return from this function, as
723 * the JPEG image buffer. If <tt>*jpegBuf</tt> points to a pre-allocated
726 * bytes.) If <tt>*jpegBuf</tt> points to a JPEG image buffer that is being
745 unsigned char **jpegBuf, unsigned long *jpegSize,
776 * @param jpegBuf address of a pointer to an image buffer that will receive the
781 * -# set <tt>*jpegBuf</tt> to NULL to tell TurboJPEG to allocate the buffer
789 * you should always check <tt>*jpegBuf</tt> upon return from this function, as
793 * the JPEG image buffer. If <tt>*jpegBuf</tt> points to a pre-allocate
    [all...]
tjbench.c 138 int decomp(unsigned char *srcBuf, unsigned char **jpegBuf,
198 if (tjDecompressToYUV2(handle, jpegBuf[tile], jpegSize[tile], yuvBuf,
206 } else if (tjDecompress2(handle, jpegBuf[tile], jpegSize[tile],
312 unsigned char **jpegBuf = NULL, *yuvBuf = NULL, *tmpBuf = NULL, *srcPtr,
337 if ((jpegBuf = (unsigned char **)malloc(sizeof(unsigned char *) *
340 memset(jpegBuf, 0, sizeof(unsigned char *) * ntilesw * ntilesh);
348 if ((jpegBuf[i] = (unsigned char *)
393 subsamp, &jpegBuf[tile], &jpegSize[tile],
398 &jpegBuf[tile], &jpegSize[tile], subsamp, jpegQual,
464 if (fwrite(jpegBuf[0], jpegSize[0], 1, file) != 1
    [all...]
turbojpeg-jni.c 220 unsigned char *srcBuf = NULL, *jpegBuf = NULL;
241 bailif0(jpegBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0));
244 width, pitch, height, pf, &jpegBuf, &jpegSize, jpegSubsamp,
249 if (jpegBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, jpegBuf, 0);
322 unsigned char *jpegBuf = NULL;
368 bailif0(jpegBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0));
371 subsamp, &jpegBuf, &jpegSize, jpegQual,
376 if (jpegBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, jpegBuf, 0)
    [all...]
turbojpeg.c 627 unsigned char **jpegBuf, unsigned long *jpegSize,
639 pixelFormat < 0 || pixelFormat >= TJ_NUMPF || jpegBuf == NULL ||
666 jpeg_mem_dest_tj(cinfo, jpegBuf, jpegSize, alloc);
692 unsigned char *jpegBuf, unsigned long *jpegSize,
701 getPixelFormat(pixelSize, flags), jpegBuf,
705 getPixelFormat(pixelSize, flags), &jpegBuf, &size,
932 unsigned char **jpegBuf,
953 subsamp < 0 || subsamp >= NUMSUBOPT || jpegBuf == NULL ||
976 jpeg_mem_dest_tj(cinfo, jpegBuf, jpegSize, alloc);
    [all...]
tjunittest.c 345 void writeJPEG(unsigned char *jpegBuf, unsigned long jpegSize, char *filename)
349 if (!file || fwrite(jpegBuf, jpegSize, 1, file) != 1) {
417 void _decompTest(tjhandle handle, unsigned char *jpegBuf,
427 _tj(tjDecompressHeader2(handle, jpegBuf, jpegSize, &_hdrw, &_hdrh,
452 _tj(tjDecompressToYUV2(handle, jpegBuf, jpegSize, yuvBuf, scaledWidth, pad,
469 _tj(tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, scaledWidth, 0,
484 void decompTest(tjhandle handle, unsigned char *jpegBuf,
499 _decompTest(handle, jpegBuf, jpegSize, w, h, pf, basename, subsamp,
  /external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
TJTransformer.java 99 if (jpegBuf == null)
101 transformedSizes = transform(jpegBuf, jpegBufSize, dstBufs, transforms,
TJDecompressor.java 104 jpegBuf = jpegImage;
106 decompressHeader(jpegBuf, jpegBufSize);
132 jpegBuf = null;
209 if (jpegBuf == null)
211 return jpegBuf;
380 if (jpegBuf == null && yuvImage == null)
393 decompress(jpegBuf, jpegBufSize, dstBuf, x, y, desiredWidth, pitch,
396 decompress(jpegBuf, jpegBufSize, dstBuf, desiredWidth, pitch,
478 if (jpegBuf == null)
492 decompressToYUV(jpegBuf, jpegBufSize, dstImage.getPlanes()
    [all...]
TJCompressor.java 598 int height, int pixelFormat, byte[] jpegBuf, int jpegSubsamp, int jpegQual,
603 int pitch, int height, int pixelFormat, byte[] jpegBuf, int jpegSubsamp,
609 int height, int pixelFormat, byte[] jpegBuf, int jpegSubsamp, int jpegQual,
614 int stride, int height, int pixelFormat, byte[] jpegBuf, int jpegSubsamp,
619 int width, int[] srcStrides, int height, int subsamp, byte[] jpegBuf,
  /external/libjpeg-turbo/java/
TJBench.java 161 static void decomp(byte[] srcBuf, byte[][] jpegBuf, int[] jpegSize,
206 tjd.setSourceImage(jpegBuf[tile], jpegSize[tile]);
241 for (i = 0; i < jpegBuf.length; i++)
242 jpegBuf[i] = null;
243 jpegBuf = null; jpegSize = null;
325 byte[][] jpegBuf;
353 jpegBuf = new byte[ntilesw * ntilesh][TJ.bufSize(tilew, tileh, subsamp)];
395 tjc.compress(jpegBuf[tile], flags);
464 fos.write(jpegBuf[0], 0, jpegSize[0]);
472 decomp(srcBuf, jpegBuf, jpegSize, tmpBuf, w, h, subsamp, jpegQual
    [all...]
TJExample.java 286 byte[] jpegBuf = new byte[jpegSize];
287 fis.read(jpegBuf);
293 TJTransformer tjt = new TJTransformer(jpegBuf);
301 tjd = new TJDecompressor(jpegBuf);
380 byte[] jpegBuf = tjc.compress(flags);
387 fos.write(jpegBuf, 0, jpegSize);
TJUnitTest.java 621 static void writeJPEG(byte[] jpegBuf, int jpegBufSize, String filename)
625 fos.write(jpegBuf, 0, jpegBufSize);
698 static void decompTest(TJDecompressor tjd, byte[] jpegBuf, int jpegSize,
719 tjd.setSourceImage(jpegBuf, jpegSize);
779 static void decompTest(TJDecompressor tjd, byte[] jpegBuf, int jpegSize,
792 decompTest(tjd, jpegBuf, jpegSize, w, h, pf, baseName, subsamp,
    [all...]
  /external/libjpeg-turbo/doc/html/search/
all_74.js 84 ['tjtransform',['tjtransform',['../structtjtransform.html',1,'tjtransform'],['../group___turbo_j_p_e_g.html#gaa29f3189c41be12ec5dee7caec318a31',1,'tjtransform():&#160;turbojpeg.h'],['../group___turbo_j_p_e_g.html#ga9cb8abf4cc91881e04a0329b2270be25',1,'tjTransform(tjhandle handle, const unsigned char *jpegBuf, unsigned long jpegSize, int n, unsigned char **dstBufs, unsigned long *dstSizes, tjtransform *transforms, int flags):&#160;turbojpeg.h']]],

Completed in 1352 milliseconds