gstreamermm
1.10.0
|
A class that represents a fraction. More...
#include <gstreamermm/value.h>
Public Member Functions | |
Fraction () | |
Constructs a zero Gst::Fraction (0/1). More... | |
Fraction (const Fraction& src) | |
Constructs a Gst::Fraction from another. More... | |
Fraction (int num, int denom) | |
Constructs a Gst::Fraction (num/denom). More... | |
Fraction (const Glib::ValueBase& gst_fraction_value) | |
Constructs a Gst::Fraction from a GST_TYPE_FRACTION. More... | |
Fraction (const GValue& gst_fraction_value) | |
Constructs a Gst::Fraction from a GST_TYPE_FRACTION. More... | |
Fraction& | operator= (const Fraction& src) |
Public Attributes | |
int | num |
int | denom |
A class that represents a fraction.
Gst::Fraction is used to store a fraction 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:
Last reviewed on 2016-08-27 (1.8.0)
Gst::Fraction::Fraction | ( | ) |
Constructs a zero Gst::Fraction (0/1).
Gst::Fraction::Fraction | ( | const Fraction& | src | ) |
Constructs a Gst::Fraction from another.
Gst::Fraction::Fraction | ( | int | num, |
int | denom | ||
) |
Constructs a Gst::Fraction (num/denom).
|
explicit |
Constructs a Gst::Fraction from a GST_TYPE_FRACTION.
|
explicit |
Constructs a Gst::Fraction from a GST_TYPE_FRACTION.
int Gst::Fraction::denom |
int Gst::Fraction::num |