/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
D | TJCompressor.java | 149 srcBuf = srcImage; in setSourceImage() 245 srcBuf = null; in setSourceImage() 254 srcBuf = db.getData(); in setSourceImage() 272 srcBuf = null; in setSourceImage() 330 if (srcBuf == null && srcBufInt == null && srcYUVImage == null) in compress() 345 else if (srcBuf != null) { in compress() 347 compressedSize = compress(srcBuf, srcX, srcY, srcWidth, srcPitch, in compress() 351 compressedSize = compress(srcBuf, srcWidth, srcPitch, srcHeight, in compress() 425 if (srcBuf == null && srcBufInt == null) in encodeYUV() 438 encodeYUV(srcBuf, srcX, srcY, srcWidth, srcPitch, srcHeight, in encodeYUV() [all …]
|
D | TJDecompressor.java | 859 private native void decompressHeader(byte[] srcBuf, int size) in decompressHeader() argument 863 private native void decompress(byte[] srcBuf, int size, byte[] dstBuf, in decompress() argument 867 private native void decompress(byte[] srcBuf, int size, byte[] dstBuf, int x, in decompress() argument 872 private native void decompress(byte[] srcBuf, int size, int[] dstBuf, in decompress() argument 876 private native void decompress(byte[] srcBuf, int size, int[] dstBuf, int x, in decompress() argument 881 private native void decompressToYUV(byte[] srcBuf, int size, byte[] dstBuf, in decompressToYUV() argument 884 private native void decompressToYUV(byte[] srcBuf, int size, in decompressToYUV() argument
|
D | TJTransformer.java | 155 private native int[] transform(byte[] srcBuf, int srcSize, byte[][] dstBufs, in transform() argument
|
/external/libvncserver/test/ |
D | tjunittest.c | 242 char tempStr[1024]; unsigned char *srcBuf=NULL; in compTest() local 249 if((srcBuf=(unsigned char *)malloc(w*h*tjPixelSize[pf]))==NULL) in compTest() 251 initBuf(srcBuf, w, h, pf, flags); in compTest() 256 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest() 268 if(srcBuf) free(srcBuf); in compTest() 380 unsigned char *srcBuf=NULL, *jpegBuf=NULL; in bufSizeTest() local 395 if((srcBuf=(unsigned char *)malloc(w*h*4))==NULL) in bufSizeTest() 404 if(random()<RAND_MAX/2) srcBuf[i]=0; in bufSizeTest() 405 else srcBuf[i]=255; in bufSizeTest() 408 _tj(tjCompress2(handle, srcBuf, w, 0, h, TJPF_BGRX, &jpegBuf, in bufSizeTest() [all …]
|
/external/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/ |
D | ConverterPerformanceTest.java | 210 ByteBuffer srcBuf = ByteBuffer.wrap(encBuffer,0,encBuffer.length); 215 decoder.decode(srcBuf,outBuf,false); 217 srcBuf.rewind(); 239 CharBuffer srcBuf = CharBuffer.wrap(unicodeBuffer,0,unicodeBuffer.length); 244 encoder.encode(srcBuf,outBuf,false); 246 srcBuf.rewind(); 268 ByteBuffer srcBuf = ByteBuffer.wrap(encBuffer,0,encBuffer.length); 273 decoder.decode(srcBuf,outBuf,false); 275 srcBuf.rewind(); 297 CharBuffer srcBuf = CharBuffer.wrap(unicodeBuffer,0,unicodeBuffer.length); [all …]
|
/external/libjpeg-turbo/ |
D | tjunittest.c | 399 char tempStr[1024]; unsigned char *srcBuf=NULL, *yuvBuf=NULL; in compTest() local 404 if((srcBuf=(unsigned char *)malloc(w*h*tjPixelSize[pf]))==NULL) in compTest() 406 initBuf(srcBuf, w, h, pf, flags); in compTest() 424 _tj(tjEncodeYUV3(handle2, srcBuf, w, 0, h, pf, yuvBuf, pad, subsamp, in compTest() 439 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest() 450 if(srcBuf) free(srcBuf); in compTest() 633 unsigned char *srcBuf=NULL, *dstBuf=NULL; in bufSizeTest() local 648 if((srcBuf=(unsigned char *)malloc(w*h*4))==NULL) in bufSizeTest() 660 if(random()<RAND_MAX/2) srcBuf[i]=0; in bufSizeTest() 661 else srcBuf[i]=255; in bufSizeTest() [all …]
|
D | turbojpeg.h | 674 DLLEXPORT int DLLCALL tjCompress2(tjhandle handle, const unsigned char *srcBuf, 739 const unsigned char *srcBuf, int width, int pad, int height, int subsamp, 969 const unsigned char *srcBuf, int width, int pitch, int height, 1027 const unsigned char *srcBuf, int width, int pitch, int height, 1291 DLLEXPORT int DLLCALL tjDecodeYUV(tjhandle handle, const unsigned char *srcBuf, 1509 DLLEXPORT int DLLCALL tjCompress(tjhandle handle, unsigned char *srcBuf, 1514 unsigned char *srcBuf, int width, int pitch, int height, int pixelSize, 1518 unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat,
|
D | turbojpeg.c | 766 DLLEXPORT int DLLCALL tjCompress2(tjhandle handle, const unsigned char *srcBuf, in tjCompress2() argument 779 if(srcBuf==NULL || width<=0 || pitch<0 || height<=0 || pixelFormat<0 in tjCompress2() 791 srcBuf=toRGB(srcBuf, width, pitch, height, pixelFormat, rgbBuf); in tjCompress2() 824 row_pointer[i]=(JSAMPROW)&srcBuf[(height-i-1)*(size_t)pitch]; in tjCompress2() 825 else row_pointer[i]=(JSAMPROW)&srcBuf[i*(size_t)pitch]; in tjCompress2() 844 DLLEXPORT int DLLCALL tjCompress(tjhandle handle, unsigned char *srcBuf, in tjCompress() argument 852 retval=tjEncodeYUV2(handle, srcBuf, width, pitch, height, in tjCompress() 857 retval=tjCompress2(handle, srcBuf, width, pitch, height, in tjCompress() 867 const unsigned char *srcBuf, int width, int pitch, int height, in tjEncodeYUVPlanes() argument 893 if(srcBuf==NULL || width<=0 || pitch<0 || height<=0 || pixelFormat<0 in tjEncodeYUVPlanes() [all …]
|
D | turbojpeg-jni.c | 195 unsigned char *srcBuf=NULL, *jpegBuf=NULL; in TJCompressor_compress() local 213 bailif0(srcBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0)); in TJCompressor_compress() 218 if(tjCompress2(handle, &srcBuf[y*actualPitch + x*tjPixelSize[pf]], width, in TJCompressor_compress() 225 if(srcBuf) (*env)->ReleasePrimitiveArrayCritical(env, src, srcBuf, 0); in TJCompressor_compress() 371 unsigned char *srcBuf=NULL, *dstPlanes[3]; in TJCompressor_encodeYUV() local 419 bailif0(srcBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0)); in TJCompressor_encodeYUV() 421 if(tjEncodeYUVPlanes(handle, &srcBuf[y*actualPitch + x*tjPixelSize[pf]], in TJCompressor_encodeYUV() 426 if(srcBuf) (*env)->ReleasePrimitiveArrayCritical(env, src, srcBuf, 0); in TJCompressor_encodeYUV() 475 unsigned char *srcBuf=NULL, *dstBuf=NULL; in TJCompressor_encodeYUV_12() local 492 bailif0(srcBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0)); in TJCompressor_encodeYUV_12() [all …]
|
/external/libjpeg-turbo/java/ |
D | TJBench.java | 114 static void saveImage(String fileName, byte[] srcBuf, int w, int h, in saveImage() argument 124 int pixel = (srcBuf[srcPtr + rindex] & 0xff) << 16 | in saveImage() 125 (srcBuf[srcPtr + gindex] & 0xff) << 8 | in saveImage() 126 (srcBuf[srcPtr + bindex] & 0xff); in saveImage() 135 static void decomp(byte[] srcBuf, byte[][] jpegBuf, int[] jpegSize, in decomp() argument 251 if (srcBuf != null && sf.getNum() == 1 && sf.getDenom() == 1) { in decomp() 260 int lum = (int)((double)(srcBuf[rindex] & 0xff) * 0.299 + in decomp() 261 (double)(srcBuf[gindex] & 0xff) * 0.587 + in decomp() 262 (double)(srcBuf[bindex] & 0xff) * 0.114 + 0.5); in decomp() 275 (srcBuf[pitch * y + x] & 0xff)); in decomp() [all …]
|
D | TJUnitTest.java | 631 byte[] srcBuf = null; in compTest() 658 srcBuf = new byte[w * h * ps + 1]; in compTest() 659 initBuf(srcBuf, w, w * ps, h, pf, flags); in compTest() 660 tjc.setSourceImage(srcBuf, 0, 0, w, 0, h, pf); in compTest() 842 byte[] srcBuf, dstBuf = null; in bufSizeTest() 856 srcBuf = new byte[w * h * 4]; in bufSizeTest() 862 srcBuf[i] = (byte)(r.nextInt(2) * 255); in bufSizeTest() 864 tjc.setSourceImage(srcBuf, 0, 0, w, 0, h, TJ.PF_BGRX); in bufSizeTest() 872 srcBuf = new byte[h * w * 4]; in bufSizeTest() 878 srcBuf[i] = (byte)(r.nextInt(2) * 255); in bufSizeTest() [all …]
|
/external/deqp/modules/gles3/functional/ |
D | es3fBufferCopyTests.cpp | 84 deUint32 srcBuf = 0; in iterate() local 97 srcBuf = genBuffer(); in iterate() 98 glBindBuffer(m_srcTarget, srcBuf); in iterate() 109 isOk = verifier.verify(srcBuf, srcRef.getPtr(), 0, m_srcSize, m_srcTarget) && isOk; in iterate() 115 glBindBuffer(m_srcTarget, srcBuf); in iterate() 121 isOk = verifier.verify(srcBuf, srcRef.getPtr(), 0, m_srcSize, m_srcTarget) && isOk; in iterate()
|
/external/libvncserver/common/ |
D | turbojpeg.c | 538 DLLEXPORT int DLLCALL tjCompress2(tjhandle handle, unsigned char *srcBuf, in tjCompress2() argument 551 if(srcBuf==NULL || width<=0 || pitch<0 || height<=0 || pixelFormat<0 in tjCompress2() 570 srcBuf=toRGB(srcBuf, width, pitch, height, pixelFormat, rgbBuf); in tjCompress2() 593 if(flags&TJFLAG_BOTTOMUP) row_pointer[i]=&srcBuf[(height-i-1)*pitch]; in tjCompress2() 594 else row_pointer[i]=&srcBuf[i*pitch]; in tjCompress2() 614 DLLEXPORT int DLLCALL tjCompress(tjhandle handle, unsigned char *srcBuf, in tjCompress() argument 619 retval=tjCompress2(handle, srcBuf, width, pitch, height, in tjCompress()
|
D | turbojpeg.h | 352 DLLEXPORT int DLLCALL tjCompress2(tjhandle handle, unsigned char *srcBuf, 509 DLLEXPORT int DLLCALL tjCompress(tjhandle handle, unsigned char *srcBuf,
|
/external/swiftshader/src/Renderer/ |
D | Surface.cpp | 3684 char *srcBuf = (char*)src->lockInternal(0, 0, 0, sw::LOCK_READONLY, sw::PRIVATE) + srcStart; in copyCubeEdge() local 3687 for(int i = 0; i < srcW; ++i, dstBuf += dstDelta, srcBuf += srcDelta) in copyCubeEdge() 3689 memcpy(dstBuf, srcBuf, srcBytes); in copyCubeEdge()
|