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