[Bug 746373] New fundamental type for caps - GstFlagSet

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Mar 17 20:54:18 PDT 2015


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

--- Comment #7 from Jan Schmidt <thaytan at noraisin.net> ---
Added the new API to the docs, and fixed a bug I noticed reviewing my own code.

I can't think of any sensible way to associate the bitfield with a GFlags
gtype. There's no extra space in a GValue for storing that, it makes
deserialisation harder, and means you can't use a flagset in pad template caps,
because you can't deserialise from the registry before the desired type is
loaded.

The current serialisation is like GstBitmask, with a mask field appending via
':'

One of the examples in the unit test:

test/x-caps,field=ffd81d:fffff0

My use case in the multiview branch is to handle flags regarding interpretation
of the stereo views, such as whether or not one of the views is horizontally or
vertically flipped. GstFlagSet lets a sink compactly specify that (for example)
the left view must be horizontally mirrored for display, letting us do that
transformation upstream if necessary.

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