Main Page | Report this Page
Computers Forum Index  »  Computer - Graphics - API (Opengl)  »  YUV video rendering...
Page 1 of 1    

YUV video rendering...

Author Message
David Uebler...
Posted: Mon Sep 07, 2009 8:10 pm
Guest
Hi there,

I have to render YUV Pixel data with OpenGL.
As far as I know, there is no direct support for this (or at least only
on macs)

What would be the best way to transform it into RGB-data?
Possibly using Hardware acceleration?

Or is there some other way than rgb -> texture -> quad?

Thanks for any advice!

Greetings, Dave
 
fungus...
Posted: Mon Sep 07, 2009 8:10 pm
Guest
On Sep 7, 6:24 pm, "Charles E Hardwidge" <bo... at (no spam) invalid.invalid>
wrote:
Quote:
"David Uebler" <dave5... at (no spam) gulli.com> wrote in message

news:y82dnepPOpLmrTjXnZ2dnUVZ8sxi4p2d at (no spam) giganews.com...

Hi there,

I have to render YUV Pixel data with OpenGL.
As far as I know, there is no direct support for this (or at least only
on macs)

What would be the best way to transform it into RGB-data?
Possibly using Hardware acceleration?


Why can't you transform it on the main CPU before uploading
to the graphics card? Pentiums are "hardware" too.

Quote:
Or is there some other way than rgb -> texture -> quad?

EXT_color_matrix:http://www.opengl.org/registry/specs/SGI/color_matrix.txt


Almost no graphics cards support that extension....

Quote:
GLSL shader:http://www.fourcc.org/source/YUV420P-OpenGL-GLSLang.c


If you insist on doing it with the graphics card then I
think that's the only option.

--
<\___/>
/ O O \
\_____/ FTB.

http://www.topaz3d.com/
 
Charles E Hardwidge...
Posted: Mon Sep 07, 2009 8:24 pm
Guest
"David Uebler" <dave5689 at (no spam) gulli.com> wrote in message
news:y82dnepPOpLmrTjXnZ2dnUVZ8sxi4p2d at (no spam) giganews.com...
Quote:
Hi there,

I have to render YUV Pixel data with OpenGL.
As far as I know, there is no direct support for this (or at least only
on macs)

What would be the best way to transform it into RGB-data?
Possibly using Hardware acceleration?

Or is there some other way than rgb -> texture -> quad?

EXT_color_matrix:
http://www.opengl.org/registry/specs/SGI/color_matrix.txt

GLSL shader:
http://www.fourcc.org/source/YUV420P-OpenGL-GLSLang.c

--
Charles E Hardwidge
 
David Uebler...
Posted: Tue Sep 08, 2009 3:27 am
Guest
On Mon, 07 Sep 2009 09:42:05 -0700, fungus wrote:

Quote:
On Sep 7, 6:24 pm, "Charles E Hardwidge" <bo... at (no spam) invalid.invalid> wrote:
"David Uebler" <dave5... at (no spam) gulli.com> wrote in message

news:y82dnepPOpLmrTjXnZ2dnUVZ8sxi4p2d at (no spam) giganews.com...

Hi there,

I have to render YUV Pixel data with OpenGL. As far as I know, there
is no direct support for this (or at least only on macs)

What would be the best way to transform it into RGB-data? Possibly
using Hardware acceleration?


Why can't you transform it on the main CPU before uploading to the
graphics card? Pentiums are "hardware" too.

Or is there some other way than rgb -> texture -> quad?

EXT_color_matrix:http://www.opengl.org/registry/specs/SGI/
color_matrix.txt


Almost no graphics cards support that extension....

GLSL shader:http://www.fourcc.org/source/YUV420P-OpenGL-GLSLang.c


If you insist on doing it with the graphics card then I think that's the
only option.

Thanks for your answers!
I'll see if I get it to work, and whine some more if it won't Wink
 
pro-grammer...
Posted: Thu Sep 10, 2009 6:03 am
Guest
David,

I had to do the same thing. The GLSL shader is the way to go.

Akhil
 
 
Page 1 of 1    
All times are GMT
The time now is Wed Dec 02, 2009 12:41 am