[Bug 755072] vaapi: expose memory:DMABuf capsfeature

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Jun 3 14:53:17 UTC 2016


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

--- Comment #33 from Julien Isorce <julien.isorce at gmail.com> ---
Great ! I guess you are now just missing the try map.

If you cannot do the try map in decide_allocation then do it much earlier by
trying to create a vasurface for a fixed size, exporting it and map it for a
fixed set of formats: {YUY2, I420, RGBx, BGRx, RGBA, BGRA}.
It will give you a set of valid formats to filter caps negotiation or to adjust
can_try_dmabuf flag.

Better would be to try map the real vasurface but in the branch I did (see
early comments) it was painful to implement (the part to fallback to meta) and
hard to maintain for long term. (At least it was the case before your several
great refactoring)

Later I can add
GST_VIDEO_CAPS_MAKE_WITH_FEATURES(GST_CAPS_FEATURE_MEMORY_DMABUF, "{ YUY2,
I420, RGBx, BGRx, RGBA, BGRA }")
and the try map routine will only keep formats that failed to map.

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