[Bug 739681] New: GstGL: let applications use the glimagesink's output texture

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Nov 5 11:10:43 PST 2014


https://bugzilla.gnome.org/show_bug.cgi?id=739681
  GStreamer | gst-plugins-bad | git

           Summary: GstGL: let applications use the glimagesink's output
                    texture
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: Normal
         Component: gst-plugins-bad
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: julien.isorce at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


glimagesink should provide api to retrieve the current buffer to render. An app
will call this api to use the texture in its own GL scene.

Currently we have api to share texture between the 2 gl contexts. The one from
gstgl and the one from the application. See "gst_context_set_gl_display" +
"gst_context_new ("gst.gl.app_context", ...)" + "gst_gl_context_new_wrapped" +
"gst_gl_display_new(disp)" .

So this is already awesome but we could go further!

Indeed we are currently forced to use one of those 2 ways:

1: Use fakesink or appsink, and do custom handling to pass to the app. And this
way we loose benefit of gstvideosink. Also this way we still have to put a
gleffects or glcolorscale element before those sinks in order to have
gstglbufferpool.

2: The other working way is to implement custom sink in the app, like webkit
does for example, with webkitvideosink. Though sometimes it is fine to do it to
have more granularity, ex: cluttersink with its gstgl patches.


But there would be a third way which would be enough in most of the case, and
much more easy to setup for users:

We should be able to just use videotestsrc ! glimagesink and retrieve last
buffer through for example an action signal.
When the app connect to this signal, then glimagesink would just not create an
internal window.
The app will trigger this signal when it's ready to render, and will call
gst_video_gl_texture_upload_meta_upload right after.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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