Home
last modified time | relevance | path

Searched refs:tjc (Results 1 – 3 of 3) sorted by relevance

/external/libjpeg-turbo/java/
DTJUnitTest.java629 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
[all …]
DTJExample.java373 TJCompressor tjc = new TJCompressor(); in main() local
374 tjc.setSubsamp(outSubsamp); in main()
375 tjc.setJPEGQuality(outQual); in main()
377 tjc.setSourceImage(img, 0, 0, 0, 0); in main()
379 tjc.setSourceImage(imgBuf, 0, 0, width, 0, height, TJ.PF_BGRX); in main()
380 byte[] jpegBuf = tjc.compress(flags); in main()
381 int jpegSize = tjc.getCompressedSize(); in main()
382 tjc.close(); in main()
DTJBench.java328 TJCompressor tjc; in fullTest() local
349 tjc = new TJCompressor(); in fullTest()
370 tjc.setJPEGQuality(jpegQual); in fullTest()
371 tjc.setSubsamp(subsamp); in fullTest()
391 tjc.setSourceImage(srcBuf, x, y, width, pitch, height, pf); in fullTest()
397 tjc.encodeYUV(yuvImage, flags); in fullTest()
400 tjc.setSourceImage(yuvImage); in fullTest()
402 tjc.compress(jpegBuf[tile], flags); in fullTest()
403 jpegSize[tile] = tjc.getCompressedSize(); in fullTest()