Home
last modified time | relevance | path

Searched refs:jpegSize (Results 1 – 11 of 11) sorted by relevance

/external/libjpeg-turbo/
Dturbojpeg.h677 unsigned long *jpegSize, int jpegSubsamp, int jpegQual, int flags);
741 unsigned long *jpegSize, int jpegQual, int flags);
811 unsigned char **jpegBuf, unsigned long *jpegSize, int jpegQual, int flags);
1067 unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height,
1135 unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf,
1186 unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf,
1243 unsigned char *jpegBuf, unsigned long jpegSize, unsigned char **dstPlanes,
1421 unsigned long jpegSize, int n, unsigned char **dstBufs,
1519 unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height);
1522 unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height,
[all …]
Dturbojpeg-jni.c189 unsigned long jpegSize=0; in TJCompressor_compress() local
205 jpegSize=tjBufSize(width, height, jpegSubsamp); in TJCompressor_compress()
206 if((*env)->GetArrayLength(env, dst)<(jsize)jpegSize) in TJCompressor_compress()
215 pitch, height, pf, &jpegBuf, &jpegSize, jpegSubsamp, jpegQual, in TJCompressor_compress()
222 return (jint)jpegSize; in TJCompressor_compress()
288 unsigned long jpegSize=0; in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() local
308 jpegSize=tjBufSize(width, height, subsamp); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
309 if((*env)->GetArrayLength(env, dst)<(jsize)jpegSize) in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
340 subsamp, &jpegBuf, &jpegSize, jpegQual, flags|TJFLAG_NOREALLOC)==-1) in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
355 return (jint)jpegSize; in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
[all …]
Dturbojpeg.c733 unsigned long *jpegSize, int jpegSubsamp, int jpegQual, int flags) in tjCompress2() argument
745 || pixelFormat>=TJ_NUMPF || jpegBuf==NULL || jpegSize==NULL in tjCompress2()
777 alloc=0; *jpegSize=tjBufSize(width, height, jpegSubsamp); in tjCompress2()
779 jpeg_mem_dest_tj(cinfo, jpegBuf, jpegSize, alloc); in tjCompress2()
810 unsigned long *jpegSize, int jpegSubsamp, int jpegQual, int flags) in tjCompress() argument
825 *jpegSize=size; in tjCompress()
1046 unsigned char **jpegBuf, unsigned long *jpegSize, int jpegQual, int flags) in tjCompressFromYUVPlanes() argument
1064 || subsamp>=NUMSUBOPT || jpegBuf==NULL || jpegSize==NULL || jpegQual<0 in tjCompressFromYUVPlanes()
1086 alloc=0; *jpegSize=tjBufSize(width, height, subsamp); in tjCompressFromYUVPlanes()
1088 jpeg_mem_dest_tj(cinfo, jpegBuf, jpegSize, alloc); in tjCompressFromYUVPlanes()
[all …]
Dtjunittest.c381 void writeJPEG(unsigned char *jpegBuf, unsigned long jpegSize, char *filename) in writeJPEG() argument
384 if(!file || fwrite(jpegBuf, jpegSize, 1, file)!=1) in writeJPEG()
455 unsigned long jpegSize, int w, int h, int pf, char *basename, int subsamp, in _decompTest() argument
464 _tj(tjDecompressHeader2(handle, jpegBuf, jpegSize, &_hdrw, &_hdrh, in _decompTest()
489 _tj(tjDecompressToYUV2(handle, jpegBuf, jpegSize, yuvBuf, scaledWidth, in _decompTest()
508 _tj(tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, scaledWidth, 0, in _decompTest()
524 unsigned long jpegSize, int w, int h, int pf, char *basename, int subsamp, in decompTest() argument
538 _decompTest(handle, jpegBuf, jpegSize, w, h, pf, basename, subsamp, in decompTest()
DChangeLog.txt310 assume that the jpegSize parameter was equal to the size of the buffer, when in
/external/libvncserver/common/
Dturbojpeg.h354 unsigned long *jpegSize, int jpegSubsamp, int jpegQual, int flags);
407 unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height,
467 unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf,
514 unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height);
517 unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf,
Dturbojpeg.c540 unsigned long *jpegSize, int jpegSubsamp, int jpegQual, int flags) in tjCompress2() argument
552 || pixelFormat>=TJ_NUMPF || jpegBuf==NULL || jpegSize==NULL in tjCompress2()
602 *jpegSize=tjBufSize(width, height, jpegSubsamp) in tjCompress2()
616 unsigned long *jpegSize, int jpegSubsamp, int jpegQual, int flags) in tjCompress() argument
622 *jpegSize=size; in tjCompress()
685 unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height, in tjDecompressHeader2() argument
694 if(jpegBuf==NULL || jpegSize<=0 || width==NULL || height==NULL in tjDecompressHeader2()
704 this->jsrc.bytes_in_buffer=jpegSize; in tjDecompressHeader2()
724 unsigned char *jpegBuf, unsigned long jpegSize, int *width, int *height) in tjDecompressHeader() argument
727 return tjDecompressHeader2(handle, jpegBuf, jpegSize, width, height, in tjDecompressHeader()
[all …]
/external/libvncserver/test/
Dtjunittest.c224 void writeJPEG(unsigned char *jpegBuf, unsigned long jpegSize, char *filename) in writeJPEG() argument
227 if(!file || fwrite(jpegBuf, jpegSize, 1, file)!=1) in writeJPEG()
273 unsigned long jpegSize, int w, int h, int pf, char *basename, int subsamp, in _decompTest() argument
288 _tj(tjDecompressHeader2(handle, jpegBuf, jpegSize, &_hdrw, &_hdrh, in _decompTest()
299 _tj(tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, scaledWidth, 0, in _decompTest()
314 unsigned long jpegSize, int w, int h, int pf, char *basename, int subsamp, in decompTest() argument
324 _decompTest(handle, jpegBuf, jpegSize, w, h, pf, basename, subsamp, in decompTest()
328 _decompTest(handle, jpegBuf, jpegSize, w, h, pf, basename, subsamp, flags, in decompTest()
382 unsigned long jpegSize=0; in bufSizeTest() local
400 jpegSize=tjBufSize(w, h, subsamp); in bufSizeTest()
[all …]
/external/libjpeg-turbo/java/
DTJBench.java133 static void decomp(byte[] srcBuf, byte[][] jpegBuf, int[] jpegSize, in decomp() argument
174 tjd.setSourceImage(jpegBuf[tile], jpegSize[tile]); in decomp()
200 jpegBuf = null; jpegSize = null; in decomp()
277 int[] jpegSize; in fullTest() local
304 jpegSize = new int[ntilesw * ntilesh]; in fullTest()
343 jpegSize[tile] = tjc.getCompressedSize(); in fullTest()
344 totalJpegSize += jpegSize[tile]; in fullTest()
401 fos.write(jpegBuf[0], 0, jpegSize[0]); in fullTest()
409 decomp(srcBuf, jpegBuf, jpegSize, tmpBuf, w, h, subsamp, jpegQual, in fullTest()
421 int[] jpegSize = null; in decompTest() local
[all …]
DTJExample.java321 int jpegSize; in main() local
332 jpegSize = tjc.getCompressedSize(); in main()
337 fos.write(jpegBuf, 0, jpegSize); in main()
DTJUnitTest.java706 int jpegSize, int w, int h, int pf, in decompTest() argument
727 tjd.setSourceImage(jpegBuf, jpegSize); in decompTest()
788 int jpegSize, int w, int h, int pf, in decompTest() argument
801 decompTest(tjd, jpegBuf, jpegSize, w, h, pf, baseName, subsamp, in decompTest()