/third_party/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/ |
H A D | ConverterPerformanceTest.java | 210 ByteBuffer srcBuf = ByteBuffer.wrap(encBuffer,0,encBuffer.length); in TestCharsetDecoder() 215 decoder.decode(srcBuf,outBuf,false); in TestCharsetDecoder() 217 srcBuf.rewind(); in TestCharsetDecoder() 239 CharBuffer srcBuf = CharBuffer.wrap(unicodeBuffer,0,unicodeBuffer.length); in TestCharsetEncoder() 244 encoder.encode(srcBuf,outBuf,false); in TestCharsetEncoder() 246 srcBuf.rewind(); in TestCharsetEncoder() 268 ByteBuffer srcBuf = ByteBuffer.wrap(encBuffer,0,encBuffer.length); in TestCharsetDecoderICU() 273 decoder.decode(srcBuf,outBuf,false); in TestCharsetDecoderICU() 275 srcBuf.rewind(); in TestCharsetDecoderICU() 297 CharBuffer srcBuf in TestCharsetEncoderICU() [all...] |
/third_party/skia/third_party/externals/libjpeg-turbo/ |
H A D | tjbench.c | 142 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, jpegBu in fullTest() 534 unsigned char **jpegBuf = NULL, *srcBuf = NULL; decompTest() local 835 unsigned char *srcBuf = NULL; main() local [all...] |
H A D | turbojpeg.h | 699 * @param srcBuf pointer to an image buffer containing RGB, grayscale, or 754 DLLEXPORT int tjCompress2(tjhandle handle, const unsigned char *srcBuf, 765 * @param srcBuf pointer to an image buffer containing a YUV planar image to be 820 DLLEXPORT int tjCompressFromYUV(tjhandle handle, const unsigned char *srcBuf, 1015 * @param srcBuf pointer to an image buffer containing RGB or grayscale pixels 1056 DLLEXPORT int tjEncodeYUV3(tjhandle handle, const unsigned char *srcBuf, 1070 * @param srcBuf pointer to an image buffer containing RGB or grayscale pixels 1116 DLLEXPORT int tjEncodeYUVPlanes(tjhandle handle, const unsigned char *srcBuf, 1351 * @param srcBuf pointer to an image buffer containing a YUV planar image to be 1391 DLLEXPORT int tjDecodeYUV(tjhandle handle, const unsigned char *srcBuf, [all...] |
H A D | tjunittest.c | 378 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[ in bufSizeTest() [all...] |
H A D | turbojpeg.c | 666 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[(heigh in tjEncodeYUVPlanes() 914 tjEncodeYUV3(tjhandle handle, const unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat, unsigned char *dstBuf, int pad, int subsamp, int flags) tjEncodeYUV3() argument 953 tjEncodeYUV2(tjhandle handle, unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat, unsigned char *dstBuf, int subsamp, int flags) tjEncodeYUV2() argument 961 tjEncodeYUV(tjhandle handle, unsigned char *srcBuf, int width, int pitch, int height, int pixelSize, unsigned char *dstBuf, int subsamp, int flags) tjEncodeYUV() argument 1108 tjCompressFromYUV(tjhandle handle, const unsigned char *srcBuf, int width, int pad, int height, int subsamp, unsigned char **jpegBuf, unsigned long *jpegSize, int jpegQual, int flags) tjCompressFromYUV() argument 1576 tjDecodeYUV(tjhandle handle, const unsigned char *srcBuf, int pad, int subsamp, unsigned char *dstBuf, int width, int pitch, int height, int pixelFormat, int flags) tjDecodeYUV() argument [all...] |
H A D | turbojpeg-jni.c | 225 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() 519 unsigned char *srcBuf = NULL, *dstBuf = NULL; TJCompressor_encodeYUV_12() local [all...] |
/third_party/lz4/lib/ |
H A D | lz4file.c | 42 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/ |
H A 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()
|
/kernel/liteos_a/kernel/extended/trace/pipeline/ |
H A D | trace_tlv.c | 72 STATIC UINT32 OsTlvEncode(const TlvTable *table, UINT8 *srcBuf, UINT8 *tlvBuf, INT32 tlvBufLen) in OsTlvEncode() argument 81 len += OsWriteTlv(tlvBuf + len, tlvTableItem->tag, tlvTableItem->elemSize, srcBuf + tlvTableItem->elemOffset); in OsTlvEncode()
|
/kernel/liteos_m/components/trace/pipeline/ |
H A D | trace_tlv.c | 72 STATIC UINT32 OsTlvEncode(const TlvTable *table, UINT8 *srcBuf, UINT8 *tlvBuf, INT32 tlvBufLen) in OsTlvEncode() argument 81 len += OsWriteTlv(tlvBuf + len, tlvTableItem->tag, tlvTableItem->elemSize, srcBuf + tlvTableItem->elemOffset); in OsTlvEncode()
|
/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/ |
H A D | wpa_supplicant_hal.c | 1333 static void GetInfoElems(int length, int end, char *srcBuf, ScanInfo *pcmd) in GetInfoElems() argument 1348 if (srcBuf[start] == '[') { in GetInfoElems() 1350 infoElemsTemp[infoElemsSize].id = atoi(srcBuf + start); in GetInfoElems() 1352 if (srcBuf[start] != ' ') { in GetInfoElems() 1355 if (srcBuf[last] != ']') { in GetInfoElems() 1366 srcBuf[last] = '\0'; in GetInfoElems() 1367 HexStringToString(srcBuf + start, infoElemsTemp[infoElemsSize].content); in GetInfoElems() 1394 int DelScanInfoLine(ScanInfo *pcmd, char *srcBuf, int length) in DelScanInfoLine() argument 1401 if (srcBuf[end] != '\t') { in DelScanInfoLine() 1405 srcBuf[en in DelScanInfoLine() [all...] |
H A D | wpa_supplicant_hal.h | 130 int DelScanInfoLine(ScanInfo *pcmd, char *srcBuf, int length);
|
/third_party/mesa3d/src/gallium/targets/haiku-softpipe/ |
H A D | SoftwareRenderer.cpp | 231 RasBuf32 srcBuf(bitmap); in Display() 238 dstClip.Blit(srcBuf); in Display()
|
/base/print/print_fwk/frameworks/ohscan/src/ |
H A D | ohscan.cpp | 230 bool CopySingleBuf(char* destBuf, const char* srcBuf, size_t bufferSize) in CopySingleBuf() argument 232 if (destBuf == nullptr || srcBuf == nullptr) { in CopySingleBuf() 240 if (strncpy_s(destBuf, bufferSize, srcBuf, bufferSize) != 0) { in CopySingleBuf()
|
/third_party/musl/Benchmark/musl/ |
H A D | libc_string.cpp | 662 char* srcBuf = GetAlignedPtrFilled(&needle, needle_alignment, nbytes, 'x'); in BM_function_Strlcat() local 663 srcBuf[needle.size() - 1] = '\0'; in BM_function_Strlcat() 666 benchmark::DoNotOptimize(strlcat(dstBuf, srcBuf, nbytes)); in BM_function_Strlcat()
|
/third_party/skia/third_party/externals/swiftshader/src/Renderer/ |
H A D | Surface.cpp | 3469 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/ |
H A D | stylo.hpp | [all...] |