Swap byte order of a 64-bit floating point value (double).
Swap byte order of a 32-bit floating point value (float).
Read a 64 bit double value in big endian format from the memory buffer.
Read a 64 bit double value in little endian format from the memory buffer.
Read a 32 bit float value in big endian format from the memory buffer.
Read a 32 bit float value in little endian format from the memory buffer.
Store a 64 bit double value in big endian format into the memory buffer.
Store a 64 bit double value in little endian format into the memory buffer.
Store a 32 bit float value in big endian format into the memory buffer.
Store a 32 bit float value in little endian format into the memory buffer.
Searches inside array for search_data by using the comparison function search_func. array must be sorted ascending. As search_data is always passed as second argument to search_func it's not required that search_data has the same type as the array elements. The complexity of this search function is O(log (num_elements)).
Transforms a gdouble to a fraction and simplifies the result.
Dumps the memory block into a hex representation. Useful for debugging.
Adds the fractions a_n/a_d and b_n/b_d and stores the result in res_n and res_d.
Compares the fractions a_n/a_d and b_n/b_d and returns -1 if a < b, 0 if a = b and 1 if a > b.
Multiplies the fractions a_n/a_d and b_n/b_d and stores the result in res_n and res_d.
Transforms a fraction to a gdouble.
Get a timestamp as GstClockTime to be used for interval measurements. The timestamp should not be interpreted in any other way.
Calculates the greatest common divisor of a and b.
Calculates the greatest common divisor of a and b.
Return a constantly incrementing group id. This function is used to generate a new group-id for the stream-start event.
Compare two sequence numbers, handling wraparound. The current implementation just returns (gint32)(s1 - s2).
Return a constantly incrementing sequence number. This function is used internally to GStreamer to be able to determine which events and messages are "the same". For example, elements may set the seqnum on a segment-done message to be the same as that of the last seek event, to indicate that event and the message correspond to the same segment.
Convertes the string value to the type of the objects argument and sets the argument with it. Note that this function silently returns if object has no property named name or when value cannot be converted to the type of the property.
Converts the string to the type of the value and sets the value with it. Note that this function is dangerous as it does not return any indication if the conversion worked or not.
Scale val by the rational number num / denom, avoiding overflows and underflows and without loss of precision. This function can potentially be very slow if val and num are both greater than G_MAXUINT32.
Scale val by the rational number num / denom, avoiding overflows and underflows and without loss of precision. This function can potentially be very slow if val and num are both greater than G_MAXUINT32.
Scale val by the rational number num / denom, avoiding overflows and underflows and without loss of precision. num must be non-negative and denom must be positive.
Scale val by the rational number num / denom, avoiding overflows and underflows and without loss of precision. num must be non-negative and denom must be positive.
Scale val by the rational number num / denom, avoiding overflows and underflows and without loss of precision. num must be non-negative and denom must be positive.
Scale val by the rational number num / denom, avoiding overflows and underflows and without loss of precision. This function can potentially be very slow if val and num are both greater than G_MAXUINT32.