Add two rational numbers and reduces the result
Safety
Converts a double to float with saturation, useful to silence warnings when reading
float properties among other things
Converts an int64 to int with saturation, useful to silence warnings when reading
int properties among other things
Convenience function for checking if the format never changes between frames
Convenience function to check for if two clips have the same format while also including
sampleRate (unknown/changeable will be considered the same too)
Convenience function to check for if two clips have the same format while also including
sampleRate (unknown/changeable will be considered the same too)
Convenience function to check if two clips have the same format
(unknown/changeable will be considered the same too)
Convenience function to check for if two clips have the same format
(but not framerate) while also including width and height
(unknown/changeable will be considered the same too)
Used to create version numbers.
The first argument is the major version and second is the minor.
Multiplies and divides a rational number,
such as a frame duration, in place and reduces the result
Reduces a rational number