Home
last modified time | relevance | path

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

/external/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 …]
/external/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 …]
/external/deqp/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()
/external/zstd/tests/fuzz/
Draw_dictionary_round_trip.c76 uint8_t const* const srcBuf = src; in LLVMFuzzerTestOneInput() local
78 uint8_t const* const dictBuf = srcBuf + srcSize; in LLVMFuzzerTestOneInput()
102 …roundTripTest(decompBuf, decompSize, compBuf, compSize, srcBuf, srcSize, dictBuf, dictSize, produc… in LLVMFuzzerTestOneInput()
/external/angle/third_party/vulkan_memory_allocator/src/
DSparseBindingTest.cpp152 VkBuffer srcBuf = nullptr; in UploadContent() local
155 …TEST( vmaCreateBuffer(g_hAllocator, &srcBufCreateInfo, &srcBufAllocCreateInfo, &srcBuf, &srcBufAll… in UploadContent()
211 vkCmdCopyBufferToImage(g_hTemporaryCommandBuffer, srcBuf, m_Image, in UploadContent()
242 vmaDestroyBuffer(g_hAllocator, srcBuf, srcBufAlloc); in UploadContent()
/external/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()