[Bug 769293] vaapi/gl : Uploading to GL texture optimization

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Sep 16 16:06:26 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=769293

--- Comment #14 from Víctor Manuel Jáquez Leal <vjaquez at igalia.com> ---
aha!

The problem is a design one in gstreamer-vaapi, since it assumes that every
buffer/surface will have associated, one and only one, GL texture, though one
GL texture can be associated to several surfaces.

But, in the case of glimagesink, it can provides several GL textures, so the
GstVaapiTexture (a wrapper for the gl texture) is created every time, since the
texture id doesn't correspond to the one in the meta.

Hyunjun's hash map approach is nice, since it decouples the GstVaapiTexture
association with the meta, but still need extra code clean up, if we wan to
ride of the GstVaapiTexture structure from the GLTextureUpload meta.

Still, lookup in a hash map is a bit more expensive than just derreferencing.

Also, we need to keep the check of "the same display".

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list