[theora-dev] Re: YUV to RGB
wesley kiriinya
kiriinya2000 at yahoo.com
Tue Jan 15 12:56:24 PST 2008
Instead of storing YUV in the stream I would store RGB values. The y_width and uv_width would be the same. I am only doing this so that I can play the files in my video game i.e. the ogg files won't be intended for use by another application that plays ogg files because the application would not know that the YUV is actually RGB. Can that work?
Regards.
Ralph Giles <giles at xiph.org> wrote: On Tue, Jan 15, 2008 at 05:28:43AM -0800, wesley kiriinya wrote:
> Using the GPU is not currently an option. I'm also targeting PCs that don't have GPUs.
> I'm thinking of creating a utility that will read an OGG file, get the theora stream, convert the YUV to RGB and save the RGB instead of YUV to the OGG file. In this case the YUV read out will be RGB. Due to the real time nature of the application I'm developing simply reading the RGB will be better.
> In my mind this sounds simple enough. I'm surprised that no such utility exists or I'm I wrong?
If you're thinking of storing the video in Ogg compressed with the
theora codec, it will be stored in YUV. That's the only format theora
supports internally.
> Also does SDL convert YUV to RGB or is YUV data used directly as one normally uses RGB?
SDL has a 'YUVOverlay' interface which does the YUV to RGB conversion
for display.
-r
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/theora-dev/attachments/20080115/69bc96d2/attachment.htm
More information about the theora-dev
mailing list