GNOME Bugzilla – Bug 698358
Add HW decoder support back
Last modified: 2013-04-24 15:31:54 UTC
Created attachment 241894 [details] [review] [clutter-gst] Add HW decoder support back Hi, this is a minimal patch to bring HW support back to clutter-gst 2.0 branch, thus also including the previous clutter-gst 1.9.92 release. For GStreamer 1.2, we will have yet another mechanism to deal with HW surfaces but GStreamer 1.0 APIs are still around for now. Detecting CLUTTER_GST_SURFACE may be refined/improved by checking for "video/x-surface" caps instead. Concerning the GstSurfaceMeta API, we can also consider exposing "x11-pixmap" instead of plain GL textures. This is left for a future patch. "opengl" tag has better coverage as this also allows support for AMD/XvBA based platforms. Otherwise, "x11-pixmap" would be fine for Intel/VA-API or NVIDIA/VDPAU too.
Note: for clutter-gst/cogl git master, we could consider only supporting the newer GStreamer 1.2.x APIs, if you like. You also have the opportunity right now to voice your opinion on what would be the best API in to suit your rendering pipeline. I'd tend to expose EGLClientBuffer + metadata and let the renderer sink handle those, but others would prefer handling EGLImage (thus implying extra work to manage with EGL contexts), and others would also be stuck with support plain RGBA GL texture ids too.
Pushed to the 2.0 branch. Thanks!