YUV video rendering

  • Follow


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
0
Reply David 9/7/2009 4:10:35 PM

"David Uebler" <dave5689@gulli.com> wrote in message 
news:y82dnepPOpLmrTjXnZ2dnUVZ8sxi4p2d@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?
>
> 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 

0
Reply Charles 9/7/2009 4:24:33 PM


On Sep 7, 6:24=A0pm, "Charles E Hardwidge" <bo...@invalid.invalid>
wrote:
> "David Uebler" <dave5...@gulli.com> wrote in message
>
> news:y82dnepPOpLmrTjXnZ2dnUVZ8sxi4p2d@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.tx=
t
>

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.

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

http://www.topaz3d.com/
0
Reply fungus 9/7/2009 4:42:05 PM

On Mon, 07 Sep 2009 09:42:05 -0700, fungus wrote:

> On Sep 7, 6:24 pm, "Charles E Hardwidge" <bo...@invalid.invalid> wrote:
>> "David Uebler" <dave5...@gulli.com> wrote in message
>>
>> news:y82dnepPOpLmrTjXnZ2dnUVZ8sxi4p2d@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 ;)
0
Reply David 9/7/2009 11:27:38 PM

David,

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

Akhil
0
Reply pro 9/10/2009 6:03:27 AM

4 Replies
704 Views

(page loaded in 0.081 seconds)

Similiar Articles:













7/20/2012 4:12:18 PM


Reply: