Home
last modified time | relevance | path

Searched refs:dstBuf (Results 1 – 9 of 9) sorted by relevance

/external/lz4/lib/
Dlz4file.c51 LZ4_byte* dstBuf; member
217 (*lz4fWrite)->dstBuf = (LZ4_byte*)malloc((*lz4fWrite)->dstBufMaxSize); in LZ4F_writeOpen()
218 if ((*lz4fWrite)->dstBuf == NULL) { in LZ4F_writeOpen()
225 free((*lz4fWrite)->dstBuf); in LZ4F_writeOpen()
233 free((*lz4fWrite)->dstBuf); in LZ4F_writeOpen()
240 free((*lz4fWrite)->dstBuf); in LZ4F_writeOpen()
266 lz4fWrite->dstBuf, lz4fWrite->dstBufMaxSize, in LZ4F_write()
274 if(ret != fwrite(lz4fWrite->dstBuf, 1, ret, lz4fWrite->fp)) { in LZ4F_write()
295 lz4fWrite->dstBuf, lz4fWrite->dstBufMaxSize, in LZ4F_writeClose()
301 if (ret != fwrite(lz4fWrite->dstBuf, 1, ret, lz4fWrite->fp)) { in LZ4F_writeClose()
[all …]
/external/libjpeg-turbo/
Dturbojpeg.h1058 unsigned char *dstBuf, int pad, int subsamp,
1228 unsigned long jpegSize, unsigned char *dstBuf,
1280 unsigned long jpegSize, unsigned char *dstBuf,
1392 int pad, int subsamp, unsigned char *dstBuf,
1453 unsigned char *dstBuf, int width, int pitch,
1717 unsigned char *dstBuf, unsigned long *compressedSize,
1722 unsigned char *dstBuf, int subsamp, int flags);
1726 unsigned char *dstBuf, int subsamp, int flags);
1737 unsigned long jpegSize, unsigned char *dstBuf,
1742 unsigned long jpegSize, unsigned char *dstBuf,
Dtjunittest.c373 static void compTest(tjhandle handle, unsigned char **dstBuf, in compTest() argument
388 if (*dstBuf && *dstSize > 0) memset(*dstBuf, 0, *dstSize); in compTest()
412 TRY_TJ(tjCompressFromYUV(handle, yuvBuf, w, pad, h, subsamp, dstBuf, in compTest()
417 TRY_TJ(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest()
423 writeJPEG(*dstBuf, *dstSize, tempStr); in compTest()
437 unsigned char *dstBuf = NULL, *yuvBuf = NULL; in _decompTest() local
449 if ((dstBuf = (unsigned char *)malloc(dstSize)) == NULL) in _decompTest()
451 memset(dstBuf, 0, dstSize); in _decompTest()
477 TRY_TJ(tjDecodeYUV(handle2, yuvBuf, pad, subsamp, dstBuf, scaledWidth, 0, in _decompTest()
486 TRY_TJ(tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, scaledWidth, 0, in _decompTest()
[all …]
Dtjbench.c143 unsigned long *jpegSize, unsigned char *dstBuf, int w, int h, in decomp() argument
167 if (dstBuf == NULL) { in decomp()
171 if ((dstBuf = (unsigned char *)malloc((size_t)pitch * scaledh)) == NULL) in decomp()
177 memset(dstBuf, 127, (size_t)pitch * scaledh); in decomp()
198 for (row = 0, dstPtr = dstBuf; row < ntilesh; in decomp()
274 if (tjSaveImage(tempStr, dstBuf, scaledw, 0, scaledh, pf, flags) == -1) in decomp()
294 dstBuf[rindex] = abs(dstBuf[rindex] - y); in decomp()
295 dstBuf[gindex] = abs(dstBuf[gindex] - y); in decomp()
296 dstBuf[bindex] = abs(dstBuf[bindex] - y); in decomp()
302 dstBuf[pitch * row + col] = in decomp()
[all …]
Dturbojpeg.c916 unsigned char *dstBuf, int pad, int subsamp, in tjEncodeYUV3() argument
926 if (width <= 0 || height <= 0 || dstBuf == NULL || pad < 0 || in tjEncodeYUV3()
932 dstPlanes[0] = dstBuf; in tjEncodeYUV3()
955 unsigned char *dstBuf, int subsamp, int flags) in tjEncodeYUV2() argument
958 dstBuf, 4, subsamp, flags); in tjEncodeYUV2()
963 unsigned char *dstBuf, int subsamp, int flags) in tjEncodeYUV() argument
966 getPixelFormat(pixelSize, flags), dstBuf, subsamp, in tjEncodeYUV()
1279 unsigned long jpegSize, unsigned char *dstBuf, in tjDecompress2() argument
1292 if (jpegBuf == NULL || jpegSize <= 0 || dstBuf == NULL || width < 0 || in tjDecompress2()
1348 row_pointer[i] = &dstBuf[(dinfo->output_height - i - 1) * (size_t)pitch]; in tjDecompress2()
[all …]
Dturbojpeg-jni.c519 unsigned char *srcBuf = NULL, *dstBuf = NULL; in TJCompressor_encodeYUV_12() local
537 BAILIF0(dstBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in TJCompressor_encodeYUV_12()
539 if (tjEncodeYUV2(handle, srcBuf, width, pitch, height, pf, dstBuf, subsamp, in TJCompressor_encodeYUV_12()
541 SAFE_RELEASE(dst, dstBuf); in TJCompressor_encodeYUV_12()
547 SAFE_RELEASE(dst, dstBuf); in TJCompressor_encodeYUV_12()
688 unsigned char *jpegBuf = NULL, *dstBuf = NULL; in TJDecompressor_decompress() local
705 BAILIF0(dstBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in TJDecompressor_decompress()
708 &dstBuf[y * actualPitch + x * tjPixelSize[pf]], width, in TJDecompressor_decompress()
710 SAFE_RELEASE(dst, dstBuf); in TJDecompressor_decompress()
716 SAFE_RELEASE(dst, dstBuf); in TJDecompressor_decompress()
[all …]
/external/angle/src/libANGLE/renderer/metal/
Dmtl_occlusion_query_pool.mm126 const BufferRef &dstBuf = mAllocatedQueries[0]->getVisibilityResultBuffer();
135 blitEncoder->copyBuffer(dstBuf, 0, mRenderPassResultsPool, allocatedOffsets.front(),
138 mRenderPassResultsPool, dstBuf);
143 mRenderPassResultsPool, dstBuf);
156 const BufferRef &dstBuf = mAllocatedQueries[i]->getVisibilityResultBuffer();
160 dstBuf);
173 const BufferRef &dstBuf = mAllocatedQueries[i]->getVisibilityResultBuffer();
175 dstBuf->syncContent(contextMtl, blitEncoder);
/external/deqp/modules/gles3/functional/
Des3fBufferCopyTests.cpp85 deUint32 dstBuf = 0; in iterate() local
103 dstBuf = genBuffer(); in iterate()
104 glBindBuffer(m_dstTarget, dstBuf); in iterate()
110 isOk = verifier.verify(dstBuf, dstRef.getPtr(), 0, m_dstSize, m_dstTarget) && isOk; in iterate()
116 glBindBuffer(m_dstTarget, dstBuf); in iterate()
122 isOk = verifier.verify(dstBuf, dstRef.getPtr(), 0, m_dstSize, m_dstTarget) && isOk; in iterate()
/external/angle/third_party/vulkan_memory_allocator/src/
DSparseBindingTest.cpp267 VkBuffer dstBuf = nullptr; in ValidateContent() local
270 …TEST( vmaCreateBuffer(g_hAllocator, &dstBufCreateInfo, &dstBufAllocCreateInfo, &dstBuf, &dstBufAll… in ValidateContent()
380 descBufferInfo.buffer = dstBuf; in ValidateContent()
425 vmaDestroyBuffer(g_hAllocator, dstBuf, dstBufAlloc); in ValidateContent()