[Bug 747216] New: applemedia: CVPixelBufferLockBaseAddress is done too early

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Apr 1 20:02:40 PDT 2015


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

            Bug ID: 747216
           Summary: applemedia: CVPixelBufferLockBaseAddress is done too
                    early
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: All
            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: ---

In gst_core_media_buffer_wrap_pixel_buffer we're performing
CVPixelBufferLockBaseAddress. Apple documentation says:

"When accessing pixel data with the GPU, locking is not necessary and can
impair performance."

In pipelines where the CVPixelBuffer will be passed from one Apple element to
another, this might harm performance, as we might be locking the pixel buffer
into CPU memory needlessly.

---

It seems to be possible to solve this with a custom GstAllocator that'll store
the CVPixelBuffer and lock only upon mapping.

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