Home
last modified time | relevance | path

Searched refs:subsamp (Results 1 – 16 of 16) sorted by relevance

/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
DYUVImage.java89 public YUVImage(int width, int[] strides, int height, int subsamp) in YUVImage() argument
91 setBuf(null, null, width, strides, height, subsamp, true); in YUVImage()
108 public YUVImage(int width, int pad, int height, int subsamp) in YUVImage() argument
110 setBuf(new byte[TJ.bufSizeYUV(width, pad, height, subsamp)], width, pad, in YUVImage()
111 height, subsamp); in YUVImage()
149 int height, int subsamp) throws Exception { in YUVImage() argument
150 setBuf(planes, offsets, width, strides, height, subsamp, false); in YUVImage()
175 int subsamp) throws Exception { in YUVImage() argument
176 setBuf(yuvImage, width, pad, height, subsamp); in YUVImage()
213 int height, int subsamp) throws Exception { in setBuf() argument
[all …]
DTJ.java90 public static int getMCUWidth(int subsamp) throws Exception { in getMCUWidth() argument
91 if (subsamp < 0 || subsamp >= NUMSAMP) in getMCUWidth()
93 return mcuWidth[subsamp]; in getMCUWidth()
111 public static int getMCUHeight(int subsamp) throws Exception { in getMCUHeight() argument
112 if (subsamp < 0 || subsamp >= NUMSAMP) in getMCUHeight()
114 return mcuHeight[subsamp]; in getMCUHeight()
431 int subsamp) in bufSizeYUV() argument
438 public static native int bufSizeYUV(int width, int height, int subsamp) in bufSizeYUV() argument
463 int height, int subsamp) in planeSizeYUV() argument
480 public static native int planeWidth(int componentID, int width, int subsamp) in planeWidth() argument
[all …]
DTJCompressor.java298 subsamp = newSubsamp; in setSubsamp()
332 if (subsamp < 0 && srcYUVImage == null) in compress()
346 srcHeight, srcPixelFormat, dstBuf, subsamp, in compress()
350 srcPixelFormat, dstBuf, subsamp, jpegQuality, in compress()
355 srcHeight, srcPixelFormat, dstBuf, subsamp, in compress()
359 srcPixelFormat, dstBuf, subsamp, jpegQuality, in compress()
378 byte[] buf = new byte[TJ.bufSize(srcWidth, srcHeight, subsamp)]; in compress()
427 if (subsamp < 0) in encodeYUV()
453 if (subsamp < 0) in encodeYUV()
455 YUVImage yuvImage = new YUVImage(dstBuf, srcWidth, 4, srcHeight, subsamp); in encodeYUV()
[all …]
DTJDecompressor.java881 int[] srcStrides, int subsamp, byte[] dstBuf, int x, int y, int width, in decodeYUV() argument
885 int[] srcStrides, int subsamp, int[] dstBuf, int x, int y, int width, in decodeYUV() argument
/external/libjpeg-turbo/
Dtjunittest.c180 int checkBuf(unsigned char *buf, int w, int h, int pf, int subsamp, in checkBuf() argument
246 if(subsamp==TJSAMP_GRAY) in checkBuf()
297 int checkBufYUV(unsigned char *buf, int w, int h, int subsamp, in checkBufYUV() argument
301 int hsf=tjMCUWidth[subsamp]/8, vsf=tjMCUHeight[subsamp]/8; in checkBufYUV()
324 if(subsamp!=TJSAMP_GRAY) in checkBufYUV()
397 int subsamp, int jpegQual, int flags) in compTest() argument
414 unsigned long yuvSize=tjBufSizeYUV2(w, pad, h, subsamp); in compTest()
423 printf("%s %s -> YUV %s ... ", pfStr, buStrLong, subNameLong[subsamp]); in compTest()
424 _tj(tjEncodeYUV3(handle2, srcBuf, w, 0, h, pf, yuvBuf, pad, subsamp, in compTest()
427 if(checkBufYUV(yuvBuf, w, h, subsamp, sf)) printf("Passed.\n"); in compTest()
[all …]
Dturbojpeg.c174 int pixelFormat, int subsamp, int jpegQual, int flags) in setCompDefaults() argument
248 if(subsamp==TJSAMP_GRAY) in setCompDefaults()
260 cinfo->comp_info[0].h_samp_factor=tjMCUWidth[subsamp]/8; in setCompDefaults()
264 cinfo->comp_info[3].h_samp_factor=tjMCUWidth[subsamp]/8; in setCompDefaults()
265 cinfo->comp_info[0].v_samp_factor=tjMCUHeight[subsamp]/8; in setCompDefaults()
269 cinfo->comp_info[3].v_samp_factor=tjMCUHeight[subsamp]/8; in setCompDefaults()
632 int subsamp) in tjBufSizeYUV2() argument
636 if(subsamp<0 || subsamp>=NUMSUBOPT) in tjBufSizeYUV2()
639 nc=(subsamp==TJSAMP_GRAY? 1:3); in tjBufSizeYUV2()
642 int pw=tjPlaneWidth(i, width, subsamp); in tjBufSizeYUV2()
[all …]
Dturbojpeg.h740 int width, int pad, int height, int subsamp, unsigned char **jpegBuf,
810 unsigned char **srcPlanes, int width, int *strides, int height, int subsamp,
858 int subsamp);
883 int stride, int height, int subsamp);
900 DLLEXPORT int tjPlaneWidth(int componentID, int width, int subsamp);
917 DLLEXPORT int tjPlaneHeight(int componentID, int height, int subsamp);
970 unsigned char *dstBuf, int pad, int subsamp, int flags);
1028 unsigned char **dstPlanes, int *strides, int subsamp, int flags);
1295 int pad, int subsamp, unsigned char *dstBuf, int width, int pitch,
1352 unsigned char **srcPlanes, int *strides, int subsamp, unsigned char *dstBuf,
[all …]
Dtjbench.c70 char *formatName(int subsamp, int cs, char *buf) in formatName() argument
72 if(cs==TJCS_YCbCr) return (char *)subNameLong[subsamp]; in formatName()
75 snprintf(buf, 80, "%s %s", csName[cs], subNameLong[subsamp]); in formatName()
106 int subsamp, int jpegqual, char *filename, int tilew, int tileh) in decomp() argument
142 int yuvsize=tjBufSizeYUV2(width, yuvpad, height, subsamp); in decomp()
168 if(tjDecodeYUV(handle, yuvbuf, yuvpad, subsamp, dstptr2, width, in decomp()
224 snprintf(tempstr, 1024, "%s_%s%s_%s.%s", filename, subName[subsamp], in decomp()
235 if(subsamp==TJ_GRAYSCALE) in decomp()
276 int fullTest(unsigned char *srcbuf, int w, int h, int subsamp, int jpegqual, in fullTest() argument
295 (flags&TJFLAG_BOTTOMUP)? "Bottom-up":"Top-down", subNameLong[subsamp], in fullTest()
[all …]
Dturbojpeg-jni.c112 (JNIEnv *env, jclass cls, jint width, jint pad, jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__IIII() argument
114 jint retval=(jint)tjBufSizeYUV2(width, pad, height, subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__IIII()
123 (JNIEnv *env, jclass cls, jint width, jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__III() argument
126 4, height, subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__III()
132 jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_planeSizeYUV__IIIII() argument
135 subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_planeSizeYUV__IIIII()
144 (JNIEnv *env, jclass cls, jint componentID, jint width, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_planeWidth__III() argument
146 jint retval=(jint)tjPlaneWidth(componentID, width, subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_planeWidth__III()
155 (JNIEnv *env, jclass cls, jint componentID, jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_planeHeight__III() argument
157 jint retval=(jint)tjPlaneHeight(componentID, height, subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_planeHeight__III()
[all …]
DChangeLog.txt138 instead of -1 if componentID was > 0 and subsamp was TJSAMP_GRAY.
/external/libvncserver/test/
Dtjunittest.c143 int checkBuf(unsigned char *buf, int w, int h, int pf, int subsamp, in checkBuf() argument
179 if(subsamp==TJSAMP_GRAY) in checkBuf()
240 int subsamp, int jpegQual, int flags) in compTest() argument
246 (flags&TJFLAG_BOTTOMUP)? "Bottom-Up":"Top-Down ", subNameLong[subsamp], in compTest()
255 *dstSize=tjBufSize(w, h, subsamp); in compTest()
256 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest()
261 pixFormatStr[pf], (flags&TJFLAG_BOTTOMUP)? "BU":"TD", subName[subsamp], in compTest()
273 unsigned long jpegSize, int w, int h, int pf, char *basename, int subsamp, in _decompTest() argument
290 if(_hdrw!=w || _hdrh!=h || _hdrsubsamp!=subsamp) in _decompTest()
303 if(checkBuf(dstBuf, scaledWidth, scaledHeight, pf, subsamp, sf, flags)) in _decompTest()
[all …]
Dtjbench.c80 int subsamp, int jpegqual, char *filename, int tilew, int tileh) in decomptest() argument
158 snprintf(tempstr, 1024, "%s_%s%s_%s.%s", filename, subName[subsamp], in decomptest()
168 if(subsamp==TJ_GRAYSCALE) in decomptest()
208 void dotest(unsigned char *srcbuf, int w, int h, int subsamp, int jpegqual, in dotest() argument
224 (flags&TJFLAG_BOTTOMUP)? "Bottom-up":"Top-down", subNameLong[subsamp], in dotest()
244 subsamp)))==NULL) in dotest()
251 (flags&TJFLAG_BOTTOMUP)? "BU":"TD", subNameLong[subsamp], jpegqual); in dotest()
259 &jpegsize[0], subsamp, jpegqual, flags)==-1) in dotest()
275 &jpegbuf[tile], &jpegsize[tile], subsamp, jpegqual, flags)==-1) in dotest()
309 snprintf(tempstr, 1024, "%s_%s_Q%d.jpg", filename, subName[subsamp], in dotest()
[all …]
/external/libjpeg-turbo/java/
DTJUnitTest.java305 int subsamp, TJScalingFactor sf, int flags) in checkBuf() argument
371 if (subsamp == TJ.SAMP_GRAY) { in checkBuf()
429 int subsamp, TJScalingFactor sf, int flags) in checkIntBuf() argument
461 if (subsamp == TJ.SAMP_GRAY) { in checkIntBuf()
506 private static int checkImg(BufferedImage img, int pf, int subsamp, in checkImg() argument
520 subsamp, sf, flags); in checkImg()
526 return checkBuf(buf, img.getWidth(), pitch, img.getHeight(), pf, subsamp, in checkImg()
536 int subsamp, TJScalingFactor sf) in checkBufYUV() argument
539 int hsf = TJ.getMCUWidth(subsamp) / 8, vsf = TJ.getMCUHeight(subsamp) / 8; in checkBufYUV()
545 (subsamp == TJ.SAMP_GRAY ? 0 : uvpitch * ch * 2); in checkBufYUV()
[all …]
DTJBench.java66 static String formatName(int subsamp, int cs) { in formatName() argument
68 return subNameLong[subsamp]; in formatName()
70 return csName[cs] + " " + subNameLong[subsamp]; in formatName()
134 byte[] dstBuf, int w, int h, int subsamp, int jpegQual, in decomp() argument
160 yuvImage = new YUVImage(width, yuvpad, height, subsamp); in decomp()
176 yuvImage.setBuf(yuvImage.getBuf(), width, yuvpad, height, subsamp); in decomp() local
235 tempStr = new String(fileName + "_" + subName[subsamp] + qualStr + in decomp()
244 if (subsamp == TJ.SAMP_GRAY) { in decomp()
272 static void fullTest(byte[] srcBuf, int w, int h, int subsamp, int jpegQual, in fullTest() argument
290 subNameLong[subsamp], jpegQual); in fullTest()
[all …]
/external/libvncserver/common/
Dturbojpeg.c141 int pixelFormat, int subsamp, int jpegQual) in setCompDefaults() argument
190 if(subsamp==TJSAMP_GRAY) in setCompDefaults()
195 cinfo->comp_info[0].h_samp_factor=tjMCUWidth[subsamp]/8; in setCompDefaults()
198 cinfo->comp_info[0].v_samp_factor=tjMCUHeight[subsamp]/8; in setCompDefaults()
/external/libvncserver/libvncserver/
Dtight.c1559 int subsamp = subsampLevel2tjsubsamp[subsampLevel]; in SendJpegRect() local
1642 &size, subsamp, quality, flags) == -1) { in SendJpegRect()