Home
last modified time | relevance | path

Searched refs:dstBuf (Results 1 – 12 of 12) sorted by relevance

/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
DTJCompressor.java327 public void compress(byte[] dstBuf, int flags) throws TJException { in compress() argument
328 if (dstBuf == null || flags < 0) in compress()
344 dstBuf, jpegQuality, flags); in compress()
348 srcHeight, srcPixelFormat, dstBuf, subsamp, in compress()
352 srcPixelFormat, dstBuf, subsamp, jpegQuality, in compress()
357 srcHeight, srcPixelFormat, dstBuf, subsamp, in compress()
361 srcPixelFormat, dstBuf, subsamp, jpegQuality, in compress()
390 public void compress(BufferedImage srcImage, byte[] dstBuf, int flags) in compress() argument
393 compress(dstBuf, flags); in compress()
449 public void encodeYUV(byte[] dstBuf, int flags) throws TJException { in encodeYUV() argument
[all …]
DTJDecompressor.java371 public void decompress(byte[] dstBuf, int x, int y, int desiredWidth, in decompress() argument
376 if (dstBuf == null || x < 0 || y < 0 || pitch < 0 || in decompress()
382 yuvImage.getStrides(), yuvImage.getSubsamp(), dstBuf, x, y, in decompress() local
387 decompress(jpegBuf, jpegBufSize, dstBuf, x, y, desiredWidth, pitch, in decompress()
390 decompress(jpegBuf, jpegBufSize, dstBuf, desiredWidth, pitch, in decompress()
400 public void decompress(byte[] dstBuf, int desiredWidth, int pitch, in decompress() argument
403 decompress(dstBuf, 0, 0, desiredWidth, pitch, desiredHeight, pixelFormat, in decompress()
490 public void decompressToYUV(byte[] dstBuf, int flags) throws TJException { in decompressToYUV() argument
491 YUVImage dstImage = new YUVImage(dstBuf, jpegWidth, 4, jpegHeight, in decompressToYUV()
679 public void decompress(int[] dstBuf, int x, int y, int desiredWidth, in decompress() argument
[all …]
/external/libjpeg-turbo/
Dtjunittest.c395 void compTest(tjhandle handle, unsigned char **dstBuf, in compTest() argument
408 if(*dstBuf && *dstSize>0) memset(*dstBuf, 0, *dstSize); in compTest()
432 _tj(tjCompressFromYUV(handle, yuvBuf, w, pad, h, subsamp, dstBuf, in compTest()
439 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest()
445 writeJPEG(*dstBuf, *dstSize, tempStr); in compTest()
458 unsigned char *dstBuf=NULL, *yuvBuf=NULL; in _decompTest() local
470 if((dstBuf=(unsigned char *)malloc(dstSize))==NULL) in _decompTest()
472 memset(dstBuf, 0, dstSize); in _decompTest()
497 _tj(tjDecodeYUV(handle2, yuvBuf, pad, subsamp, dstBuf, scaledWidth, 0, in _decompTest()
508 _tj(tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, scaledWidth, 0, in _decompTest()
[all …]
Dturbojpeg.h971 int pixelFormat, unsigned char *dstBuf, int pad, int subsamp, int flags);
1135 const unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf,
1185 const unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf,
1293 int pad, int subsamp, unsigned char *dstBuf, int width, int pitch,
1351 unsigned char *dstBuf, int width, int pitch, int height, int pixelFormat,
1507 int width, int pitch, int height, int pixelSize, unsigned char *dstBuf,
1512 unsigned char *dstBuf, int subsamp, int flags);
1516 unsigned char *dstBuf, int subsamp, int flags);
1526 unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf,
1530 unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf,
Dturbojpeg.c1031 int pixelFormat, unsigned char *dstBuf, int pad, int subsamp, int flags) in tjEncodeYUV3() argument
1036 if(width<=0 || height<=0 || dstBuf==NULL || pad<0 || !isPow2(pad) in tjEncodeYUV3()
1042 dstPlanes[0]=dstBuf; in tjEncodeYUV3()
1066 int width, int pitch, int height, int pixelFormat, unsigned char *dstBuf, in tjEncodeYUV2() argument
1070 dstBuf, 4, subsamp, flags); in tjEncodeYUV2()
1074 int width, int pitch, int height, int pixelSize, unsigned char *dstBuf, in tjEncodeYUV() argument
1078 getPixelFormat(pixelSize, flags), dstBuf, subsamp, flags); in tjEncodeYUV()
1376 const unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, in tjDecompress2() argument
1390 if(jpegBuf==NULL || jpegSize<=0 || dstBuf==NULL || width<0 || pitch<0 in tjDecompress2()
1443 _dstBuf=dstBuf; dstBuf=rgbBuf; in tjDecompress2()
[all …]
Dturbojpeg-jni.c475 unsigned char *srcBuf=NULL, *dstBuf=NULL; in TJCompressor_encodeYUV_12() local
493 bailif0(dstBuf=(*env)->GetPrimitiveArrayCritical(env, dst, 0)); in TJCompressor_encodeYUV_12()
495 if(tjEncodeYUV2(handle, srcBuf, width, pitch, height, pf, dstBuf, subsamp, in TJCompressor_encodeYUV_12()
500 if(dstBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, dstBuf, 0); in TJCompressor_encodeYUV_12()
637 unsigned char *jpegBuf=NULL, *dstBuf=NULL; in TJDecompressor_decompress() local
654 bailif0(dstBuf=(*env)->GetPrimitiveArrayCritical(env, dst, 0)); in TJDecompressor_decompress()
657 &dstBuf[y*actualPitch + x*tjPixelSize[pf]], width, pitch, height, pf, in TJDecompressor_decompress()
662 if(dstBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, dstBuf, 0); in TJDecompressor_decompress()
815 unsigned char *jpegBuf=NULL, *dstBuf=NULL; in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI() local
833 bailif0(dstBuf=(*env)->GetPrimitiveArrayCritical(env, dst, 0)); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI()
[all …]
/external/libvncserver/test/
Dtjunittest.c238 void compTest(tjhandle handle, unsigned char **dstBuf, in compTest() argument
252 if(*dstBuf && *dstSize>0) memset(*dstBuf, 0, *dstSize); in compTest()
256 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest()
263 writeJPEG(*dstBuf, *dstSize, tempStr); in compTest()
276 unsigned char *dstBuf=NULL; in _decompTest() local
294 if((dstBuf=(unsigned char *)malloc(dstSize))==NULL) in _decompTest()
296 memset(dstBuf, 0, dstSize); in _decompTest()
299 _tj(tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, scaledWidth, 0, in _decompTest()
303 if(checkBuf(dstBuf, scaledWidth, scaledHeight, pf, subsamp, sf, flags)) in _decompTest()
309 if(dstBuf) free(dstBuf); in _decompTest()
[all …]
/external/libjpeg-turbo/java/
DTJBench.java101 byte[] dstBuf = new byte[w[0] * h[0] * ps]; in loadImage()
104 dstBuf[dstPtr + rindex] = (byte)((rgb[rgbPtr] >> 16) & 0xff); in loadImage()
105 dstBuf[dstPtr + gindex] = (byte)((rgb[rgbPtr] >> 8) & 0xff); in loadImage()
106 dstBuf[dstPtr + bindex] = (byte)(rgb[rgbPtr] & 0xff); in loadImage()
110 return dstBuf; in loadImage()
136 byte[] dstBuf, int w, int h, int subsamp, int jpegQual, in decomp() argument
152 if (dstBuf == null) { in decomp()
155 dstBuf = new byte[pitch * scaledh]; in decomp()
160 Arrays.fill(dstBuf, (byte)127); in decomp()
185 tjd.decompress(dstBuf, x, y, width, pitch, height, pf, flags); in decomp()
[all …]
DTJUnitTest.java636 private static int compTest(TJCompressor tjc, byte[] dstBuf, int w, in compTest() argument
671 Arrays.fill(dstBuf, (byte)0); in compTest()
694 tjc.compress(dstBuf, flags); in compTest()
699 writeJPEG(dstBuf, size, tempStr); in compTest()
716 byte[] dstBuf = null; in decompTest()
765 dstBuf = tjd.decompress(scaledWidth, 0, scaledHeight, pf, flags); in decompTest()
777 (!bi && checkBuf(dstBuf, scaledWidth, in decompTest()
811 byte[] dstBuf; in doTest()
813 dstBuf = new byte[TJ.bufSize(w, h, subsamp)]; in doTest()
828 size = compTest(tjc, dstBuf, w, h, pf, baseName, subsamp, 100, in doTest()
[all …]
/external/deqp/modules/gles3/functional/
Des3fBufferCopyTests.cpp85 deUint32 dstBuf = 0; in iterate() local
103 dstBuf = genBuffer(); in iterate()
104 glBindBuffer(m_dstTarget, dstBuf); in iterate()
110 isOk = verifier.verify(dstBuf, dstRef.getPtr(), 0, m_dstSize, m_dstTarget) && isOk; in iterate()
116 glBindBuffer(m_dstTarget, dstBuf); in iterate()
122 isOk = verifier.verify(dstBuf, dstRef.getPtr(), 0, m_dstSize, m_dstTarget) && isOk; in iterate()
/external/libvncserver/common/
Dturbojpeg.h467 unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf,
510 int width, int pitch, int height, int pixelSize, unsigned char *dstBuf,
517 unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf,
Dturbojpeg.c747 unsigned long jpegSize, unsigned char *dstBuf, int width, int pitch, in tjDecompress2() argument
761 if(jpegBuf==NULL || jpegSize<=0 || dstBuf==NULL || width<0 || pitch<0 in tjDecompress2()
815 _dstBuf=dstBuf; dstBuf=rgbBuf; in tjDecompress2()
825 row_pointer[i]=&dstBuf[(dinfo->output_height-i-1)*pitch]; in tjDecompress2()
826 else row_pointer[i]=&dstBuf[i*pitch]; in tjDecompress2()
849 unsigned long jpegSize, unsigned char *dstBuf, int width, int pitch, in tjDecompress() argument
852 return tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, width, pitch, in tjDecompress()