Re: Re: YUV to RGB

Philip Heron <[email protected]>
Newsgroups gmane.comp.multimedia.ogg.theora.devel
Message-ID <[email protected]>
wesley kiriinya wrote:
> Hi,
>  I managed to store RGBs in the YUVs then encode the frames (with RGB instead of YUV), but it seems like because of the compression the decoded frames don't look good. I guess the compression would have to be lossless.
> In case you are wondering how the RGB could fit in YUV, I had to adjust the size of the original YUV frames to be bigger in order to accommodate the extra RGB data.

You could try mapping the RGB channels so that they better match what 
the encoder expects. Put G where the encoder expects Y, and scale the 
R+B channels so they match the size of U+V. This would give you better 
results than simply encoding the raw RGB data.

-Phil
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.