Home
last modified time | relevance | path

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

/external/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 …]
/external/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.c873 unsigned char *dstBuf, int pad, int subsamp, in tjEncodeYUV3() argument
883 if (width <= 0 || height <= 0 || dstBuf == NULL || pad < 0 || !isPow2(pad) || in tjEncodeYUV3()
889 dstPlanes[0] = dstBuf; in tjEncodeYUV3()
912 unsigned char *dstBuf, int subsamp, int flags) in tjEncodeYUV2() argument
915 dstBuf, 4, subsamp, flags); in tjEncodeYUV2()
920 unsigned char *dstBuf, int subsamp, int flags) in tjEncodeYUV() argument
923 getPixelFormat(pixelSize, flags), dstBuf, subsamp, in tjEncodeYUV()
1234 unsigned long jpegSize, unsigned char *dstBuf, in tjDecompress2() argument
1246 if (jpegBuf == NULL || jpegSize <= 0 || dstBuf == NULL || width < 0 || in tjDecompress2()
1294 row_pointer[i] = &dstBuf[(dinfo->output_height - i - 1) * pitch]; in tjDecompress2()
[all …]
Dturbojpeg-jni.c500 unsigned char *srcBuf = NULL, *dstBuf = NULL; in TJCompressor_encodeYUV_12() local
518 bailif0(dstBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in TJCompressor_encodeYUV_12()
520 if (tjEncodeYUV2(handle, srcBuf, width, pitch, height, pf, dstBuf, subsamp, in TJCompressor_encodeYUV_12()
525 if (dstBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, dstBuf, 0); in TJCompressor_encodeYUV_12()
665 unsigned char *jpegBuf = NULL, *dstBuf = NULL; in TJDecompressor_decompress() local
682 bailif0(dstBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in TJDecompressor_decompress()
685 &dstBuf[y * actualPitch + x * tjPixelSize[pf]], width, in TJDecompressor_decompress()
690 if (dstBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, dstBuf, 0); in TJDecompressor_decompress()
838 unsigned char *jpegBuf = NULL, *dstBuf = NULL; in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI() local
856 bailif0(dstBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI()
[all …]
Dtjexample.c284 unsigned char *dstBuf = NULL; /* Dynamically allocate the JPEG buffer */ in main() local
290 if (tjTransform(tjInstance, jpegBuf, jpegSize, 1, &dstBuf, &dstSize, in main()
294 jpegBuf = dstBuf; in main()
/external/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()
216 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 …]
/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/swiftshader/src/Device/
DSurface.cpp3062 char *dstBuf = (char*)dst->lockInternal(-1, -1, 0, sw::LOCK_READWRITE, sw::PRIVATE) + dstStart; in copyCubeEdge() local
3064 for(int i = 0; i < srcW; ++i, dstBuf += dstDelta, srcBuf += srcDelta) in copyCubeEdge()
3066 memcpy(dstBuf, srcBuf, srcBytes); in copyCubeEdge()
/external/swiftshader/src/Renderer/
DSurface.cpp3661 char *dstBuf = (char*)dst->lockInternal(-1, -1, 0, sw::LOCK_READWRITE, sw::PRIVATE) + dstStart; in copyCubeEdge() local
3663 for(int i = 0; i < srcW; ++i, dstBuf += dstDelta, srcBuf += srcDelta) in copyCubeEdge()
3665 memcpy(dstBuf, srcBuf, srcBytes); in copyCubeEdge()
/external/grpc-grpc-java/netty/shaded/
Dgrpc-netty-shaded-1.14.0.jarMETA-INF/ META-INF/MANIFEST.MF io/ io/grpc/ io/ ...