[Bug 794817] msdk: enc: Add Dmabuf Import support

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Apr 17 09:11:23 UTC 2018


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

--- Comment #6 from Guillaume Desmottes <gdesmott at gnome.org> ---
Our use case in gst-omx is to ensure that an input port has as many buffers
allocated that the output of its upstream component (to prevent buffers
starvation).

Here is what I have so far:
https://gitlab.collabora.com/cassidy/gst-omx/commit/58bf10b30c39bff0e0f8d1e59d086df459e8ba18

Basically I use a custom downstream event that an element can send once its
buffers have been allocated. This event contains the pool (so you can fetch all
the allocated fds for your use case) and the number of allocated buffers (to
cover cases where upstream isn't using a pool and we are just interested in the
number of buffers and not their content).

It's really a WIP experimentation patch so far. Nothing is set in the stone and
I'm not even sure that's the proper way to fix my use case. I hope to find some
time to resume this work soon.

Would this kind of event work for you as well?

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