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.java97 public void transform(byte[][] dstBufs, TJTransform[] transforms, in transform() argument
101 transformedSizes = transform(jpegBuf, jpegBufSize, dstBufs, transforms, in transform()
122 byte[][] dstBufs = new byte[transforms.length][]; in transform()
131 dstBufs[i] = new byte[TJ.bufSize(w, h, jpegSubsamp)]; in transform()
134 transform(dstBufs, transforms, flags); in transform()
136 tjd[i] = new TJDecompressor(dstBufs[i], transformedSizes[i]); in transform()
155 private native int[] transform(byte[] srcBuf, int srcSize, byte[][] dstBufs, in transform() argument
/external/libjpeg-turbo/
Dturbojpeg-jni.c1041 unsigned char *jpegBuf=NULL, **dstBufs=NULL; jsize n=0; in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform() local
1063 if((dstBufs=(unsigned char **)malloc(sizeof(unsigned char *)*n))==NULL) in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1076 dstBufs[i]=NULL; jdstBufs[i]=NULL; dstSizes[i]=0; in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1125 bailif0(dstBufs[i]=(*env)->GetPrimitiveArrayCritical(env, jdstBufs[i], 0)); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1127 if(tjTransform(handle, jpegBuf, jpegSize, n, dstBufs, dstSizes, t, in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1133 (*env)->ReleasePrimitiveArrayCritical(env, jdstBufs[i], dstBufs[i], 0); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1134 dstBufs[i]=NULL; in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1145 if(dstBufs) in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1149 if(dstBufs[i] && jdstBufs && jdstBufs[i]) in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1150 (*env)->ReleasePrimitiveArrayCritical(env, jdstBufs[i], dstBufs[i], 0); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
[all …]
Dturbojpeg.h1421 unsigned char **dstBufs, unsigned long *dstSizes, tjtransform *transforms,
Dturbojpeg.c2011 unsigned char **dstBufs, unsigned long *dstSizes, tjtransform *t, int flags) in tjTransform() argument
2021 if(jpegBuf==NULL || jpegSize<=0 || n<1 || dstBufs==NULL || dstSizes==NULL in tjTransform()
2113 jpeg_mem_dest_tj(cinfo, &dstBufs[i], &dstSizes[i], alloc); in tjTransform()