[Bug 751241] New: vtdec: handle non-consecutive GstBuffer input without copying

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Jun 19 16:02:56 PDT 2015


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

            Bug ID: 751241
           Summary: vtdec: handle non-consecutive GstBuffer input without
                    copying
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Mac OS
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: ilya.konstantinov at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

CMBlockBuffer offers a model similar to GstBuffer, whereas it can consist of
multiple non-consecutive memory blocks.

Instead of using gst_buffer_map, we should:
- iterate over the GstBuffer's memories
- map the GstMemory objects individually
- create a CMBlockBufferCustomBlockSource {
   .AllocateBlock = nil,
   .FreeBlock = { wrapper function that does gst_memory_unmap + unref },
   .refCon = gst_mem
  } for each memory
- call CMBlockBufferAppendMemoryBlock, passing the mapped pointer and the
custom block source

This complements bug 751071. Possibly, this function should be moved out into
the applemedia library.

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