[Bug 773433] video-format: add API to check if a video format is "sparse"

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Nov 17 09:17:37 UTC 2016


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

--- Comment #15 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
Silently giving the "x" channel to OpenCV as if it contains something
meaningful does not seem like a good idea. All this should probably be done on
a per-element basis (when the element knows that it's fine to pass the "x"
component there), and in a generic way per format or something in the helper
functions.

Note that you can get the same information right now by getting the number of
components for the format (3) and the pixel stride (4). And by getting the
component offsets you know where the "x" or "A" components would be.


I also assume that for some filters it matters if it's RGBA or BGRA (i.e. they
do different things with R and B). So there generally seems to be some more
fundamental problem here.

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