HomeSort by relevance Sort by last modified time
    Searched full:dstbuf (Results 1 - 25 of 36) sorted by null

1 2

  /external/libjpeg-turbo/
tjunittest.c 395 void compTest(tjhandle handle, unsigned char **dstBuf,
408 if(*dstBuf && *dstSize>0) memset(*dstBuf, 0, *dstSize);
432 _tj(tjCompressFromYUV(handle, yuvBuf, w, pad, h, subsamp, dstBuf,
439 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp,
445 writeJPEG(*dstBuf, *dstSize, tempStr);
458 unsigned char *dstBuf=NULL, *yuvBuf=NULL;
470 if((dstBuf=(unsigned char *)malloc(dstSize))==NULL)
472 memset(dstBuf, 0, dstSize);
497 _tj(tjDecodeYUV(handle2, yuvBuf, pad, subsamp, dstBuf, scaledWidth, 0
    [all...]
turbojpeg.c 992 int width, int pitch, int height, int pixelFormat, unsigned char *dstBuf,
998 if(width<=0 || height<=0 || dstBuf==NULL || pad<0 || !isPow2(pad)
1004 dstPlanes[0]=dstBuf;
1028 int width, int pitch, int height, int pixelFormat, unsigned char *dstBuf,
1032 dstBuf, 4, subsamp, flags);
1036 int width, int pitch, int height, int pixelSize, unsigned char *dstBuf,
1040 getPixelFormat(pixelSize, flags), dstBuf, subsamp, flags);
    [all...]
turbojpeg-jni.c 470 unsigned char *srcBuf=NULL, *dstBuf=NULL;
488 bailif0(dstBuf=(*env)->GetPrimitiveArrayCritical(env, dst, 0));
490 if(tjEncodeYUV2(handle, srcBuf, width, pitch, height, pf, dstBuf, subsamp,
495 if(dstBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, dstBuf, 0);
632 unsigned char *jpegBuf=NULL, *dstBuf=NULL;
649 bailif0(dstBuf=(*env)->GetPrimitiveArrayCritical(env, dst, 0));
652 &dstBuf[y*actualPitch + x*tjPixelSize[pf]], width, pitch, height, pf,
657 if(dstBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, dstBuf, 0)
    [all...]
tjbench.c 105 unsigned long *jpegsize, unsigned char *dstbuf, int w, int h,
128 if(dstbuf==NULL)
130 if((dstbuf=(unsigned char *)malloc(pitch*scaledh))==NULL)
136 memset(dstbuf, 127, pitch*scaledh);
155 for(row=0, dstptr=dstbuf; row<ntilesh; row++, dstptr+=pitch*tileh)
227 if(savebmp(tempstr, dstbuf, scaledw, scaledh, pf,
249 dstbuf[rindex]=abs(dstbuf[rindex]-y);
250 dstbuf[gindex]=abs(dstbuf[gindex]-y)
    [all...]
bmp.c 76 unsigned char *dstbuf, int dstpf, int dstbottomup, int w, int h)
81 unsigned char *dstrowptr=dstbuf, *dstcolptr;
87 if(dstbottomup) dstrowptr=&dstbuf[w*dstps*(h-1)];
turbojpeg.h     [all...]
  /external/libvncserver/test/
tjunittest.c 238 void compTest(tjhandle handle, unsigned char **dstBuf,
252 if(*dstBuf && *dstSize>0) memset(*dstBuf, 0, *dstSize);
256 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp,
263 writeJPEG(*dstBuf, *dstSize, tempStr);
276 unsigned char *dstBuf=NULL;
294 if((dstBuf=(unsigned char *)malloc(dstSize))==NULL)
296 memset(dstBuf, 0, dstSize);
299 _tj(tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, scaledWidth, 0,
303 if(checkBuf(dstBuf, scaledWidth, scaledHeight, pf, subsamp, sf, flags)
    [all...]
tjbench.c 79 unsigned long *jpegsize, unsigned char *dstbuf, int w, int h,
104 if(dstbuf==NULL)
106 if((dstbuf=(unsigned char *)malloc(bufsize)) == NULL)
112 memset(dstbuf, 127, bufsize);
115 if(tjDecompress2(handle, jpegbuf[0], jpegsize[0], dstbuf, scaledw,
123 for(row=0, dstptr=dstbuf; row<ntilesh; row++, dstptr+=pitch*tileh)
160 if(savebmp(tempstr, dstbuf, scaledw, scaledh, bmpPF[pf], pitch,
182 dstbuf[rindex]=abs(dstbuf[rindex]-y);
183 dstbuf[gindex]=abs(dstbuf[gindex]-y)
    [all...]
  /external/opencv/cxcore/src/
cxlogic.cpp 192 CvMat dstbuf, *tdst; local
286 dstbuf = cvMat( dy, size.width, type );
288 dstbuf.step = cvAlign( dstbuf.step, 8 );
289 buf_size = dstbuf.step ? dstbuf.step*dy : size.width*elem_size;
297 dstbuf.data.ptr = buffer;
298 tdst = &dstbuf;
356 CvMat dstbuf, *tdst; local
453 dstbuf = cvMat( dy, size.width, type )
    [all...]
cxarithm.cpp 289 CvMat dstbuf, *tdst; local
442 dstbuf = cvMat( dy, size.width, type );
444 dstbuf.step = cvAlign( dstbuf.step, 8 );
445 buf_size = dstbuf.step ? dstbuf.step*dy : size.width*elem_size;
453 dstbuf.data.ptr = buffer;
454 tdst = &dstbuf;
540 CvMat dstbuf, *tdst; local
686 dstbuf = cvMat( dy, size.width, type )
765 CvMat dstbuf, *tdst; local
1012 CvMat dstbuf, *tdst; local
    [all...]
  /external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
TJCompressor.java 317 * @param dstBuf buffer that will receive the JPEG image. Use
325 public void compress(byte[] dstBuf, int flags) throws Exception {
326 if (dstBuf == null || flags < 0)
342 dstBuf, jpegQuality, flags);
346 srcHeight, srcPixelFormat, dstBuf, subsamp,
350 srcPixelFormat, dstBuf, subsamp, jpegQuality,
355 srcHeight, srcPixelFormat, dstBuf, subsamp,
359 srcPixelFormat, dstBuf, subsamp, jpegQuality,
389 public void compress(BufferedImage srcImage, byte[] dstBuf, int flags)
392 compress(dstBuf, flags)
    [all...]
TJDecompressor.java 311 * @param dstBuf buffer that will receive the decompressed/decoded image.
370 public void decompress(byte[] dstBuf, int x, int y, int desiredWidth,
375 if (dstBuf == null || x < 0 || y < 0 || pitch < 0 ||
381 yuvImage.getStrides(), yuvImage.getSubsamp(), dstBuf, x, y,
386 decompress(jpegBuf, jpegBufSize, dstBuf, x, y, desiredWidth, pitch,
389 decompress(jpegBuf, jpegBufSize, dstBuf, desiredWidth, pitch,
399 public void decompress(byte[] dstBuf, int desiredWidth, int pitch,
402 decompress(dstBuf, 0, 0, desiredWidth, pitch, desiredHeight, pixelFormat,
488 public void decompressToYUV(byte[] dstBuf, int flags) throws Exception {
489 YUVImage dstImage = new YUVImage(dstBuf, jpegWidth, 4, jpegHeight
    [all...]
  /external/deqp/modules/gles3/functional/
es3fBufferCopyTests.cpp 85 deUint32 dstBuf = 0;
103 dstBuf = genBuffer();
104 glBindBuffer(m_dstTarget, dstBuf);
110 isOk = verifier.verify(dstBuf, dstRef.getPtr(), 0, m_dstSize, m_dstTarget) && isOk;
116 glBindBuffer(m_dstTarget, dstBuf);
122 isOk = verifier.verify(dstBuf, dstRef.getPtr(), 0, m_dstSize, m_dstTarget) && isOk;
  /external/libjpeg-turbo/java/
TJUnitTest.java 636 private static int compTest(TJCompressor tjc, byte[] dstBuf, int w,
671 Arrays.fill(dstBuf, (byte)0);
694 tjc.compress(dstBuf, flags);
699 writeJPEG(dstBuf, size, tempStr);
716 byte[] dstBuf = null;
765 dstBuf = tjd.decompress(scaledWidth, 0, scaledHeight, pf, flags);
777 (!bi && checkBuf(dstBuf, scaledWidth,
811 byte[] dstBuf;
813 dstBuf = new byte[TJ.bufSize(w, h, subsamp)];
828 size = compTest(tjc, dstBuf, w, h, pf, baseName, subsamp, 100
    [all...]
TJBench.java 99 byte[] dstBuf = new byte[w[0] * h[0] * ps];
102 dstBuf[dstPtr + rindex] = (byte)((rgb[rgbPtr] >> 16) & 0xff);
103 dstBuf[dstPtr + gindex] = (byte)((rgb[rgbPtr] >> 8) & 0xff);
104 dstBuf[dstPtr + bindex] = (byte)(rgb[rgbPtr] & 0xff);
108 return dstBuf;
134 byte[] dstBuf, int w, int h, int subsamp, int jpegQual,
150 if (dstBuf == null)
151 dstBuf = new byte[pitch * scaledh];
155 Arrays.fill(dstBuf, (byte)127);
180 tjd.decompress(dstBuf, x, y, width, pitch, height, pf, flags)
    [all...]
  /external/opencv3/3rdparty/include/ffmpeg_/libavutil/
bprint.h 185 * Escape the content in src and append it to dstbuf.
187 * @param dstbuf already inited destination bprint buffer
197 void av_bprint_escape(AVBPrint *dstbuf, const char *src, const char *special_chars,
  /prebuilts/go/darwin-x86/src/bufio/
bufio_test.go     [all...]
  /prebuilts/go/linux-x86/src/bufio/
bufio_test.go     [all...]
  /external/libvncserver/common/
turbojpeg.c 747 unsigned long jpegSize, unsigned char *dstBuf, int width, int pitch,
761 if(jpegBuf==NULL || jpegSize<=0 || dstBuf==NULL || width<0 || pitch<0
815 _dstBuf=dstBuf; dstBuf=rgbBuf;
825 row_pointer[i]=&dstBuf[(dinfo->output_height-i-1)*pitch];
826 else row_pointer[i]=&dstBuf[i*pitch];
849 unsigned long jpegSize, unsigned char *dstBuf, int width, int pitch,
852 return tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, width, pitch,
turbojpeg.h 430 * @param dstBuf pointer to an image buffer that will receive the decompressed
434 * factors returned by #tjGetScalingFactors(). The dstBuf pointer may
467 unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf,
510 int width, int pitch, int height, int pixelSize, unsigned char *dstBuf,
517 unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf,
  /external/mesa3d/src/mesa/vbo/
vbo_split_copy.c 87 GLubyte *dstbuf; member in struct:copy_context
88 GLubyte *dstptr; /**< dstptr == dstbuf + dstelt_max * vertsize */
214 copy->dstptr = copy->dstbuf;
292 assert(copy->dstptr == (copy->dstbuf +
512 copy->dstbuf = malloc(copy->dstbuf_size * copy->vertex_size);
513 copy->dstptr = copy->dstbuf;
526 dst->Ptr = copy->dstbuf + offset;
568 free(copy->dstbuf);
  /cts/tests/tests/media/src/android/media/cts/
MediaMuxerTest.java 207 ByteBuffer dstBuf = ByteBuffer.allocate(bufferSize);
235 bufferInfo.size = extractor.readSampleData(dstBuf, offset);
248 muxer.writeSampleData(indexMap.get(trackIndex), dstBuf,
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
VideoUtils.java 193 ByteBuffer dstBuf = ByteBuffer.allocate(bufferSize);
199 bufferInfo.size = extractor.readSampleData(dstBuf, offset);
213 muxer.writeSampleData(indexMap.get(trackIndex), dstBuf,
  /external/opencv3/modules/imgproc/src/opencl/
cvtcolor.cl     [all...]
  /external/libjpeg-turbo/java/doc/org/libjpegturbo/turbojpeg/
TJCompressor.html 180 byte[]&nbsp;dstBuf,
202 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJCompressor.html#compress(byte[],%20int)">compress</a></strong>(byte[]&nbsp;dstBuf,
218 byte[]&nbsp;dstBuf,
240 <td class="colLast"><code><strong><a href="../../../org/libjpegturbo/turbojpeg/TJCompressor.html#encodeYUV(byte[],%20int)">encodeYUV</a></strong>(byte[]&nbsp;dstBuf,
606 <pre>public&nbsp;void&nbsp;compress(byte[]&nbsp;dstBuf,
611 <dl><dt><span class="strong">Parameters:</span></dt><dd><code>dstBuf</code> - buffer that will receive the JPEG image. Use
    [all...]

Completed in 1465 milliseconds

1 2