• Home
  • Raw
  • Download

Lines Matching refs:pf

145   static void initBuf(byte[] buf, int w, int pitch, int h, int pf, int flags)  in initBuf()  argument
147 int roffset = TJ.getRedOffset(pf); in initBuf()
148 int goffset = TJ.getGreenOffset(pf); in initBuf()
149 int boffset = TJ.getBlueOffset(pf); in initBuf()
150 int aoffset = TJ.getAlphaOffset(pf); in initBuf()
151 int ps = TJ.getPixelSize(pf); in initBuf()
154 if (pf == TJ.PF_GRAY) { in initBuf()
170 if (pf == TJ.PF_CMYK) { in initBuf()
214 static void initIntBuf(int[] buf, int w, int pitch, int h, int pf, int flags) in initIntBuf() argument
216 int rshift = TJ.getRedOffset(pf) * 8; in initIntBuf()
217 int gshift = TJ.getGreenOffset(pf) * 8; in initIntBuf()
218 int bshift = TJ.getBlueOffset(pf) * 8; in initIntBuf()
219 int ashift = TJ.getAlphaOffset(pf) * 8; in initIntBuf()
246 static void initImg(BufferedImage img, int pf, int flags) throws Exception { in initImg() argument
259 initIntBuf(buf, img.getWidth(), pitch, img.getHeight(), pf, flags); in initImg()
265 initBuf(buf, img.getWidth(), pitch, img.getHeight(), pf, flags); in initImg()
296 static int checkBuf(byte[] buf, int w, int pitch, int h, int pf, int subsamp, in checkBuf() argument
298 int roffset = TJ.getRedOffset(pf); in checkBuf()
299 int goffset = TJ.getGreenOffset(pf); in checkBuf()
300 int boffset = TJ.getBlueOffset(pf); in checkBuf()
301 int aoffset = TJ.getAlphaOffset(pf); in checkBuf()
302 int ps = TJ.getPixelSize(pf); in checkBuf()
309 if (pf == TJ.PF_GRAY) in checkBuf()
312 if (pf == TJ.PF_CMYK) { in checkBuf()
396 if (pf == TJ.PF_CMYK) { in checkBuf()
422 static int checkIntBuf(int[] buf, int w, int pitch, int h, int pf, in checkIntBuf() argument
425 int rshift = TJ.getRedOffset(pf) * 8; in checkIntBuf()
426 int gshift = TJ.getGreenOffset(pf) * 8; in checkIntBuf()
427 int bshift = TJ.getBlueOffset(pf) * 8; in checkIntBuf()
428 int ashift = TJ.getAlphaOffset(pf) * 8; in checkIntBuf()
500 static int checkImg(BufferedImage img, int pf, int subsamp, in checkImg() argument
513 return checkIntBuf(buf, img.getWidth(), pitch, img.getHeight(), pf, in checkImg()
520 return checkBuf(buf, img.getWidth(), pitch, img.getHeight(), pf, subsamp, in checkImg()
629 static int compTest(TJCompressor tjc, byte[] dstBuf, int w, int h, int pf, in compTest() argument
639 int size = 0, ps, imgType = pf; in compTest()
642 pf = biTypePF(imgType); in compTest()
644 pfStrLong = pfStr + " (" + PIXFORMATSTR[pf] + ")"; in compTest()
646 pfStr = PIXFORMATSTR[pf]; in compTest()
649 ps = TJ.getPixelSize(pf); in compTest()
653 initImg(img, pf, flags); in compTest()
661 initBuf(srcBuf, w, w * ps, h, pf, flags); in compTest()
662 tjc.setSourceImage(srcBuf, 0, 0, w, 0, h, pf); in compTest()
699 int w, int h, int pf, String baseName, int subsamp, in decompTest() argument
706 int temp1, temp2, imgType = pf; in decompTest()
711 pf = biTypePF(imgType); in decompTest()
713 pfStrLong = pfStr + " (" + PIXFORMATSTR[pf] + ")"; in decompTest()
715 pfStr = PIXFORMATSTR[pf]; in decompTest()
757 dstBuf = tjd.decompress(scaledWidth, 0, scaledHeight, pf, flags); in decompTest()
768 if ((bi && checkImg(img, pf, subsamp, sf, flags) == 1) || in decompTest()
770 scaledWidth * TJ.getPixelSize(pf), scaledHeight, pf, in decompTest()
780 int w, int h, int pf, String baseName, int subsamp, in decompTest() argument
792 decompTest(tjd, jpegBuf, jpegSize, w, h, pf, baseName, subsamp, in decompTest()
810 for (int pf : formats) { in doTest()
811 if (pf < 0) continue; in doTest()
819 size = compTest(tjc, dstBuf, w, h, pf, baseName, subsamp, 100, in doTest()
821 decompTest(tjd, dstBuf, size, w, h, pf, baseName, subsamp, flags); in doTest()
822 if (pf >= TJ.PF_RGBX && pf <= TJ.PF_XRGB && !bi) { in doTest()
824 decompTest(tjd, dstBuf, size, w, h, pf + (TJ.PF_RGBA - TJ.PF_RGBX), in doTest()