Lines Matching refs:TJ
37 static int flags = 0, quiet = 0, pf = TJ.PF_BGR, yuvpad = 1, warmup = 1;
67 if (cs == TJ.CS_YCbCr) in formatName()
69 else if (cs == TJ.CS_YCCK) in formatName()
95 int ps = TJ.getPixelSize(pixelFormat); in loadImage()
96 int rindex = TJ.getRedOffset(pixelFormat); in loadImage()
97 int gindex = TJ.getGreenOffset(pixelFormat); in loadImage()
98 int bindex = TJ.getBlueOffset(pixelFormat); in loadImage()
118 int ps = TJ.getPixelSize(pixelFormat); in saveImage()
119 int rindex = TJ.getRedOffset(pixelFormat); in saveImage()
120 int gindex = TJ.getGreenOffset(pixelFormat); in saveImage()
121 int bindex = TJ.getBlueOffset(pixelFormat); in saveImage()
141 int ps = TJ.getPixelSize(pf), i, iter = 0; in decomp()
251 if (subsamp == TJ.SAMP_GRAY) { in decomp()
254 int rindex = index2 + TJ.getRedOffset(pf); in decomp()
255 int gindex = index2 + TJ.getGreenOffset(pf); in decomp()
256 int bindex = index2 + TJ.getBlueOffset(pf); in decomp()
287 int ps = TJ.getPixelSize(pf); in fullTest()
298 (flags & TJ.FLAG_BOTTOMUP) != 0 ? "Bottom-up" : "Top-down", in fullTest()
312 jpegBuf = new byte[ntilesw * ntilesh][TJ.bufSize(tilew, tileh, subsamp)]; in fullTest()
318 (flags & TJ.FLAG_BOTTOMUP) != 0 ? "BU" : "TD", in fullTest()
436 int ps = TJ.getPixelSize(pf), tile; in decompTest()
473 (flags & TJ.FLAG_BOTTOMUP) != 0 ? "Bottom-up" : "Top-down"); in decompTest()
494 (flags & TJ.FLAG_BOTTOMUP) != 0 ? "BU" : "TD", in decompTest()
509 _subsamp = TJ.SAMP_GRAY; in decompTest()
512 _w = _w - (_w % TJ.getMCUWidth(_subsamp)); in decompTest()
515 _h = _h - (_h % TJ.getMCUHeight(_subsamp)); in decompTest()
518 _w = _w - (_w % TJ.getMCUHeight(_subsamp)); in decompTest()
521 _h = _h - (_h % TJ.getMCUWidth(_subsamp)); in decompTest()
529 if (_subsamp == TJ.SAMP_422) in decompTest()
530 _subsamp = TJ.SAMP_440; in decompTest()
531 else if (_subsamp == TJ.SAMP_440) in decompTest()
532 _subsamp = TJ.SAMP_422; in decompTest()
536 jpegBuf = new byte[_ntilesw * _ntilesh][TJ.bufSize(_tilew, _tileh, subsamp)]; in decompTest()
592 jpegBuf = new byte[1][TJ.bufSize(_tilew, _tileh, subsamp)]; in decompTest()
618 TJScalingFactor[] scalingFactors = TJ.getScalingFactors(); in usage()
725 flags |= TJ.FLAG_FASTUPSAMPLE; in main()
729 flags |= TJ.FLAG_FASTDCT; in main()
733 flags |= TJ.FLAG_ACCURATEDCT; in main()
736 pf = TJ.PF_RGB; in main()
738 pf = TJ.PF_RGBX; in main()
740 pf = TJ.PF_BGR; in main()
742 pf = TJ.PF_BGRX; in main()
744 pf = TJ.PF_XBGR; in main()
746 pf = TJ.PF_XRGB; in main()
748 flags |= TJ.FLAG_BOTTOMUP; in main()
763 TJScalingFactor[] scalingFactors = TJ.getScalingFactors(); in main()
819 subsamp = TJ.SAMP_GRAY; in main()
821 subsamp = TJ.SAMP_444; in main()
823 subsamp = TJ.SAMP_422; in main()
825 subsamp = TJ.SAMP_440; in main()
827 subsamp = TJ.SAMP_420; in main()
829 subsamp = TJ.SAMP_411; in main()
894 if (subsamp >= 0 && subsamp < TJ.NUMSAMP) { in main()
900 fullTest(srcBuf, w, h, TJ.SAMP_GRAY, i, argv[0]); in main()
904 fullTest(srcBuf, w, h, TJ.SAMP_420, i, argv[0]); in main()
908 fullTest(srcBuf, w, h, TJ.SAMP_422, i, argv[0]); in main()
912 fullTest(srcBuf, w, h, TJ.SAMP_444, i, argv[0]); in main()