Hi all, how can I convert a RGB (24 or 32) image I'm getting from a webcam for example to YUV to compress it with theora, decompress it and convert it back to RGB to draw it? Any suggestions? Best regards, Florian (Stuttgart, GERMANY)
Maybe you should read this: fourcc.org/index.php?http://www.fourcc.org/fccyvrgb.php And some webcam drivers allow for YUV output (see V4L api). There might also be a library doing this, but maybe you can program this yourself. Hoop this helps, Bram On Wed, 9 Feb 2005 16:45:25 +0100, Florian Geyer <florian-geyer@web.de> wrote:> Hi all, > how can I convert a RGB (24 or 32) image I'm getting from a webcam for > example to YUV to compress it with theora, decompress it and convert it back > to RGB to draw it? > > Any suggestions? > > Best regards, > Florian > (Stuttgart, GERMANY) > > _______________________________________________ > Theora mailing list > Theora@xiph.org > lists.xiph.org/mailman/listinfo/theora >
Most of the conversions you will need can be found in this code... svn.xiph.org/trunk/oggdsf/src/lib/codecs/theora/filters/dsfTheoraEncoder/TheoraEncodeInputPin.cpp You'll need to make a few changes appropriate to your use. Zen. ----- Original Message ----- From: "Florian Geyer" <florian-geyer@web.de> To: <theora@xiph.org> Sent: Wednesday, February 09, 2005 11:45 PM Subject: [Theora] Converting RGB YUV and back> Hi all, > how can I convert a RGB (24 or 32) image I'm getting from a webcam for > example to YUV to compress it with theora, decompress it and convert it > back > to RGB to draw it? > > Any suggestions? > > Best regards, > Florian > (Stuttgart, GERMANY) > > _______________________________________________ > Theora mailing list > Theora@xiph.org > lists.xiph.org/mailman/listinfo/theora > > >