Home
last modified time | relevance | path

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

12

/third_party/libjpeg-turbo/fuzz/
Dcompress.cc52 unsigned char *srcBuf = NULL, *dstBuf = NULL; in LLVMFuzzerTestOneInput() local
100 if ((dstBuf = (unsigned char *)malloc(maxBufSize)) == NULL) in LLVMFuzzerTestOneInput()
103 dstBuf = NULL; in LLVMFuzzerTestOneInput()
105 if (tjCompress2(handle, srcBuf, width, 0, height, pf, &dstBuf, &dstSize, in LLVMFuzzerTestOneInput()
110 sum += dstBuf[i]; in LLVMFuzzerTestOneInput()
113 free(dstBuf); in LLVMFuzzerTestOneInput()
114 dstBuf = NULL; in LLVMFuzzerTestOneInput()
125 free(dstBuf); in LLVMFuzzerTestOneInput()
Ddecompress.cc40 unsigned char *dstBuf = NULL; in LLVMFuzzerTestOneInput() local
83 if ((dstBuf = (unsigned char *)malloc(w * h * tjPixelSize[pf])) == NULL) in LLVMFuzzerTestOneInput()
86 if (tjDecompress2(handle, data, size, dstBuf, w, 0, h, pf, flags) == 0) { in LLVMFuzzerTestOneInput()
90 sum += dstBuf[i]; in LLVMFuzzerTestOneInput()
93 free(dstBuf); in LLVMFuzzerTestOneInput()
94 dstBuf = NULL; in LLVMFuzzerTestOneInput()
103 free(dstBuf); in LLVMFuzzerTestOneInput()
Ddecompress_yuv.cc40 unsigned char *dstBuf = NULL, *yuvBuf = NULL; in LLVMFuzzerTestOneInput() local
80 if ((dstBuf = (unsigned char *)malloc(w * h * tjPixelSize[pf])) == NULL) in LLVMFuzzerTestOneInput()
87 tjDecodeYUV(handle, yuvBuf, 1, jpegSubsamp, dstBuf, w, 0, h, pf, in LLVMFuzzerTestOneInput()
92 sum += dstBuf[i]; in LLVMFuzzerTestOneInput()
95 free(dstBuf); in LLVMFuzzerTestOneInput()
96 dstBuf = NULL; in LLVMFuzzerTestOneInput()
107 free(dstBuf); in LLVMFuzzerTestOneInput()
Dcompress_yuv.cc52 unsigned char *srcBuf = NULL, *dstBuf = NULL, *yuvBuf = NULL; in LLVMFuzzerTestOneInput() local
108 if ((dstBuf = (unsigned char *)malloc(maxBufSize)) == NULL) in LLVMFuzzerTestOneInput()
118 &dstBuf, &dstSize, tests[ti].quality, flags) == 0) { in LLVMFuzzerTestOneInput()
122 sum += dstBuf[i]; in LLVMFuzzerTestOneInput()
125 free(dstBuf); in LLVMFuzzerTestOneInput()
126 dstBuf = NULL; in LLVMFuzzerTestOneInput()
139 free(dstBuf); in LLVMFuzzerTestOneInput()
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
DTJDecompressor.java377 public void decompress(byte[] dstBuf, int x, int y, int desiredWidth, in decompress() argument
382 if (dstBuf == null || x < 0 || y < 0 || pitch < 0 || in decompress()
388 yuvImage.getStrides(), yuvImage.getSubsamp(), dstBuf, x, y, in decompress() local
393 decompress(jpegBuf, jpegBufSize, dstBuf, x, y, desiredWidth, pitch, in decompress()
396 decompress(jpegBuf, jpegBufSize, dstBuf, desiredWidth, pitch, in decompress()
407 public void decompress(byte[] dstBuf, int desiredWidth, int pitch, in decompress() argument
410 decompress(dstBuf, 0, 0, desiredWidth, pitch, desiredHeight, pixelFormat, in decompress()
502 public void decompressToYUV(byte[] dstBuf, int flags) throws TJException { in decompressToYUV() argument
503 YUVImage dstYUVImage = new YUVImage(dstBuf, jpegWidth, 4, jpegHeight, in decompressToYUV()
696 public void decompress(int[] dstBuf, int x, int y, int desiredWidth, in decompress() argument
[all …]
DTJCompressor.java329 public void compress(byte[] dstBuf, int flags) throws TJException { in compress() argument
330 if (dstBuf == null || flags < 0) in compress()
346 dstBuf, jpegQuality, flags); in compress()
350 srcHeight, srcPixelFormat, dstBuf, subsamp, in compress()
354 srcPixelFormat, dstBuf, subsamp, jpegQuality, in compress()
359 srcHeight, srcPixelFormat, dstBuf, subsamp, in compress()
363 srcPixelFormat, dstBuf, subsamp, jpegQuality, in compress()
393 public void compress(BufferedImage srcImage, byte[] dstBuf, int flags) in compress() argument
396 compress(dstBuf, flags); in compress()
454 public void encodeYUV(byte[] dstBuf, int flags) throws TJException { in encodeYUV() argument
[all …]
/third_party/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
DTJDecompressor.java386 public void decompress(byte[] dstBuf, int x, int y, int desiredWidth, in decompress() argument
391 if (dstBuf == null || x < 0 || y < 0 || pitch < 0 || in decompress()
397 yuvImage.getStrides(), yuvImage.getSubsamp(), dstBuf, x, y, in decompress() local
402 decompress(jpegBuf, jpegBufSize, dstBuf, x, y, desiredWidth, pitch, in decompress()
405 decompress(jpegBuf, jpegBufSize, dstBuf, desiredWidth, pitch, in decompress()
416 public void decompress(byte[] dstBuf, int desiredWidth, int pitch, in decompress() argument
419 decompress(dstBuf, 0, 0, desiredWidth, pitch, desiredHeight, pixelFormat, in decompress()
511 public void decompressToYUV(byte[] dstBuf, int flags) throws TJException { in decompressToYUV() argument
512 YUVImage dstYUVImage = new YUVImage(dstBuf, jpegWidth, 4, jpegHeight, in decompressToYUV()
705 public void decompress(int[] dstBuf, int x, int y, int desiredWidth, in decompress() argument
[all …]
DTJCompressor.java329 public void compress(byte[] dstBuf, int flags) throws TJException { in compress() argument
330 if (dstBuf == null || flags < 0) in compress()
346 dstBuf, jpegQuality, flags); in compress()
350 srcHeight, srcPixelFormat, dstBuf, subsamp, in compress()
354 srcPixelFormat, dstBuf, subsamp, jpegQuality, in compress()
359 srcHeight, srcPixelFormat, dstBuf, subsamp, in compress()
363 srcPixelFormat, dstBuf, subsamp, jpegQuality, in compress()
400 public void compress(BufferedImage srcImage, byte[] dstBuf, int flags) in compress() argument
403 compress(dstBuf, flags); in compress()
461 public void encodeYUV(byte[] dstBuf, int flags) throws TJException { in encodeYUV() argument
[all …]
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/
Dtjunittest.c359 void compTest(tjhandle handle, unsigned char **dstBuf, unsigned long *dstSize, in compTest() argument
374 if (*dstBuf && *dstSize > 0) memset(*dstBuf, 0, *dstSize); in compTest()
397 _tj(tjCompressFromYUV(handle, yuvBuf, w, pad, h, subsamp, dstBuf, dstSize, in compTest()
402 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest()
408 writeJPEG(*dstBuf, *dstSize, tempStr); in compTest()
421 unsigned char *dstBuf = NULL, *yuvBuf = NULL; in _decompTest() local
433 if ((dstBuf = (unsigned char *)malloc(dstSize)) == NULL) in _decompTest()
435 memset(dstBuf, 0, dstSize); in _decompTest()
460 _tj(tjDecodeYUV(handle2, yuvBuf, pad, subsamp, dstBuf, scaledWidth, 0, in _decompTest()
469 _tj(tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, scaledWidth, 0, in _decompTest()
[all …]
Dturbojpeg.h1047 unsigned char *dstBuf, int pad, int subsamp,
1217 unsigned long jpegSize, unsigned char *dstBuf,
1269 unsigned long jpegSize, unsigned char *dstBuf,
1381 int pad, int subsamp, unsigned char *dstBuf,
1442 unsigned char *dstBuf, int width, int pitch,
1705 unsigned char *dstBuf, unsigned long *compressedSize,
1710 unsigned char *dstBuf, int subsamp, int flags);
1714 unsigned char *dstBuf, int subsamp, int flags);
1725 unsigned long jpegSize, unsigned char *dstBuf,
1730 unsigned long jpegSize, unsigned char *dstBuf,
Dtjbench.c139 unsigned long *jpegSize, unsigned char *dstBuf, int w, int h, in decomp() argument
162 if (dstBuf == NULL) { in decomp()
163 if ((dstBuf = (unsigned char *)malloc(pitch * scaledh)) == NULL) in decomp()
169 memset(dstBuf, 127, pitch * scaledh); in decomp()
188 for (row = 0, dstPtr = dstBuf; row < ntilesh; in decomp()
262 if (tjSaveImage(tempStr, dstBuf, scaledw, 0, scaledh, pf, flags) == -1) in decomp()
282 dstBuf[rindex] = abs(dstBuf[rindex] - y); in decomp()
283 dstBuf[gindex] = abs(dstBuf[gindex] - y); in decomp()
284 dstBuf[bindex] = abs(dstBuf[bindex] - y); in decomp()
290 dstBuf[pitch * row + col] = in decomp()
[all …]
Dturbojpeg.c856 unsigned char *dstBuf, int pad, int subsamp, in tjEncodeYUV3() argument
866 if (width <= 0 || height <= 0 || dstBuf == NULL || pad < 0 || !isPow2(pad) || in tjEncodeYUV3()
872 dstPlanes[0] = dstBuf; in tjEncodeYUV3()
895 unsigned char *dstBuf, int subsamp, int flags) in tjEncodeYUV2() argument
898 dstBuf, 4, subsamp, flags); in tjEncodeYUV2()
903 unsigned char *dstBuf, int subsamp, int flags) in tjEncodeYUV() argument
906 getPixelFormat(pixelSize, flags), dstBuf, subsamp, in tjEncodeYUV()
1217 unsigned long jpegSize, unsigned char *dstBuf, in tjDecompress2() argument
1229 if (jpegBuf == NULL || jpegSize <= 0 || dstBuf == NULL || width < 0 || in tjDecompress2()
1277 row_pointer[i] = &dstBuf[(dinfo->output_height - i - 1) * pitch]; in tjDecompress2()
[all …]
/third_party/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 …]
/third_party/skia/third_party/externals/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 …]
/third_party/libjpeg-turbo/
Dturbojpeg.h1058 unsigned char *dstBuf, int pad, int subsamp,
1239 unsigned long jpegSize, unsigned char *dstBuf,
1291 unsigned long jpegSize, unsigned char *dstBuf,
1403 int pad, int subsamp, unsigned char *dstBuf,
1464 unsigned char *dstBuf, int width, int pitch,
1728 unsigned char *dstBuf, unsigned long *compressedSize,
1733 unsigned char *dstBuf, int subsamp, int flags);
1737 unsigned char *dstBuf, int subsamp, int flags);
1748 unsigned long jpegSize, unsigned char *dstBuf,
1753 unsigned long jpegSize, unsigned char *dstBuf,
Dtjunittest.c365 static void compTest(tjhandle handle, unsigned char **dstBuf, in compTest() argument
380 if (*dstBuf && *dstSize > 0) memset(*dstBuf, 0, *dstSize); in compTest()
403 TRY_TJ(tjCompressFromYUV(handle, yuvBuf, w, pad, h, subsamp, dstBuf, in compTest()
408 TRY_TJ(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest()
414 writeJPEG(*dstBuf, *dstSize, tempStr); in compTest()
428 unsigned char *dstBuf = NULL, *yuvBuf = NULL; in _decompTest() local
440 if ((dstBuf = (unsigned char *)malloc(dstSize)) == NULL) in _decompTest()
442 memset(dstBuf, 0, dstSize); in _decompTest()
467 TRY_TJ(tjDecodeYUV(handle2, yuvBuf, pad, subsamp, dstBuf, scaledWidth, 0, in _decompTest()
476 TRY_TJ(tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, scaledWidth, 0, in _decompTest()
[all …]
Dtjbench.c146 unsigned long *jpegSize, unsigned char *dstBuf, int w, int h, in decomp() argument
170 if (dstBuf == NULL) { in decomp()
174 if ((dstBuf = (unsigned char *)malloc((size_t)pitch * scaledh)) == NULL) in decomp()
180 memset(dstBuf, 127, (size_t)pitch * scaledh); in decomp()
201 for (row = 0, dstPtr = dstBuf; row < ntilesh; in decomp()
275 if (tjSaveImage(tempStr, dstBuf, scaledw, 0, scaledh, pf, flags) == -1) in decomp()
295 dstBuf[rindex] = (unsigned char)abs(dstBuf[rindex] - y); in decomp()
296 dstBuf[gindex] = (unsigned char)abs(dstBuf[gindex] - y); in decomp()
297 dstBuf[bindex] = (unsigned char)abs(dstBuf[bindex] - y); in decomp()
303 dstBuf[pitch * row + col] = in decomp()
[all …]
/third_party/skia/third_party/externals/angle2/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);
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/java/
DTJBench.java124 byte[] dstBuf = new byte[w[0] * h[0] * ps]; in loadImage()
128 dstBuf[dstPtr + rindex] = (byte)((rgb[rgbPtr] >> 16) & 0xff); in loadImage()
129 dstBuf[dstPtr + gindex] = (byte)((rgb[rgbPtr] >> 8) & 0xff); in loadImage()
130 dstBuf[dstPtr + bindex] = (byte)(rgb[rgbPtr] & 0xff); in loadImage()
134 return dstBuf; in loadImage()
162 byte[] dstBuf, int w, int h, int subsamp, int jpegQual, in decomp() argument
178 if (dstBuf == null) in decomp()
179 dstBuf = new byte[pitch * scaledh]; in decomp()
183 Arrays.fill(dstBuf, (byte)127); in decomp()
214 tjd.decompress(dstBuf, x, y, width, pitch, height, pf, flags); in decomp()
[all …]
DTJUnitTest.java629 static int compTest(TJCompressor tjc, byte[] dstBuf, int w, int h, int pf, in compTest() argument
664 Arrays.fill(dstBuf, (byte)0); in compTest()
687 tjc.compress(dstBuf, flags); in compTest()
692 writeJPEG(dstBuf, size, tempStr); in compTest()
708 byte[] dstBuf = null; in decompTest()
757 dstBuf = tjd.decompress(scaledWidth, 0, scaledHeight, pf, flags); in decompTest()
769 (!bi && checkBuf(dstBuf, scaledWidth, in decompTest()
802 byte[] dstBuf; in doTest()
804 dstBuf = new byte[TJ.bufSize(w, h, subsamp)]; in doTest()
819 size = compTest(tjc, dstBuf, w, h, pf, baseName, subsamp, 100, in doTest()
[all …]
/third_party/libjpeg-turbo/java/
DTJBench.java127 byte[] dstBuf = new byte[w[0] * h[0] * ps]; in loadImage()
131 dstBuf[dstPtr + rindex] = (byte)((rgb[rgbPtr] >> 16) & 0xff); in loadImage()
132 dstBuf[dstPtr + gindex] = (byte)((rgb[rgbPtr] >> 8) & 0xff); in loadImage()
133 dstBuf[dstPtr + bindex] = (byte)(rgb[rgbPtr] & 0xff); in loadImage()
137 return dstBuf; in loadImage()
165 byte[] dstBuf, int w, int h, int subsamp, int jpegQual, in decomp() argument
181 if (dstBuf == null) { in decomp()
184 dstBuf = new byte[pitch * scaledh]; in decomp()
189 Arrays.fill(dstBuf, (byte)127); in decomp()
222 tjd.decompress(dstBuf, x, y, width, pitch, height, pf, flags); in decomp()
[all …]
DTJUnitTest.java629 static int compTest(TJCompressor tjc, byte[] dstBuf, int w, int h, int pf, in compTest() argument
664 Arrays.fill(dstBuf, (byte)0); in compTest()
687 tjc.compress(dstBuf, flags); in compTest()
692 writeJPEG(dstBuf, size, tempStr); in compTest()
708 byte[] dstBuf = null; in decompTest()
757 dstBuf = tjd.decompress(scaledWidth, 0, scaledHeight, pf, flags); in decompTest()
769 (!bi && checkBuf(dstBuf, scaledWidth, in decompTest()
802 byte[] dstBuf; in doTest()
804 dstBuf = new byte[TJ.bufSize(w, h, subsamp)]; in doTest()
819 size = compTest(tjc, dstBuf, w, h, pf, baseName, subsamp, 100, in doTest()
[all …]
/third_party/vk-gl-cts/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()

12