[Bug 747216] applemedia: implement GstAppleCoreVideoMemory

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Jul 14 10:15:49 PDT 2015


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

--- Comment #32 from Ilya Konstantinov <ilya.konstantinov at gmail.com> ---
Created attachment 307418
  --> https://bugzilla.gnome.org/attachment.cgi?id=307418&action=edit
applemedia: implement GstAppleCoreVideoMemory

Implement a new memory type wrapping CVPixelBuffer.

There are two immediate advantages:
 a) Make the GstMemory itself retain the CVPixelBuffer. Previously,
    the containing GstBuffer was solely responsible for the lifetime of
    the backing CVPixelBuffer.

    With this change, we remove the GST_MEMORY_FLAG_NO_SHARE so that
    GstMemory objects be referenced by multiple GstBuffers (doing away
    with the need to copy.)

  b) Delay locking CVPixelBuffer into CPU memory until it's actually
     mapped -- possibly never.

The CVPixelBuffer object is shared among references, shares and
(in planar formats) planes, so a wrapper GstAppleCoreVideoPixelBuffer
structure was introduced to manage locking.

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


More information about the gstreamer-bugs mailing list