[Bug 752961] New: glupload: Raw upload could be optimized using a BufferPool

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Jul 28 06:15:33 PDT 2015


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

            Bug ID: 752961
           Summary: glupload: Raw upload could be optimized using a
                    BufferPool
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: nicolas.dufresne at collabora.co.uk
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Currently when doing raw upload, we create a new GstBuffer and set of new
texture every time we receives an input. This could be slightly optimized by
reusing the textures through a BufferPool.

Note that a mechanism would be needed to properly attach the mapped input
buffer so the buffer pool can detach it when the buffer comes back to the pool.
What I would saggest is to add a method to attach the user_data/GDestroyNotify
pair as qdata to each memory using a well known name. Then the pool reset()
method could remove this qdata on each memory. The destroy notify would also be
called if the memory is destroyed outside of the buffer.

-- 
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