A class that represents a double range (min - max). More...
List of all members.
Detailed Description
A class that represents a double range (min - max).
Gst::DoubleRange is used to use to store a double precision floating point range in Gst::Structures 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::DoubleRange> value;
value.init(Glib::Value<Gst::DoubleRange>::value_type());
value.set(Gst::DoubleRange(44.1, 48.0));
Gst::Structure structure("my-structure");
structure.set_field("rate", value);
...
Glib::ValueBase gst_value;
structure.get_field("rate", gst_value);
Gst::DoubleRange range(gst_value);
double min = range.min;
...
Constructor & Destructor Documentation
Gst::DoubleRange::DoubleRange |
( |
|
) |
|
Gst::DoubleRange::DoubleRange |
( |
double |
min, |
|
|
double |
max | |
|
) |
| | |
Gst::DoubleRange::DoubleRange |
( |
const DoubleRange& |
src |
) |
|
Gst::DoubleRange::DoubleRange |
( |
const Glib::ValueBase & |
gst_double_range_value |
) |
[explicit] |
Gst::DoubleRange::DoubleRange |
( |
const GValue & |
gst_double_range_value |
) |
[explicit] |
Member Function Documentation
Member Data Documentation
The documentation for this class was generated from the following file: