Lines Matching refs:subsamp
102 static char *formatName(int subsamp, int cs, char *buf) in formatName() argument
105 return (char *)subNameLong[subsamp]; in formatName()
107 snprintf(buf, 80, "%s %s", csName[cs], subNameLong[subsamp]); in formatName()
144 int subsamp, int jpegQual, char *fileName, int tilew, in decomp() argument
182 unsigned long yuvSize = tjBufSizeYUV2(width, yuvPad, height, subsamp); in decomp()
212 if (tjDecodeYUV(handle, yuvBuf, yuvPad, subsamp, dstPtr2, width, in decomp()
271 snprintf(tempStr, 1024, "%s_%s%s_%s.%s", fileName, subName[subsamp], in decomp()
280 if (subsamp == TJ_GRAYSCALE) { in decomp()
318 static int fullTest(unsigned char *srcBuf, int w, int h, int subsamp, in fullTest() argument
343 subNameLong[subsamp], jpegQual); in fullTest()
363 if (tjBufSize(tilew, tileh, subsamp) > (unsigned long)INT_MAX) in fullTest()
366 tjAlloc(tjBufSize(tilew, tileh, subsamp))) == NULL) in fullTest()
373 (flags & TJFLAG_BOTTOMUP) ? "BU" : "TD", subNameLong[subsamp], in fullTest()
381 yuvSize = tjBufSizeYUV2(tilew, yuvPad, tileh, subsamp); in fullTest()
408 yuvPad, subsamp, flags) == -1) in fullTest()
412 subsamp, &jpegBuf[tile], &jpegSize[tile], in fullTest()
417 &jpegBuf[tile], &jpegSize[tile], subsamp, jpegQual, in fullTest()
485 snprintf(tempStr, 1024, "%s_%s_Q%d.jpg", fileName, subName[subsamp], in fullTest()
497 if (decomp(srcBuf, jpegBuf, jpegSize, tmpBuf, w, h, subsamp, jpegQual, in fullTest()
541 int w = 0, h = 0, tilew, tileh, ntilesw = 1, ntilesh = 1, subsamp = -1, in decompTest() local
564 if (tjDecompressHeader3(handle, srcBuf, srcSize, &w, &h, &subsamp, in decompTest()
586 formatName(subsamp, cs, tempStr), pixFormatStr[pf], in decompTest()
608 if (tjBufSize(tilew, tileh, subsamp) > (unsigned long)INT_MAX) in decompTest()
611 tjAlloc(tjBufSize(tilew, tileh, subsamp))) == NULL) in decompTest()
625 subNameLong[subsamp]); in decompTest()
629 tsubsamp = subsamp; in decompTest()
838 int minArg = 2, retval = 0, subsamp = -1; in main() local
963 if (toupper(argv[i][0]) == 'G') subsamp = TJSAMP_GRAY; in main()
968 case 444: subsamp = TJSAMP_444; break; in main()
969 case 422: subsamp = TJSAMP_422; break; in main()
970 case 440: subsamp = TJSAMP_440; break; in main()
971 case 420: subsamp = TJSAMP_420; break; in main()
972 case 411: subsamp = TJSAMP_411; break; in main()
1026 if (subsamp >= 0 && subsamp < TJ_NUMSAMP) { in main()
1028 fullTest(srcBuf, w, h, subsamp, i, argv[1]); in main()