GNOME Bugzilla – Bug 783085
Need API to know allocated buffers from upstream
Last modified: 2018-11-03 12:41:22 UTC
We are working on implementing DMA support in gst-omx. When acting as a DMA importer, an element needs to know beforehand which buffers have been allocated upstream so it can call OMX_UseBuffer() on each allocated buffer it's going to use. We currently solved this using a custom downstream event sent in gst_v4l2src_decide_allocation() but it would be good to have a proper solution for this. We could add a "allocated-buffers" serialized downstream event which is sent when buffers are (re)allocated before starting to use them. It would include a GPtrArray of GstBuffers. We should probably be clear in the doc on what can and cannot be done with those buffers. Something like "Those buffers should not be modified in anyway." Thoughts?
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/238.