Home
last modified time | relevance | path

Searched refs:dstBufs (Results 1 – 4 of 4) sorted by relevance

/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
DTJTransformer.java96 public void transform(byte[][] dstBufs, TJTransform[] transforms, in transform() argument
100 transformedSizes = transform(jpegBuf, jpegBufSize, dstBufs, transforms, in transform()
121 byte[][] dstBufs = new byte[transforms.length][]; in transform()
130 dstBufs[i] = new byte[TJ.bufSize(w, h, jpegSubsamp)]; in transform()
133 transform(dstBufs, transforms, flags); in transform()
135 tjd[i] = new TJDecompressor(dstBufs[i], transformedSizes[i]); in transform()
154 private native int[] transform(byte[] srcBuf, int srcSize, byte[][] dstBufs, in transform() argument
/external/libjpeg-turbo/
Dturbojpeg-jni.c1033 unsigned char *jpegBuf=NULL, **dstBufs=NULL; jsize n=0; in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform() local
1055 if((dstBufs=(unsigned char **)malloc(sizeof(unsigned char *)*n))==NULL) in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1068 dstBufs[i]=NULL; jdstBufs[i]=NULL; dstSizes[i]=0; in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1117 bailif0(dstBufs[i]=(*env)->GetPrimitiveArrayCritical(env, jdstBufs[i], 0)); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1119 if(tjTransform(handle, jpegBuf, jpegSize, n, dstBufs, dstSizes, t, in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1125 (*env)->ReleasePrimitiveArrayCritical(env, jdstBufs[i], dstBufs[i], 0); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1126 dstBufs[i]=NULL; in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1137 if(dstBufs) in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1141 if(dstBufs[i] && jdstBufs && jdstBufs[i]) in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1142 (*env)->ReleasePrimitiveArrayCritical(env, jdstBufs[i], dstBufs[i], 0); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
[all …]
Dturbojpeg.h1421 unsigned long jpegSize, int n, unsigned char **dstBufs,
Dturbojpeg.c1963 unsigned long jpegSize, int n, unsigned char **dstBufs, in tjTransform() argument
1974 if(jpegBuf==NULL || jpegSize<=0 || n<1 || dstBufs==NULL || dstSizes==NULL in tjTransform()
2066 jpeg_mem_dest_tj(cinfo, &dstBufs[i], &dstSizes[i], alloc); in tjTransform()