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)
69 else if (cs == TJ.CS_YCCK)
95 int ps = TJ.getPixelSize(pixelFormat);
96 int rindex = TJ.getRedOffset(pixelFormat);
97 int gindex = TJ.getGreenOffset(pixelFormat);
98 int bindex = TJ.getBlueOffset(pixelFormat);
116 int ps = TJ.getPixelSize(pixelFormat);
117 int rindex = TJ.getRedOffset(pixelFormat);
118 int gindex = TJ.getGreenOffset(pixelFormat);
119 int bindex = TJ.getBlueOffset(pixelFormat);
139 int ps = TJ.getPixelSize(pf), i, iter = 0;
246 if (subsamp == TJ.SAMP_GRAY) {
249 int rindex = index2 + TJ.getRedOffset(pf);
250 int gindex = index2 + TJ.getGreenOffset(pf);
251 int bindex = index2 + TJ.getBlueOffset(pf);
282 int ps = TJ.getPixelSize(pf);
291 (flags & TJ.FLAG_BOTTOMUP) != 0 ? "Bottom-up" : "Top-down",
305 jpegBuf = new byte[ntilesw * ntilesh][TJ.bufSize(tilew, tileh, subsamp)];
311 (flags & TJ.FLAG_BOTTOMUP) != 0 ? "BU" : "TD",
429 int ps = TJ.getPixelSize(pf), tile;
464 (flags & TJ.FLAG_BOTTOMUP) != 0 ? "Bottom-up" : "Top-down");
485 (flags & TJ.FLAG_BOTTOMUP) != 0 ? "BU" : "TD",
500 _subsamp = TJ.SAMP_GRAY;
503 _w = _w - (_w % TJ.getMCUWidth(_subsamp));
506 _h = _h - (_h % TJ.getMCUHeight(_subsamp));
509 _w = _w - (_w % TJ.getMCUHeight(_subsamp));
512 _h = _h - (_h % TJ.getMCUWidth(_subsamp));
520 if (_subsamp == TJ.SAMP_422)
521 _subsamp = TJ.SAMP_440;
522 else if (_subsamp == TJ.SAMP_440)
523 _subsamp = TJ.SAMP_422;
527 jpegBuf = new byte[_ntilesw * _ntilesh][TJ.bufSize(_tilew, _tileh, subsamp)];
583 jpegBuf = new byte[1][TJ.bufSize(_tilew, _tileh, subsamp)];
609 TJScalingFactor[] scalingFactors = TJ.getScalingFactors();
716 flags |= TJ.FLAG_FASTUPSAMPLE;
720 flags |= TJ.FLAG_FASTDCT;
724 flags |= TJ.FLAG_ACCURATEDCT;
727 pf = TJ.PF_RGB;
729 pf = TJ.PF_RGBX;
731 pf = TJ.PF_BGR;
733 pf = TJ.PF_BGRX;
735 pf = TJ.PF_XBGR;
737 pf = TJ.PF_XRGB;
739 flags |= TJ.FLAG_BOTTOMUP;
754 TJScalingFactor[] scalingFactors = TJ.getScalingFactors();
810 subsamp = TJ.SAMP_GRAY;
812 subsamp = TJ.SAMP_444;
814 subsamp = TJ.SAMP_422;
816 subsamp = TJ.SAMP_440;
818 TJ.SAMP_420;
820 subsamp = TJ.SAMP_411;
885 if (subsamp >= 0 && subsamp < TJ.NUMSAMP) {
891 fullTest(srcBuf, w, h, TJ.SAMP_GRAY, i, argv[0]);
895 fullTest(srcBuf, w, h, TJ.SAMP_420, i, argv[0]);
899 fullTest(srcBuf, w, h, TJ.SAMP_422, i, argv[0]);
903 fullTest(srcBuf, w, h, TJ.SAMP_444, i, argv[0]);