-
public static Type array_get_type ()
-
public static bool can_compare (Value value1, Value value2)
Determines if value1 and value2 can be compared.
-
public static bool can_intersect (Value value1, Value value2)
Determines if intersecting two values will produce a valid result. Two values will produce a valid
intersection if they have the same type, or if there is a method (registered by
register_intersect_func) to calculate the intersection.
-
public static bool can_subtract (Value minuend, Value subtrahend)
Checks if it's possible to subtract subtrahend from minuend.
-
public static bool can_union (Value value1, Value value2)
Determines if value1 and value2 can be non-trivially unioned. Any two values
can be trivially unioned by adding both of them to a GstValueList. However, certain types have the possibility to be unioned in a
simpler way. For example, an integer range and an integer can be unioned if the integer is a subset of the integer range. If there is
the possibility that two values can be unioned, this function returns TRUE. be unioned.
-
public static int compare (Value value1, Value value2)
Compares value1 and value2. If value1 and value2
cannot be compared, the function returns GST_VALUE_UNORDERED. Otherwise, if value1 is greater than value2,
GST_VALUE_GREATER_THAN is returned. If value1 is less than value2, GST_VALUE_LESS_THAN is returned. If the
values are equal, GST_VALUE_EQUAL is returned.
-
public static bool fraction_multiply (Value product, Value factor1, Value factor2)
Multiplies the two Value items containing a
GST_TYPE_FRACTION and sets
-
public static bool fraction_subtract (Value dest, Value minuend, Value subtrahend)
Subtracts the subtrahend from the minuend and sets dest to the
result.
-
public static bool intersect (Value dest, Value value1, Value value2)
Calculates the intersection of two values. If the values have a non-empty intersection, the value
representing the intersection is placed in dest. If the intersection is non-empty, dest is not modified.
-
public static Type list_get_type ()
-
public static uint make_fourcc (char a, char b, char c, char d)
-
public static void register (ValueTable table)
Registers functions to perform calculations on Value items
of a given type. Each type can only be added once.
-
public static void register_intersect_func (Type type1, Type type2, ValueIntersectFunc func)
Registers a function that is called to calculate the intersection of the values having the types
type1 and type2. Intersect functions should be registered at startup before any pipelines are started, as
register_intersect_func is not thread-safe and cannot be
used at the same time as intersect or
can_intersect.
-
public static void register_subtract_func (Type minuend_type, Type subtrahend_type, ValueSubtractFunc func)
Registers func as a function capable of subtracting the values of Subtract functions should
be registered at startup before any pipelines are started, as
register_subtract_func is not thread-safe and cannot be used at the same time as
subtract.
-
public static void register_union_func (Type type1, Type type2, ValueUnionFunc func)
Registers a union function that can create a union between Value
items of the type type1 and type2. Union functions should be registered at startup before any pipelines
are started, as register_union_func is not thread-safe and
cannot be used at the same time as union or
can_union.
-
public static uint str_fourcc (string str)
-
public static bool subtract (Value dest, Value minuend, Value subtrahend)
Subtracts subtrahend from minuend and stores the result in dest.
Note that this means subtraction as in sets, not as in mathematics.
-
public static bool union (Value dest, Value value1, Value value2)
Creates a GValue corresponding to the union of value1 and value2.
-
public void array_append_value (Value append_value)
Appends append_value to the GstValueArray in value.
-
public uint array_get_size ()
Gets the number of values contained in value.
-
public unowned Value? array_get_value (uint index)
Gets the value that is a member of the array contained in value and has the index
index.
-
public void array_prepend_value (Value prepend_value)
Prepends prepend_value to the GstValueArray in value.
-
public bool deserialize (string src)
Tries to deserialize a string into the type specified by the given GValue. If the operation succeeds,
TRUE is returned, FALSE otherwise.
-
public weak Buffer get_buffer ()
-
public Caps get_caps ()
Gets the contents of value. The reference count of the returned
Caps will not be modified, therefore the caller must take one before getting rid of the
value.
-
public Date get_date ()
Gets the contents of value.
-
public double get_double_range_max ()
Gets the maximum of the range specified by value.
-
public double get_double_range_min ()
Gets the minimum of the range specified by value.
-
public uint get_fourcc ()
Gets the uint32 fourcc contained in value
.
-
public int get_fraction_denominator ()
Gets the denominator of the fraction specified by value.
-
public int get_fraction_numerator ()
Gets the numerator of the fraction specified by value.
-
public unowned Value? get_fraction_range_max ()
Gets the maximum of the range specified by value.
-
public unowned Value? get_fraction_range_min ()
Gets the minimum of the range specified by value.
-
public int get_int_range_max ()
Gets the maximum of the range specified by value.
-
public int get_int_range_min ()
Gets the minimum of the range specified by value.
-
public unowned Structure get_structure ()
Gets the contents of value.
-
public void init_and_copy (Value src)
Initialises the target value to be of the same type as source and then copies the contents from source
to target.
-
public bool is_fixed ()
Tests if the given GValue, if available in a GstStructure (or any other (which means: multiple possible
values, such as data lists or data ranges) value.
-
public void list_append_value (Value append_value)
Appends append_value to the GstValueList in value.
-
public void list_concat (Value value1, Value value2)
Concatenates copies of value1 and value2 into a list. Values that are not of
type GST_TYPE_LIST are treated as if they were lists of length 1.
-
public uint list_get_size ()
Gets the number of values contained in value.
-
public unowned Value? list_get_value (uint index)
Gets the value that is a member of the list contained in value and has the index
index.
-
public void list_prepend_value (Value prepend_value)
Prepends prepend_value to the GstValueList in value.
-
public string serialize ()
tries to transform the given value into a string representation that allows getting back
this string later on using deserialize.
-
public void set_buffer (Buffer b)
-
public void set_caps (Caps caps)
Sets the contents of value to caps. A reference to the provided caps
will be taken by the value.
-
public void set_date (Date date)
Sets the contents of value to coorespond to date. The actual
Date structure is copied before it is used.
-
public void set_double_range (double start, double end)
Sets value to the range specified by start and end.
-
public void set_fourcc (uint fourcc)
Sets value to fourcc.
-
public void set_fraction (int numerator, int denominator)
Sets value to the fraction specified by numerator over denominator
. The fraction gets reduced to the smallest numerator and denominator, and if necessary the sign is moved to the numerator.
-
public void set_fraction_range (Value start, Value end)
Sets value to the range specified by start and end.
-
public void set_fraction_range_full (int numerator_start, int denominator_start, int numerator_end, int denominator_end)
Sets value to the range specified by numerator_start/@denominator_start and
numerator_end/@denominator_end.
-
public void set_int_range (int start, int end)
Sets value to the range specified by start and end.
-
public void set_structure (Structure structure)
Sets the contents of value to structure. The actual
-
public void take_buffer (Buffer b)