Lines Matching refs:tjc
636 private static int compTest(TJCompressor tjc, byte[] dstBuf, int w,
665 tjc.setSourceImage(img, 0, 0, 0, 0);
669 tjc.setSourceImage(srcBuf, 0, 0, w, 0, h, pf);
673 tjc.setSubsamp(subsamp);
674 tjc.setJPEGQuality(jpegQual);
678 YUVImage yuvImage = tjc.encodeYUV(pad, flags);
689 tjc.setSourceImage(yuvImage);
694 tjc.compress(dstBuf, flags);
695 size = tjc.getCompressedSize();
808 TJCompressor tjc = null;
816 tjc = new TJCompressor();
828 size = compTest(tjc, dstBuf, w, h, pf, baseName, subsamp, 100,
841 if (tjc != null) tjc.close();
845 if (tjc != null) tjc.close();
853 TJCompressor tjc = null;
857 tjc = new TJCompressor();
873 tjc.setSourceImage(srcBuf, 0, 0, w, 0, h, TJ.PF_BGRX);
874 tjc.setSubsamp(subsamp);
875 tjc.setJPEGQuality(100);
877 tjc.encodeYUV(dstImage, 0);
879 tjc.compress(dstBuf, 0);
889 tjc.setSourceImage(srcBuf, 0, 0, h, 0, w, TJ.PF_BGRX);
891 tjc.encodeYUV(dstImage, 0);
893 tjc.compress(dstBuf, 0);
899 if (tjc != null) tjc.close();
902 if (tjc != null) tjc.close();