[XviD-devel] XviDImage to Image
Stuart Scott
stuart at vuetec.com
Fri Oct 26 05:42:33 CEST 2007
I've modified it a little to make this more simple. The latest can be
found at
http://monitor.vuetec.com/sscott/jxvid.tar.gz
After you've decoded a frame you can simply pass the int array returned
by XviDImage.getRGB() to the constructor of BufferedImage using type
BufferedImage.TYPE_INT_RGB.
Rather than create a new BufferedImage for each frame you can call
BufferedImage.getRaster().setDataElements() passing it the same int array.
Stuart
Sérgio Ricardo Palm Willrich wrote:
> Hi,
>
> I'm starting with java and XviD.
>
> I would like to know if it's possible convert a XviDImage ou Yv12Image to a JPEG or something else.
>
> On the example I saw that it save as TGA, does anybody know what I have to do to save as JPEG?
>
> Thanks!!
> _______________________________________________
> XviD-devel mailing list
> XviD-devel at xvid.org
> http://list.xvid.org/mailman/listinfo/xvid-devel
>
More information about the XviD-devel
mailing list