[PyOpenGL-Users] q - glDrawPixels with YCbCr data?
Brought to you by:
mcfletch
From: David M. <re...@or...> - 2007-11-26 18:53:18
|
Hi all, I've been developing a python app using the FLTK widgets (via pyFLTK). A critical part of the app is drawing video frames onto a GL window via glDrawPixels. (FLTK offers very basic support for GL windows, via its Fl_GL_Window class). At the moment, it's working nicely as long as I pass the pixels data in RGB format. But video editing works mainly with YCbCr format data, and converting the data into RGB format is very costly for CPU cycles - takes around 20ms on my 2GHz box. I've been told on #opengl that there is a way to set up an GL window so that if passed YCbCr data, it will display with correct colours. I'm a complete n00b with all things GL, I haven't got weeks to meditate on the Red Book etc. Is there a simple straightforward way via PyOpenGL to set up a GL window so that it can work with YCbCr data passed in via glDrawPixels? All help appreciated Cheers David |