atom feed5 messages in net.java.dev.jai-imageio.interestRe: Why is native library required?
FromSent OnAttachments
jai-...@javadesktop.orgFeb 13, 2008 8:20 am 
jai-...@javadesktop.orgFeb 13, 2008 11:27 am 
jai-...@javadesktop.orgFeb 13, 2008 1:02 pm 
jai-...@javadesktop.orgFeb 13, 2008 6:06 pm 
jai-...@javadesktop.orgMar 4, 2008 7:53 am 
Subject:Re: Why is native library required?
From:jai-...@javadesktop.org (jai-@javadesktop.org)
Date:Feb 13, 2008 11:27:48 am
List:net.java.dev.jai-imageio.interest

1. Functionality

These will not work if native libraries are absent:

12 -bit lossy JPEG, lossless JPEG, JPEG-LS

2. Acceleration

These *will* work if native libraries are absent but will fall back to either a
Java implementation in JAI Image I/O Tools or to the implementation in Java SE.

All JPEG variants, JPEG2000, PNG, TIFF bilevel encodings.

I am using jai-imageio to convert from tif to jpg. It seems to work quite well with or without the native library. The library contains acceleration routines for JPG encoding/decoding as far as I know but my code doesn't seem to require it.

What are the scenarios when the native library is required?

Here is an example of how I am using the API: File tifFile = new File("image.tif"); BufferedImage tif = ImageIO.read(tifFile); File jpgFile = new File("image.jpg"); ImageIO.write(tif, "jpeg", jpgFile);

Thanks

[Message sent by forum member 'bpb' (bpb)]

http://forums.java.net/jive/thread.jspa?messageID=258816