[Theora-dev] question from beginner (YCbCr to RGB)
Ralph Giles
giles at xiph.org
Thu Mar 17 18:22:23 PST 2005
On Tue, Mar 15, 2005 at 10:06:42AM +0500, LS PLOTINKA wrote:
> I need help with convert yuv_buffer data (YCbCr) to RGB without SDL.
You need to loop over each row of the video buffer separately, and
advance the Y and U,V pointers by their respective strides between
rows. You're also not taking into account the chroma subsampling:
the CR and CB values may have only 1/2 or 1/4 the number of pixels
of the Y and RGB values.
HTH,
-r
More information about the Theora-dev
mailing list