Lines Matching refs:subsamp
70 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()
316 subsamp)))==NULL) in fullTest()
323 (flags&TJFLAG_BOTTOMUP)? "BU":"TD", subNameLong[subsamp], jpegqual); in fullTest()
331 yuvsize=tjBufSizeYUV2(tilew, yuvpad, tileh, subsamp); in fullTest()
356 yuvpad, subsamp, flags)==-1) in fullTest()
360 subsamp, &jpegbuf[tile], &jpegsize[tile], jpegqual, flags)==-1) in fullTest()
366 &jpegbuf[tile], &jpegsize[tile], subsamp, jpegqual, flags)==-1) in fullTest()
427 snprintf(tempstr, 1024, "%s_%s_Q%d.jpg", filename, subName[subsamp], in fullTest()
440 if(decomp(srcbuf, jpegbuf, jpegsize, tmpbuf, w, h, subsamp, jpegqual, in fullTest()
483 int w=0, h=0, subsamp=-1, cs=-1, _w, _h, _tilew, _tileh, in decompTest() local
507 if(tjDecompressHeader3(handle, srcbuf, srcsize, &w, &h, &subsamp, &cs)==-1) in decompTest()
527 formatName(subsamp, cs, tempstr), pixFormatStr[pf], in decompTest()
548 subsamp)))==NULL) in decompTest()
564 (flags&TJFLAG_BOTTOMUP)? "BU":"TD", csName[cs], subNameLong[subsamp]); in decompTest()
568 _subsamp=subsamp; in decompTest()
770 int minarg=2, retval=0, subsamp=-1; in main() local
894 if(toupper(argv[i][0])=='G') subsamp=TJSAMP_GRAY; in main()
900 case 444: subsamp=TJSAMP_444; break; in main()
901 case 422: subsamp=TJSAMP_422; break; in main()
902 case 440: subsamp=TJSAMP_440; break; in main()
903 case 420: subsamp=TJSAMP_420; break; in main()
904 case 411: subsamp=TJSAMP_411; break; in main()
956 if(subsamp>=0 && subsamp<TJ_NUMSAMP) in main()
959 fullTest(srcbuf, w, h, subsamp, i, argv[1]); in main()