[Bug 704083] Improve GstBuffer/GstVideoFrame mappings for HW surfaces

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Nov 20 08:27:03 PST 2014


https://bugzilla.gnome.org/show_bug.cgi?id=704083
  GStreamer | gstreamer (core) | git

--- Comment #23 from Gwenole Beauchesne <gb.devel at gmail.com> 2014-11-20 16:26:58 UTC ---
(In reply to comment #20)
> (In reply to comment #0)
> > Hi, in context of hardware surfaces, a GstBuffer map would imply a surface read
> > (download) or write (upload) only. So, implementing GST_MAP_READWRITE might be
> > sub-optimal. Indeed, for correctness, RW mappings should be implemented as
> > surface download on map, and surface upload/commit on unmap.
> 
> I think the GLMemory design is smarter then this and that it should serve as
> inspiration. Basically, I think unmap() should never do anything other then
> setting flags or state.

I think ::unmap() should hw unmap if the companion ::map() hook performed a hw
map for consistency, symmetrical behaviourness and actually catching up bugs.
e.g. appsink or other elements that use data mapped from gst buffer after they
are normally gone, i.e. after unmap. This occurred in EFL context in the past.

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