Searched defs:srcBuf (Results 1 - 10 of 10) sorted by relevance

/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
H A DTJTransformer.java154 private native int[] transform(byte[] srcBuf, int srcSize, byte[][] dstBufs, argument
H A DTJCompressor.java147 srcBuf = srcImage;
243 srcBuf = null;
252 srcBuf = db.getData();
270 srcBuf = null;
328 if (srcBuf == null && srcBufInt == null && srcYUVImage == null)
343 else if (srcBuf != null) {
345 compressedSize = compress(srcBuf, srcX, srcY, srcWidth, srcPitch,
349 compressedSize = compress(srcBuf, srcWidth, srcPitch, srcHeight,
423 if (srcBuf == null && srcBufInt == null)
437 encodeYUV(srcBuf, src
589 compress(byte[] srcBuf, int width, int pitch, int height, int pixelFormat, byte[] dstBuf, int jpegSubsamp, int jpegQual, int flags) argument
593 compress(byte[] srcBuf, int x, int y, int width, int pitch, int height, int pixelFormat, byte[] dstBuf, int jpegSubsamp, int jpegQual, int flags) argument
597 compress(int[] srcBuf, int width, int stride, int height, int pixelFormat, byte[] dstBuf, int jpegSubsamp, int jpegQual, int flags) argument
601 compress(int[] srcBuf, int x, int y, int width, int stride, int height, int pixelFormat, byte[] dstBuf, int jpegSubsamp, int jpegQual, int flags) argument
610 encodeYUV(byte[] srcBuf, int width, int pitch, int height, int pixelFormat, byte[] dstBuf, int subsamp, int flags) argument
614 encodeYUV(byte[] srcBuf, int x, int y, int width, int pitch, int height, int pixelFormat, byte[][] dstPlanes, int[] dstOffsets, int[] dstStrides, int subsamp, int flags) argument
619 encodeYUV(int[] srcBuf, int width, int stride, int height, int pixelFormat, byte[] dstBuf, int subsamp, int flags) argument
623 encodeYUV(int[] srcBuf, int x, int y, int width, int srcStride, int height, int pixelFormat, byte[][] dstPlanes, int[] dstOffsets, int[] dstStrides, int subsamp, int flags) argument
633 private byte[] srcBuf = null; field in class:TJCompressor
[all...]
H A DTJDecompressor.java854 private native void decompressHeader(byte[] srcBuf, int size) argument
857 private native void decompress(byte[] srcBuf, int size, byte[] dstBuf, argument
861 private native void decompress(byte[] srcBuf, int size, byte[] dstBuf, int x, argument
865 private native void decompress(byte[] srcBuf, int size, int[] dstBuf, argument
869 private native void decompress(byte[] srcBuf, int size, int[] dstBuf, int x, argument
873 private native void decompressToYUV(byte[] srcBuf, int size, byte[] dstBuf, argument
876 private native void decompressToYUV(byte[] srcBuf, int size, argument
/external/deqp/modules/gles3/functional/
H A Des3fBufferCopyTests.cpp84 deUint32 srcBuf = 0; local
97 srcBuf = genBuffer();
98 glBindBuffer(m_srcTarget, srcBuf);
109 isOk = verifier.verify(srcBuf, srcRef.getPtr(), 0, m_srcSize, m_srcTarget) && isOk;
115 glBindBuffer(m_srcTarget, srcBuf);
121 isOk = verifier.verify(srcBuf, srcRef.getPtr(), 0, m_srcSize, m_srcTarget) && isOk;
/external/libjpeg-turbo/java/
H A DTJBench.java112 static void saveImage(String fileName, byte[] srcBuf, int w, int h, argument
122 int pixel = (srcBuf[srcPtr + rindex] & 0xff) << 16 |
123 (srcBuf[srcPtr + gindex] & 0xff) << 8 |
124 (srcBuf[srcPtr + bindex] & 0xff);
133 static void decomp(byte[] srcBuf, byte[][] jpegBuf, int[] jpegSize, argument
241 if (srcBuf != null && sf.getNum() == 1 && sf.getDenom() == 1) {
250 int lum = (int)((double)(srcBuf[rindex] & 0xff) * 0.299 +
251 (double)(srcBuf[gindex] & 0xff) * 0.587 +
252 (double)(srcBuf[bindex] & 0xff) * 0.114 + 0.5);
265 (srcBuf[pitc
272 fullTest(byte[] srcBuf, int w, int h, int subsamp, int jpegQual, String fileName) argument
[all...]
/external/libvncserver/test/
H A Dtjunittest.c242 char tempStr[1024]; unsigned char *srcBuf=NULL; local
249 if((srcBuf=(unsigned char *)malloc(w*h*tjPixelSize[pf]))==NULL)
251 initBuf(srcBuf, w, h, pf, flags);
256 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp,
268 if(srcBuf) free(srcBuf);
380 unsigned char *srcBuf=NULL, *jpegBuf=NULL; local
395 if((srcBuf=(unsigned char *)malloc(w*h*4))==NULL)
404 if(random()<RAND_MAX/2) srcBuf[i]=0;
405 else srcBuf[
[all...]
/external/libjpeg-turbo/
H A Dtjunittest.c399 char tempStr[1024]; unsigned char *srcBuf=NULL, *yuvBuf=NULL; local
404 if((srcBuf=(unsigned char *)malloc(w*h*tjPixelSize[pf]))==NULL)
406 initBuf(srcBuf, w, h, pf, flags);
424 _tj(tjEncodeYUV3(handle2, srcBuf, w, 0, h, pf, yuvBuf, pad, subsamp,
439 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp,
450 if(srcBuf) free(srcBuf);
599 unsigned char *srcBuf=NULL, *dstBuf=NULL; local
614 if((srcBuf=(unsigned char *)malloc(w*h*4))==NULL)
626 if(random()<RAND_MAX/2) srcBuf[
[all...]
H A Dturbojpeg-jni.c191 unsigned char *srcBuf=NULL, *jpegBuf=NULL; local
209 bailif0(srcBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0));
214 if(tjCompress2(handle, &srcBuf[y*actualPitch + x*tjPixelSize[pf]], width,
221 if(srcBuf) (*env)->ReleasePrimitiveArrayCritical(env, src, srcBuf, 0);
366 unsigned char *srcBuf=NULL, *dstPlanes[3]; local
414 bailif0(srcBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0));
416 if(tjEncodeYUVPlanes(handle, &srcBuf[y*actualPitch + x*tjPixelSize[pf]],
421 if(srcBuf) (*env)->ReleasePrimitiveArrayCritical(env, src, srcBuf,
470 unsigned char *srcBuf=NULL, *dstBuf=NULL; local
[all...]
H A Dturbojpeg.c731 DLLEXPORT int DLLCALL tjCompress2(tjhandle handle, unsigned char *srcBuf, argument
744 if(srcBuf==NULL || width<=0 || pitch<0 || height<=0 || pixelFormat<0
763 srcBuf=toRGB(srcBuf, width, pitch, height, pixelFormat, rgbBuf);
788 if(flags&TJFLAG_BOTTOMUP) row_pointer[i]=&srcBuf[(height-i-1)*pitch];
789 else row_pointer[i]=&srcBuf[i*pitch];
808 DLLEXPORT int DLLCALL tjCompress(tjhandle handle, unsigned char *srcBuf, argument
816 retval=tjEncodeYUV2(handle, srcBuf, width, pitch, height,
821 retval=tjCompress2(handle, srcBuf, width, pitch, height,
830 DLLEXPORT int DLLCALL tjEncodeYUVPlanes(tjhandle handle, unsigned char *srcBuf, argument
991 tjEncodeYUV3(tjhandle handle, unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat, unsigned char *dstBuf, int pad, int subsamp, int flags) argument
1027 tjEncodeYUV2(tjhandle handle, unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat, unsigned char *dstBuf, int subsamp, int flags) argument
1035 tjEncodeYUV(tjhandle handle, unsigned char *srcBuf, int width, int pitch, int height, int pixelSize, unsigned char *dstBuf, int subsamp, int flags) argument
1175 tjCompressFromYUV(tjhandle handle, unsigned char *srcBuf, int width, int pad, int height, int subsamp, unsigned char **jpegBuf, unsigned long *jpegSize, int jpegQual, int flags) argument
1664 tjDecodeYUV(tjhandle handle, unsigned char *srcBuf, int pad, int subsamp, unsigned char *dstBuf, int width, int pitch, int height, int pixelFormat, int flags) argument
[all...]
/external/libvncserver/common/
H A Dturbojpeg.c538 DLLEXPORT int DLLCALL tjCompress2(tjhandle handle, unsigned char *srcBuf, argument
551 if(srcBuf==NULL || width<=0 || pitch<0 || height<=0 || pixelFormat<0
570 srcBuf=toRGB(srcBuf, width, pitch, height, pixelFormat, rgbBuf);
593 if(flags&TJFLAG_BOTTOMUP) row_pointer[i]=&srcBuf[(height-i-1)*pitch];
594 else row_pointer[i]=&srcBuf[i*pitch];
614 DLLEXPORT int DLLCALL tjCompress(tjhandle handle, unsigned char *srcBuf, argument
619 retval=tjCompress2(handle, srcBuf, width, pitch, height,

Completed in 2720 milliseconds