[VDPAU] How is supposed to provide the VdpPresentationQueueTargetCreateX11 func
José Hiram Soltren
jsoltren at nvidia.com
Wed Feb 19 09:07:34 PST 2014
Hi Emil,
On 02/07/2014 07:45 AM, Emil Velikov wrote:> On 07/02/14 07:59, Rémi
Denis-Courmont wrote:
>> Hello,
>>
>> On Fri, 07 Feb 2014 02:16:22 +0000, Emil Velikov
>> <emil.l.velikov at gmail.com>
>> wrote:
>>> - Then the documentation continues with the typedef of
>>> VdpPresentationQueueTargetCreateX11 but dose not indicate, who should
>>> provide the function or what it's actual name should be.
>>
>> That function is obtained from VdpGetProcAddress like the other ones. The
>> libvdpau frontend has no clue how to backend-specific render GPU surfaces
>> to X11. This must be provided by the backend of course.
>>
> Hmm... now it makes more sense.
>
>>> From a quick search I did not find even a single user of the latter,
>>> that could provide some clarity on the subject.
>>
>> I know it's used in VLC, and a quick search show it is used by gst-vdpau
>> and DirectFB as well. I believe it is used in mplayer too.
Yes, please have a look at the mplayer source, specifically libvo/vo_vdpau.c.
This code initializes the vdp_presentation_queue_target_create_x11 function
pointer in win_x11_init_vdpau_procs(), and uses it in
win_x11_init_vdpau_flip_queue().
The mplayer example is the most clear example of VDPAU usage we have. Note that
we developed vo_vdpau.c in tandem with the initial VDPAU implementation effort.
Thanks,
--José
> Seems like I would need to freshen up those "search" skills of mine.
>
> Thank for the quick reply Rémi
>
> Regards,
> -Emil
>
>> Regards,
>>
>
> _______________________________________________
> VDPAU mailing list
> VDPAU at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/vdpau
>
More information about the VDPAU
mailing list