A class that represents a 4 byte identifier (used in codecs). More...
List of all members.
Detailed Description
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());
value.set(Gst::Fourcc('M', 'J', 'P', 'G'));
Gst::Structure structure("my-structure");
structure.set_field("id", value);
...
Glib::ValueBase gst_value;
structure.get_field("id", gst_value);
Gst::Fourcc fourcc(gst_value);
char first_char = fourcc.first;
...
Constructor & Destructor Documentation
Gst::Fourcc::Fourcc |
( |
const Fourcc& |
src |
) |
|
Gst::Fourcc::Fourcc |
( |
char |
first, |
|
|
char |
second, |
|
|
char |
third, |
|
|
char |
fourth | |
|
) |
| | |
Gst::Fourcc::Fourcc |
( |
const Glib::ustring & |
s |
) |
[explicit] |
Construct a Gst::Fourcc from an input string.
Caller is responsible for ensuring the input string consists of at least four characters.
Gst::Fourcc::Fourcc |
( |
guint32 |
fourcc |
) |
[explicit] |
Construct a Gst::Fourcc from a 32 bit unsigned integer.
Gst::Fourcc::Fourcc |
( |
const Glib::ValueBase & |
gst_fraction_value |
) |
[explicit] |
Gst::Fourcc::Fourcc |
( |
const GValue & |
gst_fraction_value |
) |
[explicit] |
Member Function Documentation
guint32 Gst::Fourcc::get_fourcc |
( |
|
) |
const |
Gets the four characters converted into a guint32 fourcc value with host endianness.
Member Data Documentation
The documentation for this class was generated from the following file: