[theora-dev] Re: YUV to RGB
Ralph Giles
giles at xiph.org
Tue Jan 15 10:38:15 PST 2008
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
More information about the theora-dev
mailing list