After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 793270 - videopool: define GST_BUFFER_POOL_OPTION_VIDEO_DMABUF
videopool: define GST_BUFFER_POOL_OPTION_VIDEO_DMABUF
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other All
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks: 792034 793271
 
 
Reported: 2018-02-07 18:21 UTC by Víctor Manuel Jáquez Leal
Modified: 2018-11-03 12:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
videopool: define GST_BUFFER_POOL_OPTION_VIDEO_DMABUF (1.07 KB, patch)
2018-02-07 18:21 UTC, Víctor Manuel Jáquez Leal
none Details | Review

Description Víctor Manuel Jáquez Leal 2018-02-07 18:21:29 UTC
See commit description.

Though I'm not sure if this is the correct place to define the macro, neither
if it is expected to use dmabuf only for video.
Comment 1 Víctor Manuel Jáquez Leal 2018-02-07 18:21:35 UTC
Created attachment 368083 [details] [review]
videopool: define GST_BUFFER_POOL_OPTION_VIDEO_DMABUF

In order to know if a video buffer pool can produce dmabuf-based
buffers this option can be configured and queried in buffers.
Comment 2 Nicolas Dufresne (ndufresne) 2018-02-07 18:39:31 UTC
Why do you need this ?
Comment 3 Víctor Manuel Jáquez Leal 2018-02-07 18:54:42 UTC
(In reply to Nicolas Dufresne (stormer) from comment #2)
> Why do you need this ?

to check for it when a pool with that option is required (for example bug #793271)
Comment 4 Nicolas Dufresne (ndufresne) 2018-02-07 19:01:23 UTC
Ok, don't forget about kmssink. I bet adding this option will help decision making in complex cases.

I think overall it make sense. Now, the location ... it's a hard one. So far DMABuf is only used for Video, but it should not be limited to that ... Maybe  GST_BUFFER_POOL_OPTION_DMABUF, in the base class ...

Further thinking, what always come out for Video (this one is video specific) is if there will be 1 FD or multiple FD (planar formats). Is there anyway to advertise / differentiate that ? Two options ?
Comment 5 Víctor Manuel Jáquez Leal 2018-02-20 17:10:05 UTC
(In reply to Nicolas Dufresne (stormer) from comment #4)
> Ok, don't forget about kmssink. I bet adding this option will help decision
> making in complex cases.
> 
> I think overall it make sense. Now, the location ... it's a hard one. So far
> DMABuf is only used for Video, but it should not be limited to that ...
> Maybe  GST_BUFFER_POOL_OPTION_DMABUF, in the base class ...
> 
> Further thinking, what always come out for Video (this one is video
> specific) is if there will be 1 FD or multiple FD (planar formats). Is there
> anyway to advertise / differentiate that ? Two options ?

would that be part of the future allocation meta?

Any other opinion? @tim? @slomo?
Comment 6 Nicolas Dufresne (ndufresne) 2018-02-20 18:12:25 UTC
(In reply to Víctor Manuel Jáquez Leal from comment #5)
> (In reply to Nicolas Dufresne (stormer) from comment #4)
> > Ok, don't forget about kmssink. I bet adding this option will help decision
> > making in complex cases.
> > 
> > I think overall it make sense. Now, the location ... it's a hard one. So far
> > DMABuf is only used for Video, but it should not be limited to that ...
> > Maybe  GST_BUFFER_POOL_OPTION_DMABUF, in the base class ...
> > 
> > Further thinking, what always come out for Video (this one is video
> > specific) is if there will be 1 FD or multiple FD (planar formats). Is there
> > anyway to advertise / differentiate that ? Two options ?
> 
> would that be part of the future allocation meta?

I don't really have a plan anymore. There is also the GstVideoMeta API params for ome of this that could be used. But then for my use cases, I'll need params merging for tee to still work in zero-copy.
Comment 7 Julien Isorce 2018-02-20 21:47:55 UTC
See https://bugzilla.gnome.org/show_bug.cgi?id=779146
"This meta can be added to the allocation query to indicate support for dmabuf memory"
Isn't what you need Victor ?
Comment 8 GStreamer system administrator 2018-11-03 12:03:20 UTC
-- 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/gst-plugins-base/issues/418.