/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
TJ.java | 85 * @param subsamp the level of chrominance subsampling (one of 91 public static int getMCUWidth(int subsamp) { 92 checkSubsampling(subsamp); 93 return mcuWidth[subsamp]; 105 * @param subsamp the level of chrominance subsampling (one of 111 public static int getMCUHeight(int subsamp) { 112 checkSubsampling(subsamp); 113 return mcuHeight[subsamp]; 418 * @param subsamp the level of chrominance subsampling used in the YUV 425 int subsamp); [all...] |
YUVImage.java | 87 * @param subsamp the level of chrominance subsampling to be used in the YUV 90 public YUVImage(int width, int[] strides, int height, int subsamp) { 91 setBuf(null, null, width, strides, height, subsamp, true); 105 * @param subsamp the level of chrominance subsampling to be used in the YUV 108 public YUVImage(int width, int pad, int height, int subsamp) { 109 setBuf(new byte[TJ.bufSizeYUV(width, pad, height, subsamp)], width, pad, 110 height, subsamp); 121 * {@link TJ#planeSizeYUV TJ.planeSizeYUV}(i, width, strides[i], height, subsamp)</code> 144 * @param subsamp the level of chrominance subsampling used in the YUV 148 int height, int subsamp) { [all...] |
TJCompressor.java | 300 subsamp = newSubsamp; 334 if (subsamp < 0 && srcYUVImage == null) 348 srcHeight, srcPixelFormat, dstBuf, subsamp, 352 srcPixelFormat, dstBuf, subsamp, jpegQuality, 357 srcHeight, srcPixelFormat, dstBuf, subsamp, 361 srcPixelFormat, dstBuf, subsamp, jpegQuality, 379 byte[] buf = new byte[TJ.bufSize(srcWidth, srcHeight, subsamp)]; 454 YUVImage yuvImage = new YUVImage(dstBuf, srcWidth, 4, srcHeight, subsamp); 480 YUVImage yuvImage = new YUVImage(srcWidth, pad, srcHeight, subsamp); 509 YUVImage yuvImage = new YUVImage(srcWidth, strides, srcHeight, subsamp); 653 private int subsamp = -1; field in class:TJCompressor [all...] |
TJDecompressor.java | [all...] |
/external/libvncserver/test/ |
tjunittest.c | 143 int checkBuf(unsigned char *buf, int w, int h, int pf, int subsamp, 179 if(subsamp==TJSAMP_GRAY) 240 int subsamp, int jpegQual, int flags) 246 (flags&TJFLAG_BOTTOMUP)? "Bottom-Up":"Top-Down ", subNameLong[subsamp], 255 *dstSize=tjBufSize(w, h, subsamp); 256 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, 261 pixFormatStr[pf], (flags&TJFLAG_BOTTOMUP)? "BU":"TD", subName[subsamp], 273 unsigned long jpegSize, int w, int h, int pf, char *basename, int subsamp, 290 if(_hdrw!=w || _hdrh!=h || _hdrsubsamp!=subsamp) 303 if(checkBuf(dstBuf, scaledWidth, scaledHeight, pf, subsamp, sf, flags) 379 int w, h, i, subsamp; local [all...] |
tjbench.c | 80 int subsamp, int jpegqual, char *filename, int tilew, int tileh) 158 snprintf(tempstr, 1024, "%s_%s%s_%s.%s", filename, subName[subsamp], 168 if(subsamp==TJ_GRAYSCALE) 208 void dotest(unsigned char *srcbuf, int w, int h, int subsamp, int jpegqual, 224 (flags&TJFLAG_BOTTOMUP)? "Bottom-up":"Top-down", subNameLong[subsamp], 244 subsamp)))==NULL) 251 (flags&TJFLAG_BOTTOMUP)? "BU":"TD", subNameLong[subsamp], jpegqual); 259 &jpegsize[0], subsamp, jpegqual, flags)==-1) 275 &jpegbuf[tile], &jpegsize[tile], subsamp, jpegqual, flags)==-1) 309 snprintf(tempstr, 1024, "%s_%s_Q%d.jpg", filename, subName[subsamp], 356 int w=0, h=0, subsamp=-1, _w, _h, _tilew, _tileh, _subsamp; local [all...] |
/external/libjpeg-turbo/ |
turbojpeg.h | 704 * @param subsamp the level of chrominance subsampling used in the source 740 const unsigned char *srcBuf, int width, int pad, int height, int subsamp, 774 * @param subsamp the level of chrominance subsampling used in the source [all...] |
tjunittest.c | 180 int checkBuf(unsigned char *buf, int w, int h, int pf, int subsamp, 246 if(subsamp==TJSAMP_GRAY) 297 int checkBufYUV(unsigned char *buf, int w, int h, int subsamp, 301 int hsf=tjMCUWidth[subsamp]/8, vsf=tjMCUHeight[subsamp]/8; 324 if(subsamp!=TJSAMP_GRAY) 397 int subsamp, int jpegQual, int flags) 414 unsigned long yuvSize=tjBufSizeYUV2(w, pad, h, subsamp); 423 printf("%s %s -> YUV %s ... ", pfStr, buStrLong, subNameLong[subsamp]); 424 _tj(tjEncodeYUV3(handle2, srcBuf, w, 0, h, pf, yuvBuf, pad, subsamp, 598 int w, h, i, subsamp; local [all...] |
turbojpeg.c | 175 int pixelFormat, int subsamp, int jpegQual, int flags) 249 if(subsamp==TJSAMP_GRAY) 261 cinfo->comp_info[0].h_samp_factor=tjMCUWidth[subsamp]/8; 265 cinfo->comp_info[3].h_samp_factor=tjMCUWidth[subsamp]/8; 266 cinfo->comp_info[0].v_samp_factor=tjMCUHeight[subsamp]/8; 270 cinfo->comp_info[3].v_samp_factor=tjMCUHeight[subsamp]/8; 658 int subsamp) 662 if(subsamp<0 || subsamp>=NUMSUBOPT) 665 nc=(subsamp==TJSAMP_GRAY? 1:3) [all...] |
turbojpeg-jni.c | 116 (JNIEnv *env, jclass cls, jint width, jint pad, jint height, jint subsamp) 118 jint retval=(jint)tjBufSizeYUV2(width, pad, height, subsamp); 127 (JNIEnv *env, jclass cls, jint width, jint height, jint subsamp) 130 4, height, subsamp); 136 jint height, jint subsamp) 139 subsamp); 148 (JNIEnv *env, jclass cls, jint componentID, jint width, jint subsamp) 150 jint retval=(jint)tjPlaneWidth(componentID, width, subsamp); 159 (JNIEnv *env, jclass cls, jint componentID, jint height, jint subsamp) 161 jint retval=(jint)tjPlaneHeight(componentID, height, subsamp); [all...] |
tjbench.c | 70 char *formatName(int subsamp, int cs, char *buf) 72 if(cs==TJCS_YCbCr) return (char *)subNameLong[subsamp]; 75 snprintf(buf, 80, "%s %s", csName[cs], subNameLong[subsamp]); 106 int subsamp, int jpegqual, char *filename, int tilew, int tileh) 142 int yuvsize=tjBufSizeYUV2(width, yuvpad, height, subsamp); 168 if(tjDecodeYUV(handle, yuvbuf, yuvpad, subsamp, dstptr2, width, 227 snprintf(tempstr, 1024, "%s_%s%s_%s.%s", filename, subName[subsamp], 238 if(subsamp==TJ_GRAYSCALE) 280 int fullTest(unsigned char *srcbuf, int w, int h, int subsamp, int jpegqual, 299 (flags&TJFLAG_BOTTOMUP)? "Bottom-up":"Top-down", subNameLong[subsamp], 490 int w=0, h=0, subsamp=-1, cs=-1, _w, _h, _tilew, _tileh, local 781 int minarg=2, retval=0, subsamp=-1; local [all...] |
/external/libjpeg-turbo/java/ |
TJUnitTest.java | 305 int subsamp, TJScalingFactor sf, int flags) 371 if (subsamp == TJ.SAMP_GRAY) { 429 int subsamp, TJScalingFactor sf, int flags) 461 if (subsamp == TJ.SAMP_GRAY) { 506 private static int checkImg(BufferedImage img, int pf, int subsamp, 520 subsamp, sf, flags); 526 return checkBuf(buf, img.getWidth(), pitch, img.getHeight(), pf, subsamp, 536 int subsamp, TJScalingFactor sf) 539 int hsf = TJ.getMCUWidth(subsamp) / 8, vsf = TJ.getMCUHeight(subsamp) / 8 850 int w, h, i, subsamp; local [all...] |
TJBench.java | 66 static String formatName(int subsamp, int cs) { 68 return subNameLong[subsamp]; 70 return csName[cs] + " " + subNameLong[subsamp]; 134 byte[] dstBuf, int w, int h, int subsamp, int jpegQual, 160 yuvImage = new YUVImage(width, yuvpad, height, subsamp); 176 yuvImage.setBuf(yuvImage.getBuf(), width, yuvpad, height, subsamp); local 237 tempStr = new String(fileName + "_" + subName[subsamp] + qualStr + 246 if (subsamp == TJ.SAMP_GRAY) { 274 static void fullTest(byte[] srcBuf, int w, int h, int subsamp, int jpegQual, 292 subNameLong[subsamp], jpegQual) 338 subsamp); local 425 int w = 0, h = 0, subsamp = -1, cs = -1, _w, _h, _tilew, _tileh, local 677 int subsamp = -1; local [all...] |
/external/libvncserver/common/ |
turbojpeg.c | 141 int pixelFormat, int subsamp, int jpegQual) 190 if(subsamp==TJSAMP_GRAY) 195 cinfo->comp_info[0].h_samp_factor=tjMCUWidth[subsamp]/8; 198 cinfo->comp_info[0].v_samp_factor=tjMCUHeight[subsamp]/8;
|
/external/libvncserver/libvncserver/ |
tight.c | 1559 int subsamp = subsampLevel2tjsubsamp[subsampLevel]; local [all...] |