A class that represents a 4 byte identifier (used in codecs).
Gst::Fourcc is used to store a four byte identifier in Gst::Structure of Gst::Caps as a value representing a property (see GStreamer Application Development Manual section 8.2.2 and GstValue docs). When the value is set, it is transformed to a GStreamer GType so retrieving the value is a bit different. The class can be used in setting and getting a Gst::Structure field like so:
Glib::Value<Gst::Fourcc> value;
value.init(Glib::Value<Gst::Fourcc>::value_type());
structure.set_field("id", value);
...
Glib::ValueBase gst_value;
structure.get_field("id", gst_value);
char first_char = fourcc.first;
...
A class that represents a 4 byte identifier (used in codecs).
Definition value.h:69
Generic class containing fields of names and values.
Definition structure.h:75
Last reviewed on 2016-08-27 (1.8.0)