Lines Matching refs:tjc
629 static int compTest(TJCompressor tjc, byte[] dstBuf, int w, int h, int pf, in compTest() argument
658 tjc.setSourceImage(img, 0, 0, 0, 0); in compTest()
662 tjc.setSourceImage(srcBuf, 0, 0, w, 0, h, pf); in compTest()
666 tjc.setSubsamp(subsamp); in compTest()
667 tjc.setJPEGQuality(jpegQual); in compTest()
671 YUVImage yuvImage = tjc.encodeYUV(pad, flags); in compTest()
682 tjc.setSourceImage(yuvImage); in compTest()
687 tjc.compress(dstBuf, flags); in compTest()
688 size = tjc.getCompressedSize(); in compTest()
799 TJCompressor tjc = null; in doTest() local
807 tjc = new TJCompressor(); in doTest()
819 size = compTest(tjc, dstBuf, w, h, pf, baseName, subsamp, 100, in doTest()
832 if (tjc != null) tjc.close(); in doTest()
836 if (tjc != null) tjc.close(); in doTest()
844 TJCompressor tjc = null; in bufSizeTest() local
848 tjc = new TJCompressor(); in bufSizeTest()
864 tjc.setSourceImage(srcBuf, 0, 0, w, 0, h, TJ.PF_BGRX); in bufSizeTest()
865 tjc.setSubsamp(subsamp); in bufSizeTest()
866 tjc.setJPEGQuality(100); in bufSizeTest()
868 tjc.encodeYUV(dstImage, 0); in bufSizeTest()
870 tjc.compress(dstBuf, 0); in bufSizeTest()
880 tjc.setSourceImage(srcBuf, 0, 0, h, 0, w, TJ.PF_BGRX); in bufSizeTest()
882 tjc.encodeYUV(dstImage, 0); in bufSizeTest()
884 tjc.compress(dstBuf, 0); in bufSizeTest()
893 if (tjc != null) tjc.close(); in bufSizeTest()
896 if (tjc != null) tjc.close(); in bufSizeTest()