Re: Re: YUV to RGB

Ralph Giles <[email protected]>
Newsgroups gmane.comp.multimedia.ogg.theora.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.