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.java90 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
109 setBuf(new byte[TJ.bufSizeYUV(width, pad, height, subsamp)], width, pad, in YUVImage()
110 height, subsamp); in YUVImage()
148 int height, int subsamp) { in YUVImage() argument
149 setBuf(planes, offsets, width, strides, height, subsamp, false); in YUVImage()
174 int subsamp) { in YUVImage() argument
175 setBuf(yuvImage, width, pad, height, subsamp); in YUVImage()
212 int height, int subsamp) { in setBuf() argument
[all …]
DTJ.java91 public static int getMCUWidth(int subsamp) { in getMCUWidth() argument
92 checkSubsampling(subsamp); in getMCUWidth()
93 return mcuWidth[subsamp]; in getMCUWidth()
111 public static int getMCUHeight(int subsamp) { in getMCUHeight() argument
112 checkSubsampling(subsamp); in getMCUHeight()
113 return mcuHeight[subsamp]; in getMCUHeight()
425 int subsamp); in bufSizeYUV() argument
431 public static native int bufSizeYUV(int width, int height, int subsamp); in bufSizeYUV() argument
455 int height, int subsamp); in planeSizeYUV() argument
471 public static native int planeWidth(int componentID, int width, int subsamp); in planeWidth() argument
[all …]
DTJCompressor.java300 subsamp = newSubsamp; in setSubsamp()
334 if (subsamp < 0 && srcYUVImage == null) in compress()
348 srcHeight, srcPixelFormat, dstBuf, subsamp, in compress()
352 srcPixelFormat, dstBuf, subsamp, jpegQuality, in compress()
357 srcHeight, srcPixelFormat, dstBuf, subsamp, in compress()
361 srcPixelFormat, dstBuf, subsamp, jpegQuality, in compress()
379 byte[] buf = new byte[TJ.bufSize(srcWidth, srcHeight, subsamp)]; in compress()
454 YUVImage yuvImage = new YUVImage(dstBuf, srcWidth, 4, srcHeight, subsamp); in encodeYUV()
480 YUVImage yuvImage = new YUVImage(srcWidth, pad, srcHeight, subsamp); in encodeYUV()
509 YUVImage yuvImage = new YUVImage(srcWidth, strides, srcHeight, subsamp); in encodeYUV()
[all …]
DTJDecompressor.java889 int[] srcStrides, int subsamp, byte[] dstBuf, int x, int y, int width, in decodeYUV() argument
893 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.c175 int pixelFormat, int subsamp, int jpegQual, int flags) in setCompDefaults() argument
249 if(subsamp==TJSAMP_GRAY) in setCompDefaults()
261 cinfo->comp_info[0].h_samp_factor=tjMCUWidth[subsamp]/8; in setCompDefaults()
265 cinfo->comp_info[3].h_samp_factor=tjMCUWidth[subsamp]/8; in setCompDefaults()
266 cinfo->comp_info[0].v_samp_factor=tjMCUHeight[subsamp]/8; in setCompDefaults()
270 cinfo->comp_info[3].v_samp_factor=tjMCUHeight[subsamp]/8; in setCompDefaults()
662 int subsamp) in tjBufSizeYUV2() argument
667 if(subsamp<0 || subsamp>=NUMSUBOPT) in tjBufSizeYUV2()
670 nc=(subsamp==TJSAMP_GRAY? 1:3); in tjBufSizeYUV2()
673 int pw=tjPlaneWidth(i, width, subsamp); in tjBufSizeYUV2()
[all …]
Dturbojpeg.h740 const unsigned char *srcBuf, int width, int pad, int height, int subsamp,
811 int subsamp, unsigned char **jpegBuf, unsigned long *jpegSize, int jpegQual,
859 int subsamp);
884 int stride, int height, int subsamp);
901 DLLEXPORT int tjPlaneWidth(int componentID, int width, int subsamp);
918 DLLEXPORT int tjPlaneHeight(int componentID, int height, int subsamp);
971 int pixelFormat, unsigned char *dstBuf, int pad, int subsamp, int flags);
1029 int pixelFormat, unsigned char **dstPlanes, int *strides, int subsamp,
1293 int pad, int subsamp, unsigned char *dstBuf, int width, int pitch,
1350 const unsigned char **srcPlanes, const int *strides, int subsamp,
[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
145 unsigned long yuvsize=tjBufSizeYUV2(width, yuvpad, height, subsamp); in decomp()
174 if(tjDecodeYUV(handle, yuvbuf, yuvpad, subsamp, dstptr2, width, in decomp()
233 snprintf(tempstr, 1024, "%s_%s%s_%s.%s", filename, subName[subsamp], in decomp()
244 if(subsamp==TJ_GRAYSCALE) in decomp()
286 int fullTest(unsigned char *srcbuf, int w, int h, int subsamp, int jpegqual, in fullTest() argument
308 (flags&TJFLAG_BOTTOMUP)? "Bottom-up":"Top-down", subNameLong[subsamp], in fullTest()
[all …]
Dturbojpeg-jni.c116 (JNIEnv *env, jclass cls, jint width, jint pad, jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__IIII() argument
118 jint retval=(jint)tjBufSizeYUV2(width, pad, height, subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__IIII()
127 (JNIEnv *env, jclass cls, jint width, jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__III() argument
130 4, height, subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__III()
136 jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_planeSizeYUV__IIIII() argument
139 subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_planeSizeYUV__IIIII()
148 (JNIEnv *env, jclass cls, jint componentID, jint width, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_planeWidth__III() argument
150 jint retval=(jint)tjPlaneWidth(componentID, width, subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_planeWidth__III()
159 (JNIEnv *env, jclass cls, jint componentID, jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_planeHeight__III() argument
161 jint retval=(jint)tjPlaneHeight(componentID, height, subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_planeHeight__III()
[all …]
DChangeLog.md369 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()
136 byte[] dstBuf, int w, int h, int subsamp, int jpegQual, in decomp() argument
165 yuvImage = new YUVImage(width, yuvpad, height, subsamp); in decomp()
181 yuvImage.setBuf(yuvImage.getBuf(), width, yuvpad, height, subsamp); in decomp() local
242 tempStr = new String(fileName + "_" + subName[subsamp] + qualStr + in decomp()
251 if (subsamp == TJ.SAMP_GRAY) { in decomp()
279 static void fullTest(byte[] srcBuf, int w, int h, int subsamp, int jpegQual, in fullTest() argument
299 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()