17 #ifndef QGST_STRUCTS_H
18 #define QGST_STRUCTS_H
29 inline Fourcc() { value.as_integer = 0; }
31 inline Fourcc (
char first,
char second,
char third,
char fourth)
33 value.as_integer = first | second << 8 | third << 16 | fourth << 24;
36 inline Fourcc(
const char str[4])
38 value.as_integer = str[0] | str[1] << 8 | str[2] << 16 | str[3] << 24;
41 inline Fourcc(quint32 fourcc)
43 value.as_integer = fourcc;
47 #if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
75 inline Fraction(
int numerator,
int denominator)
76 : numerator(numerator), denominator(denominator) {}
94 : start(T()), end(T()) {}
95 inline Range(
const T & start,
const T & end)
96 : start(start), end(end) {}
124 QGST_REGISTER_TYPE(QGst::Int64Range)
125 QGST_REGISTER_TYPE(QGst::DoubleRange)
126 QGST_REGISTER_TYPE(QGst::FractionRange)
128 #endif // QGST_STRUCTS_H