/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
TJCompressor.java | 317 * @param dstBuf buffer that will receive the JPEG image. Use 325 public void compress(byte[] dstBuf, int flags) throws Exception { 326 if (dstBuf == null || flags < 0) 342 dstBuf, jpegQuality, flags); 346 srcHeight, srcPixelFormat, dstBuf, subsamp, 350 srcPixelFormat, dstBuf, subsamp, jpegQuality, 355 srcHeight, srcPixelFormat, dstBuf, subsamp, 359 srcPixelFormat, dstBuf, subsamp, jpegQuality, 389 public void compress(BufferedImage srcImage, byte[] dstBuf, int flags) 392 compress(dstBuf, flags) [all...] |
TJDecompressor.java | 311 * @param dstBuf buffer that will receive the decompressed/decoded image. 370 public void decompress(byte[] dstBuf, int x, int y, int desiredWidth, 375 if (dstBuf == null || x < 0 || y < 0 || pitch < 0 || 381 yuvImage.getStrides(), yuvImage.getSubsamp(), dstBuf, x, y, 386 decompress(jpegBuf, jpegBufSize, dstBuf, x, y, desiredWidth, pitch, 389 decompress(jpegBuf, jpegBufSize, dstBuf, desiredWidth, pitch, 399 public void decompress(byte[] dstBuf, int desiredWidth, int pitch, 402 decompress(dstBuf, 0, 0, desiredWidth, pitch, desiredHeight, pixelFormat, 488 public void decompressToYUV(byte[] dstBuf, int flags) throws Exception { 489 YUVImage dstImage = new YUVImage(dstBuf, jpegWidth, 4, jpegHeight [all...] |
/external/libvncserver/test/ |
tjunittest.c | 238 void compTest(tjhandle handle, unsigned char **dstBuf, 252 if(*dstBuf && *dstSize>0) memset(*dstBuf, 0, *dstSize); 256 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, 263 writeJPEG(*dstBuf, *dstSize, tempStr); 276 unsigned char *dstBuf=NULL; 294 if((dstBuf=(unsigned char *)malloc(dstSize))==NULL) 296 memset(dstBuf, 0, dstSize); 299 _tj(tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, scaledWidth, 0, 303 if(checkBuf(dstBuf, scaledWidth, scaledHeight, pf, subsamp, sf, flags) [all...] |
/external/libjpeg-turbo/ |
turbojpeg.h | [all...] |
tjunittest.c | 395 void compTest(tjhandle handle, unsigned char **dstBuf, 408 if(*dstBuf && *dstSize>0) memset(*dstBuf, 0, *dstSize); 432 _tj(tjCompressFromYUV(handle, yuvBuf, w, pad, h, subsamp, dstBuf, 439 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, 445 writeJPEG(*dstBuf, *dstSize, tempStr); 458 unsigned char *dstBuf=NULL, *yuvBuf=NULL; 470 if((dstBuf=(unsigned char *)malloc(dstSize))==NULL) 472 memset(dstBuf, 0, dstSize); 497 _tj(tjDecodeYUV(handle2, yuvBuf, pad, subsamp, dstBuf, scaledWidth, 0 [all...] |
turbojpeg.c | 992 int width, int pitch, int height, int pixelFormat, unsigned char *dstBuf, 998 if(width<=0 || height<=0 || dstBuf==NULL || pad<0 || !isPow2(pad) 1004 dstPlanes[0]=dstBuf; 1028 int width, int pitch, int height, int pixelFormat, unsigned char *dstBuf, 1032 dstBuf, 4, subsamp, flags); 1036 int width, int pitch, int height, int pixelSize, unsigned char *dstBuf, 1040 getPixelFormat(pixelSize, flags), dstBuf, subsamp, flags); [all...] |
turbojpeg-jni.c | 470 unsigned char *srcBuf=NULL, *dstBuf=NULL; 488 bailif0(dstBuf=(*env)->GetPrimitiveArrayCritical(env, dst, 0)); 490 if(tjEncodeYUV2(handle, srcBuf, width, pitch, height, pf, dstBuf, subsamp, 495 if(dstBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, dstBuf, 0); 632 unsigned char *jpegBuf=NULL, *dstBuf=NULL; 649 bailif0(dstBuf=(*env)->GetPrimitiveArrayCritical(env, dst, 0)); 652 &dstBuf[y*actualPitch + x*tjPixelSize[pf]], width, pitch, height, pf, 657 if(dstBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, dstBuf, 0) [all...] |
/external/libvncserver/common/ |
turbojpeg.h | 430 * @param dstBuf pointer to an image buffer that will receive the decompressed 434 * factors returned by #tjGetScalingFactors(). The dstBuf pointer may 467 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,
|
turbojpeg.c | 747 unsigned long jpegSize, unsigned char *dstBuf, int width, int pitch, 761 if(jpegBuf==NULL || jpegSize<=0 || dstBuf==NULL || width<0 || pitch<0 815 _dstBuf=dstBuf; dstBuf=rgbBuf; 825 row_pointer[i]=&dstBuf[(dinfo->output_height-i-1)*pitch]; 826 else row_pointer[i]=&dstBuf[i*pitch]; 849 unsigned long jpegSize, unsigned char *dstBuf, int width, int pitch, 852 return tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, width, pitch,
|
/external/deqp/modules/gles3/functional/ |
es3fBufferCopyTests.cpp | 85 deUint32 dstBuf = 0; 103 dstBuf = genBuffer(); 104 glBindBuffer(m_dstTarget, dstBuf); 110 isOk = verifier.verify(dstBuf, dstRef.getPtr(), 0, m_dstSize, m_dstTarget) && isOk; 116 glBindBuffer(m_dstTarget, dstBuf); 122 isOk = verifier.verify(dstBuf, dstRef.getPtr(), 0, m_dstSize, m_dstTarget) && isOk;
|
/external/libjpeg-turbo/java/ |
TJBench.java | 99 byte[] dstBuf = new byte[w[0] * h[0] * ps]; 102 dstBuf[dstPtr + rindex] = (byte)((rgb[rgbPtr] >> 16) & 0xff); 103 dstBuf[dstPtr + gindex] = (byte)((rgb[rgbPtr] >> 8) & 0xff); 104 dstBuf[dstPtr + bindex] = (byte)(rgb[rgbPtr] & 0xff); 108 return dstBuf; 134 byte[] dstBuf, int w, int h, int subsamp, int jpegQual, 150 if (dstBuf == null) 151 dstBuf = new byte[pitch * scaledh]; 155 Arrays.fill(dstBuf, (byte)127); 180 tjd.decompress(dstBuf, x, y, width, pitch, height, pf, flags) [all...] |
TJUnitTest.java | 636 private static int compTest(TJCompressor tjc, byte[] dstBuf, int w, 671 Arrays.fill(dstBuf, (byte)0); 694 tjc.compress(dstBuf, flags); 699 writeJPEG(dstBuf, size, tempStr); 716 byte[] dstBuf = null; 765 dstBuf = tjd.decompress(scaledWidth, 0, scaledHeight, pf, flags); 777 (!bi && checkBuf(dstBuf, scaledWidth, 811 byte[] dstBuf; 813 dstBuf = new byte[TJ.bufSize(w, h, subsamp)]; 828 size = compTest(tjc, dstBuf, w, h, pf, baseName, subsamp, 100 [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
VideoUtils.java | 193 ByteBuffer dstBuf = ByteBuffer.allocate(bufferSize); 199 bufferInfo.size = extractor.readSampleData(dstBuf, offset); 213 muxer.writeSampleData(indexMap.get(trackIndex), dstBuf,
|
/cts/tests/tests/media/src/android/media/cts/ |
MediaMuxerTest.java | 207 ByteBuffer dstBuf = ByteBuffer.allocate(bufferSize); 235 bufferInfo.size = extractor.readSampleData(dstBuf, offset); 248 muxer.writeSampleData(indexMap.get(trackIndex), dstBuf,
|
DecoderTestAacDrc.java | 349 ByteBuffer dstBuf = codecInputBuffers[inputBufIndex]; 352 extractor.readSampleData(dstBuf, 0 /* offset */);
|
ImageReaderDecoderTest.java | 497 ByteBuffer dstBuf = decoderInputBuffers[inputBufIndex]; 499 extractor.readSampleData(dstBuf, 0 /* offset */); [all...] |
VideoDecoderPerfTest.java | 199 ByteBuffer dstBuf = codecInputBuffers[inputBufIndex]; 205 dstBuf.put(sample.first); [all...] |
DecoderTest.java | [all...] |
/cts/tests/video/src/android/video/cts/ |
VideoEncoderDecoderTest.java | [all...] |
/frameworks/av/services/audioflinger/ |
Threads.cpp | [all...] |
/prebuilts/tools/common/m2/repository/io/netty/netty-buffer/4.1.0.CR3/ |
netty-buffer-4.1.0.CR3.jar | |