[XviD-devel] XviDImage to Image
Sérgio Ricardo Palm Willrich
sergio at seventh.com.br
Fri Oct 26 18:58:48 CEST 2007
Hi Stuart,
I was using the example(XviDDecraw) to test the new version and it shows
this error:
I was using a .avi and a .xvid file to test
Exception in thread "main" java.lang.NullPointerException
at org.xvid.XviDImage.convertColourspace(XviDImage.java:60)
at org.xvid.XviDDecoder.output(XviDDecoder.java:3433)
at org.xvid.XviDDecoder.decode(XviDDecoder.java:403)
at example.XviDDecraw.main(XviDDecraw.java:217)
Have you an idea that what's should be happening ?
Thanks!!
----- Original Message -----
From: "Stuart Scott" <stuart at vuetec.com>
To: <xvid-devel at xvid.org>
Sent: Friday, October 26, 2007 12:42 AM
Subject: Re: [XviD-devel] XviDImage to Image
> 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
>>
>
> _______________________________________________
> XviD-devel mailing list
> XviD-devel at xvid.org
> http://list.xvid.org/mailman/listinfo/xvid-devel
>
--------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.15.11/1094 - Release Date: 26/10/2007
08:50
More information about the XviD-devel
mailing list