/external/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/ |
ConverterPerformanceTest.java | 208 ByteBuffer srcBuf = ByteBuffer.wrap(encBuffer,0,encBuffer.length); 213 decoder.decode(srcBuf,outBuf,false); 215 srcBuf.rewind(); 237 CharBuffer srcBuf = CharBuffer.wrap(unicodeBuffer,0,unicodeBuffer.length); 242 encoder.encode(srcBuf,outBuf,false); 244 srcBuf.rewind(); 266 ByteBuffer srcBuf = ByteBuffer.wrap(encBuffer,0,encBuffer.length); 271 decoder.decode(srcBuf,outBuf,false); 273 srcBuf.rewind(); 295 CharBuffer srcBuf = CharBuffer.wrap(unicodeBuffer,0,unicodeBuffer.length) [all...] |
/external/libvncserver/test/ |
tjunittest.c | 242 char tempStr[1024]; unsigned char *srcBuf=NULL; 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; 395 if((srcBuf=(unsigned char *)malloc(w*h*4))==NULL) 404 if(random()<RAND_MAX/2) srcBuf[i]=0; 405 else srcBuf[i]=255 [all...] |
/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
TJCompressor.java | 147 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, srcX, srcY, srcWidth, srcPitch, srcHeight [all...] |
TJTransformer.java | 154 private native int[] transform(byte[] srcBuf, int srcSize, byte[][] dstBufs,
|
TJDecompressor.java | [all...] |
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
FatFile.java | 141 * @param srcBuf {@inheritDoc} 144 public void write(long offset, ByteBuffer srcBuf) 151 final long lastByte = offset + srcBuf.remaining(); 157 chain.writeData(offset, srcBuf);
|
ClusterChain.java | 240 * @param srcBuf the buffer to write to this {@code ClusterChain} 243 public void writeData(long offset, ByteBuffer srcBuf) throws IOException { 245 int len = srcBuf.remaining(); 261 srcBuf.limit(srcBuf.position() + size); 263 device.write(getDevOffset(chain[chainIdx], clusOfs), srcBuf); 272 srcBuf.limit(srcBuf.position() + size); 274 device.write(getDevOffset(chain[chainIdx], 0), srcBuf);
|
/external/libjpeg-turbo/ |
turbojpeg.h | 621 * @param srcBuf pointer to an image buffer containing RGB, grayscale, or 675 DLLEXPORT int DLLCALL tjCompress2(tjhandle handle, unsigned char *srcBuf, 685 * @param srcBuf pointer to an image buffer containing a YUV planar image to be 739 DLLEXPORT int DLLCALL tjCompressFromYUV(tjhandle handle, unsigned char *srcBuf, [all...] |
tjunittest.c | 399 char tempStr[1024]; unsigned char *srcBuf=NULL, *yuvBuf=NULL; 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; 614 if((srcBuf=(unsigned char *)malloc(w*h*4))==NULL) 626 if(random()<RAND_MAX/2) srcBuf[i]=0 [all...] |
turbojpeg.c | 731 DLLEXPORT int DLLCALL tjCompress2(tjhandle handle, unsigned char *srcBuf, 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, 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, [all...] |
turbojpeg-jni.c | 191 unsigned char *srcBuf=NULL, *jpegBuf=NULL; 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]; 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, 0) [all...] |
/external/libjpeg-turbo/java/ |
TJBench.java | 112 static void saveImage(String fileName, byte[] srcBuf, int w, int h, 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, 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[pitch * y + x] & 0xff)) [all...] |
TJUnitTest.java | 640 byte[] srcBuf = null; 667 srcBuf = new byte[w * h * ps + 1]; 668 initBuf(srcBuf, w, w * ps, h, pf, flags); 669 tjc.setSourceImage(srcBuf, 0, 0, w, 0, h, pf); 851 byte[] srcBuf, dstBuf = null; 865 srcBuf = new byte[w * h * 4]; 871 srcBuf[i] = (byte)(r.nextInt(2) * 255); 873 tjc.setSourceImage(srcBuf, 0, 0, w, 0, h, TJ.PF_BGRX); 881 srcBuf = new byte[h * w * 4]; 887 srcBuf[i] = (byte)(r.nextInt(2) * 255) [all...] |
/external/deqp/modules/gles3/functional/ |
es3fBufferCopyTests.cpp | 84 deUint32 srcBuf = 0; 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/libvncserver/common/ |
turbojpeg.h | 309 * @param srcBuf pointer to an image buffer containing RGB or grayscale pixels 352 DLLEXPORT int DLLCALL tjCompress2(tjhandle handle, unsigned char *srcBuf, 509 DLLEXPORT int DLLCALL tjCompress(tjhandle handle, unsigned char *srcBuf,
|
turbojpeg.c | 538 DLLEXPORT int DLLCALL tjCompress2(tjhandle handle, unsigned char *srcBuf, 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, 619 retval=tjCompress2(handle, srcBuf, width, pitch, height,
|
/prebuilts/go/darwin-x86/src/text/scanner/ |
scanner.go | 120 srcBuf [bufLen + 1]byte // +1 for sentinel for common case of s.next() 121 srcPos int // reading position (srcBuf index) 122 srcEnd int // source end (srcBuf index) 125 srcBufOffset int // byte offset of srcBuf[0] in source 132 // Typically, token text is stored completely in srcBuf, but in general 134 // tail is stored in srcBuf. 135 tokBuf bytes.Buffer // token text head that is not in srcBuf anymore 136 tokPos int // token text tail position (srcBuf index); valid if >= 0 137 tokEnd int // token text tail end (srcBuf index) 184 s.srcBuf[0] = utf8.RuneSelf // sentine [all...] |
/prebuilts/go/linux-x86/src/text/scanner/ |
scanner.go | 120 srcBuf [bufLen + 1]byte // +1 for sentinel for common case of s.next() 121 srcPos int // reading position (srcBuf index) 122 srcEnd int // source end (srcBuf index) 125 srcBufOffset int // byte offset of srcBuf[0] in source 132 // Typically, token text is stored completely in srcBuf, but in general 134 // tail is stored in srcBuf. 135 tokBuf bytes.Buffer // token text head that is not in srcBuf anymore 136 tokPos int // token text tail position (srcBuf index); valid if >= 0 137 tokEnd int // token text tail end (srcBuf index) 184 s.srcBuf[0] = utf8.RuneSelf // sentine [all...] |
/device/moto/shamu/camera/QCamera/HAL/usbcamcore/src/ |
QualcommUsbCamera.cpp | [all...] |
/hardware/qcom/camera/usbcamcore/src/ |
QualcommUsbCamera.cpp | [all...] |
/prebuilts/go/darwin-x86/src/bufio/ |
bufio_test.go | [all...] |
/prebuilts/go/linux-x86/src/bufio/ |
bufio_test.go | [all...] |
/system/media/audio_utils/ |
echo_reference.c | 185 void *srcBuf; 259 srcBuf = er->wr_buf; 262 srcBuf = buffer->raw; 272 srcBuf,
|
/device/generic/goldfish/camera/ |
EmulatedFakeCamera3.cpp | 865 const camera3_stream_buffer &srcBuf = request->output_buffers[i]; 867 static_cast<const cb_handle_t*>(*srcBuf.buffer); 870 destBuf.width = srcBuf.stream->width; 871 destBuf.height = srcBuf.stream->height; 873 destBuf.stride = srcBuf.stream->width; // TODO: query from gralloc 874 destBuf.dataSpace = srcBuf.stream->data_space; 875 destBuf.buffer = srcBuf.buffer; 882 sp<Fence> bufferAcquireFence = new Fence(srcBuf.acquire_fence); 891 if (srcBuf.stream->format == HAL_PIXEL_FORMAT_YCbCr_420_888) { 928 buffers->push_back(srcBuf); [all...] |
/external/pdfium/core/src/fpdfapi/fpdf_parser/ |
fpdf_parser_objects.cpp | 915 uint8_t srcBuf[kBlockSize]; 924 m_pFile->ReadBlock(srcBuf, offset, actualSize); 926 if (FXSYS_memcmp(srcBuf, destBuf, actualSize) != 0) 948 uint8_t srcBuf[kBlockSize]; 953 pFile->ReadBlock(srcBuf, offset, actualSize); 954 if (FXSYS_memcmp(srcBuf, pBuf, actualSize) != 0) [all...] |