nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   VDPAU and OpenGL Textures? (http://www.nvnews.net/vbulletin/showthread.php?t=123424)

bwheaton 11-20-08 02:40 PM

VDPAU and OpenGL Textures?
 
Will VDPPAU be able to provide decoded frames and presentation times as OpenGL Textures at some point? Or decode directly to a provided texture object?

I haven't read through the API, but the online API docs don't hint at this ability.

Regards,

Bruce Wheaton

Dragoran 11-20-08 04:06 PM

Re: VDPAU and OpenGL Textures?
 
It can output to X pixmaps, you can use GLX_texture_from_pixmap to create textures out of them, see: http://lists.freedesktop.org/archive...er/040489.html

bwheaton 11-24-08 01:20 PM

Re: VDPAU and OpenGL Textures?
 
Thanks, and pardon my ignorance, but can X pixmaps be resident on the GPU? I can't tolerate a round-trip with the videos I have to deal with.

Bruce

AaronP 11-24-08 01:52 PM

Re: VDPAU and OpenGL Textures?
 
Yes, that's the whole point of GLX_EXT_texture_from_pixmap.

Thunderbird 11-24-08 03:04 PM

Re: VDPAU and OpenGL Textures?
 
I guess when you mix vdpau with opengl using glx_ext_texture_from_pixmap a memory copy needs to happen. Is it possible to prevent this? A friend of mine is considering using nvidia hardware in a broadcast product in which he in the end wants to render 4 720p streams simultaneously. I know right now vdpau offers only one stream, but would the hardware be fast enough for this? (a pci-express 2.0 link would likely be required for the bandwidth)

Stephen Warren 11-24-08 06:54 PM

Re: VDPAU and OpenGL Textures?
 
Quote:

Originally Posted by Thunderbird (Post 1854586)
I guess when you mix vdpau with opengl using glx_ext_texture_from_pixmap a memory copy needs to happen. Is it possible to prevent this? A friend of mine is considering using nvidia hardware in a broadcast product in which he in the end wants to render 4 720p streams simultaneously. I know right now vdpau offers only one stream, but would the hardware be fast enough for this? (a pci-express 2.0 link would likely be required for the bandwidth)

Yes, at the moment a copy needs to be performed, from the VDPAU output surface to the X pixmap that TFP uses. We're aware this isn't as perfect as it could be. Also note that there's currently no synchronization between VDPAU performing the copy and TFP reading the X pixmap.

As an aside, it sounds like your friend is creating a professional product. I'd advise him/her to contact the NVIDIA professional services group to discuss his/her requirements. That group may be able to help prioritize any engineering effort for his/her project.

jamesjones 11-26-08 03:44 PM

Re: VDPAU and OpenGL Textures?
 
Also note the required copy operation would be from video memory -> video memory, which is VERY fast and wouldn't use any PCI-E bus or system memory bandwidth.

LinhNguyen 01-16-09 12:20 AM

Re: VDPAU and OpenGL Textures?
 
Hi jamesjones,
Do we have any example for GLX texture from pixmap? We are moving our karaoke player box to HD box, we need to render some special opengl effect with menu and karaoke lyric over HD image. Please give some snippet code examples on rendering vdpau to X pixmap.

thank advance,


All times are GMT -5. The time now is 08:46 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.