/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
TJ.java | 84 * @param subsamp the level of chrominance subsampling (one of 90 public static int getMCUWidth(int subsamp) throws Exception { 91 if (subsamp < 0 || subsamp >= NUMSAMP) 93 return mcuWidth[subsamp]; 105 * @param subsamp the level of chrominance subsampling (one of 111 public static int getMCUHeight(int subsamp) throws Exception { 112 if (subsamp < 0 || subsamp >= NUMSAMP) 114 return mcuHeight[subsamp]; [all...] |
YUVImage.java | 86 * @param subsamp the level of chrominance subsampling to be used in the YUV 89 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) 110 setBuf(new byte[TJ.bufSizeYUV(width, pad, height, subsamp)], width, pad, 111 height, subsamp); 122 * {@link TJ#planeSizeYUV TJ.planeSizeYUV}(i, width, strides[i], height, subsamp)</code> 145 * @param subsamp the level of chrominance subsampling used in the YUV 149 int height, int subsamp) throws Exception [all...] |
TJCompressor.java | 298 subsamp = newSubsamp; 332 if (subsamp < 0 && srcYUVImage == null) 346 srcHeight, srcPixelFormat, dstBuf, subsamp, 350 srcPixelFormat, dstBuf, subsamp, jpegQuality, 355 srcHeight, srcPixelFormat, dstBuf, subsamp, 359 srcPixelFormat, dstBuf, subsamp, jpegQuality, 378 byte[] buf = new byte[TJ.bufSize(srcWidth, srcHeight, subsamp)]; 427 if (subsamp < 0) 453 if (subsamp < 0) 455 YUVImage yuvImage = new YUVImage(dstBuf, srcWidth, 4, srcHeight, subsamp); 643 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 int width, int pad, int height, int subsamp, unsigned char **jpegBuf, 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 | 174 int pixelFormat, int subsamp, int jpegQual, int flags) 248 if(subsamp==TJSAMP_GRAY) 260 cinfo->comp_info[0].h_samp_factor=tjMCUWidth[subsamp]/8; 264 cinfo->comp_info[3].h_samp_factor=tjMCUWidth[subsamp]/8; 265 cinfo->comp_info[0].v_samp_factor=tjMCUHeight[subsamp]/8; 269 cinfo->comp_info[3].v_samp_factor=tjMCUHeight[subsamp]/8; 632 int subsamp) 636 if(subsamp<0 || subsamp>=NUMSUBOPT) 639 nc=(subsamp==TJSAMP_GRAY? 1:3) [all...] |
turbojpeg-jni.c | 112 (JNIEnv *env, jclass cls, jint width, jint pad, jint height, jint subsamp) 114 jint retval=(jint)tjBufSizeYUV2(width, pad, height, subsamp); 123 (JNIEnv *env, jclass cls, jint width, jint height, jint subsamp) 126 4, height, subsamp); 132 jint height, jint subsamp) 135 subsamp); 144 (JNIEnv *env, jclass cls, jint componentID, jint width, jint subsamp) 146 jint retval=(jint)tjPlaneWidth(componentID, width, subsamp); 155 (JNIEnv *env, jclass cls, jint componentID, jint height, jint subsamp) 157 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, 224 snprintf(tempstr, 1024, "%s_%s%s_%s.%s", filename, subName[subsamp], 235 if(subsamp==TJ_GRAYSCALE) 276 int fullTest(unsigned char *srcbuf, int w, int h, int subsamp, int jpegqual, 295 (flags&TJFLAG_BOTTOMUP)? "Bottom-up":"Top-down", subNameLong[subsamp], 483 int w=0, h=0, subsamp=-1, cs=-1, _w, _h, _tilew, _tileh, local 770 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 235 tempStr = new String(fileName + "_" + subName[subsamp] + qualStr + 244 if (subsamp == TJ.SAMP_GRAY) { 272 static void fullTest(byte[] srcBuf, int w, int h, int subsamp, int jpegQual, 290 subNameLong[subsamp], jpegQual) 336 subsamp); local 423 int w = 0, h = 0, subsamp = -1, cs = -1, _w, _h, _tilew, _tileh, local 673 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...] |