Home
last modified time | relevance | path

Searched refs:srcBuf (Results 1 – 13 of 13) sorted by relevance

/third_party/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/
DConverterPerformanceTest.java210 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 …]
/third_party/skia/third_party/externals/libjpeg-turbo/
Dturbojpeg.h754 DLLEXPORT int tjCompress2(tjhandle handle, const unsigned char *srcBuf,
820 DLLEXPORT int tjCompressFromYUV(tjhandle handle, const unsigned char *srcBuf,
1056 DLLEXPORT int tjEncodeYUV3(tjhandle handle, const unsigned char *srcBuf,
1116 DLLEXPORT int tjEncodeYUVPlanes(tjhandle handle, const unsigned char *srcBuf,
1391 DLLEXPORT int tjDecodeYUV(tjhandle handle, const unsigned char *srcBuf,
1715 DLLEXPORT int tjCompress(tjhandle handle, unsigned char *srcBuf, int width,
1720 DLLEXPORT int tjEncodeYUV(tjhandle handle, unsigned char *srcBuf, int width,
1724 DLLEXPORT int tjEncodeYUV2(tjhandle handle, unsigned char *srcBuf, int width,
Dtjbench.c142 static int decomp(unsigned char *srcBuf, unsigned char **jpegBuf, in decomp() argument
278 if (srcBuf && sf.num == 1 && sf.denom == 1) { in decomp()
288 int y = (int)((double)srcBuf[rindex] * 0.299 + in decomp()
289 (double)srcBuf[gindex] * 0.587 + in decomp()
290 (double)srcBuf[bindex] * 0.114 + 0.5); in decomp()
303 abs(dstBuf[pitch * row + col] - srcBuf[pitch * row + col]); in decomp()
318 static int fullTest(unsigned char *srcBuf, int w, int h, int subsamp, in fullTest() argument
376 memcpy(&tmpBuf[pitch * i], &srcBuf[w * ps * i], w * ps); in fullTest()
397 for (row = 0, srcPtr = srcBuf; row < ntilesh; in fullTest()
497 if (decomp(srcBuf, jpegBuf, jpegSize, tmpBuf, w, h, subsamp, jpegQual, in fullTest()
[all …]
Dtjunittest.c378 unsigned char *srcBuf = NULL, *yuvBuf = NULL; in compTest() local
384 if ((srcBuf = (unsigned char *)malloc(w * h * tjPixelSize[pf])) == NULL) in compTest()
386 initBuf(srcBuf, w, h, pf, flags); in compTest()
404 TRY_TJ(tjEncodeYUV3(handle2, srcBuf, w, 0, h, pf, yuvBuf, pad, subsamp, in compTest()
417 TRY_TJ(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest()
428 free(srcBuf); in compTest()
613 unsigned char *srcBuf = NULL, *dstBuf = NULL; in bufSizeTest() local
627 if ((srcBuf = (unsigned char *)malloc(w * h * 4)) == NULL) in bufSizeTest()
637 if (random() < RAND_MAX / 2) srcBuf[i] = 0; in bufSizeTest()
638 else srcBuf[i] = 255; in bufSizeTest()
[all …]
Dturbojpeg.c666 DLLEXPORT int tjCompress2(tjhandle handle, const unsigned char *srcBuf, in tjCompress2() argument
679 if (srcBuf == NULL || width <= 0 || pitch < 0 || height <= 0 || in tjCompress2()
713 row_pointer[i] = (JSAMPROW)&srcBuf[(height - i - 1) * (size_t)pitch]; in tjCompress2()
715 row_pointer[i] = (JSAMPROW)&srcBuf[i * (size_t)pitch]; in tjCompress2()
733 DLLEXPORT int tjCompress(tjhandle handle, unsigned char *srcBuf, int width, in tjCompress() argument
743 retval = tjEncodeYUV2(handle, srcBuf, width, pitch, height, in tjCompress()
747 retval = tjCompress2(handle, srcBuf, width, pitch, height, in tjCompress()
756 DLLEXPORT int tjEncodeYUVPlanes(tjhandle handle, const unsigned char *srcBuf, in tjEncodeYUVPlanes() argument
780 if (srcBuf == NULL || width <= 0 || pitch < 0 || height <= 0 || in tjEncodeYUVPlanes()
827 row_pointer[i] = (JSAMPROW)&srcBuf[(height - i - 1) * (size_t)pitch]; in tjEncodeYUVPlanes()
[all …]
Dturbojpeg-jni.c225 unsigned char *srcBuf = NULL, *jpegBuf = NULL; in TJCompressor_compress() local
245 BAILIF0(srcBuf = (*env)->GetPrimitiveArrayCritical(env, src, 0)); in TJCompressor_compress()
248 if (tjCompress2(handle, &srcBuf[y * actualPitch + x * tjPixelSize[pf]], in TJCompressor_compress()
252 SAFE_RELEASE(src, srcBuf); in TJCompressor_compress()
258 SAFE_RELEASE(src, srcBuf); in TJCompressor_compress()
409 unsigned char *srcBuf = NULL; in TJCompressor_encodeYUV() local
471 BAILIF0(srcBuf = (*env)->GetPrimitiveArrayCritical(env, src, 0)); in TJCompressor_encodeYUV()
473 if (tjEncodeYUVPlanes(handle, &srcBuf[y * actualPitch + x * tjPixelSize[pf]], in TJCompressor_encodeYUV()
476 SAFE_RELEASE(src, srcBuf); in TJCompressor_encodeYUV()
481 SAFE_RELEASE(src, srcBuf); in TJCompressor_encodeYUV()
[all …]
/third_party/lz4/lib/
Dlz4file.c42 LZ4_byte* srcBuf; member
113 (*lz4fRead)->srcBuf = (LZ4_byte*)malloc((*lz4fRead)->srcBufMaxSize); in LZ4F_readOpen()
114 if ((*lz4fRead)->srcBuf == NULL) { in LZ4F_readOpen()
121 memcpy((*lz4fRead)->srcBuf, buf + consumedSize, (*lz4fRead)->srcBufSize); in LZ4F_readOpen()
140 ret = fread(lz4fRead->srcBuf, 1, lz4fRead->srcBufMaxSize, lz4fRead->fp); in LZ4F_read()
156 lz4fRead->srcBuf + lz4fRead->srcBufNext, in LZ4F_read()
176 free(lz4fRead->srcBuf); in LZ4F_readClose()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fBufferCopyTests.cpp84 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()
/third_party/mesa3d/src/gallium/targets/haiku-softpipe/
DSoftwareRenderer.cpp231 RasBuf32 srcBuf(bitmap); in Display() local
238 dstClip.Blit(srcBuf); in Display()
/third_party/musl/Benchmark/musl/
Dlibc_string.cpp664 char* srcBuf = GetAlignedPtrFilled(&needle, needleAlignment, nbytes, 'x'); in BM_function_Strlcat() local
665 srcBuf[needle.size() - 1] = '\0'; in BM_function_Strlcat()
668 benchmark::DoNotOptimize(strlcat(dstBuf, srcBuf, nbytes)); in BM_function_Strlcat()
/third_party/libjpeg-turbo/
Dlibjpeg-turbo-2.1.x-bugfix.patch59 byte[] srcBuf, dstBuf = null;
882 - byte[] srcBuf, dstBuf = null;
/third_party/skia/third_party/externals/swiftshader/src/Renderer/
DSurface.cpp3469 char *srcBuf = (char*)src->lockInternal(0, 0, 0, sw::LOCK_READONLY, sw::PRIVATE) + srcStart; in copyCubeEdge() local
3472 for(int i = 0; i < srcW; ++i, dstBuf += dstDelta, srcBuf += srcDelta) in copyCubeEdge()
3474 memcpy(dstBuf, srcBuf, srcBytes); in copyCubeEdge()
/third_party/rust/crates/bindgen/bindgen-tests/tests/
Dstylo.hpp101435 SourceBufferHolder& srcBuf, JS::MutableHandleScript script);
101455 SourceBufferHolder& srcBuf, JS::MutableHandleScript script);
101522 SourceBufferHolder& srcBuf, JS::MutableHandleFunction fun);
101584 SourceBufferHolder& srcBuf, JS::MutableHandleValue rval);
101593 SourceBufferHolder& srcBuf, JS::MutableHandleValue rval);
101643 SourceBufferHolder& srcBuf, JS::MutableHandleObject moduleRecord);