Re: yuv and rgb
- From: Erik Mouw <J A K Mouw ITS TUDelft NL>
- To: Matias Freytes <mfreytes gtwing efn uncor edu>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: yuv and rgb
- Date: Wed, 25 Oct 2000 19:35:44 +0200
On Wed, Oct 25, 2000 at 02:34:46PM -0300, Matias Freytes wrote:
I'm working on video applications and would like to know
if there are any gdk/gtk routines for converting YUV formats to
RGB formats, particularly YUV420 to the current RGB format (16bpp
565/555, 24bpp, ....) as detected by GdkRGB. I know XFree4
supports Xv extensions for some cards, but I'd like sthg more
portable.
Have a look at the conversion routines in mpeg2encode/mpeg2decode
(check www.mpeg.org for the source). They are not fast, but at least
they are correct. Going from YUV420 to RGB goes like YUV420 --> YUV422
--> YUV444 --> RGB. You can speed things up by merging some of the
conversions steps, but I think you should start with the basic
routines. It's easier to get something working fast than to get
something fast working.
Erik
--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands
Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J A K Mouw its tudelft nl
WWW: http://www-ict.its.tudelft.nl/~erik/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]