Module utils

Source

Traits§

ToCString

Functions§

add_rational
Add two rational numbers and reduces the result
are_valid_dimensions
bitblt
Copies bytes from one plane to another. Basically, it is memcpy in a loop.
double_to_float_s
Converts a double to float with saturation, useful to silence warnings when reading float properties among other things
int64_to_int_s
Converts an int64 to int with saturation, useful to silence warnings when reading int properties among other things
is_constant_video_format
Convenience function for checking if the format never changes between frames
is_same_audio_format
Convenience function to check for if two clips have the same format while also including sampleRate (unknown/changeable will be considered the same too)
is_same_audio_info
Convenience function to check for if two clips have the same format while also including sampleRate (unknown/changeable will be considered the same too)
is_same_video_format
Convenience function to check if two clips have the same format (unknown/changeable will be considered the same too)
is_same_video_info
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)
make_version
Used to create version numbers. The first argument is the major version and second is the minor.
muldiv_rational
Multiplies and divides a rational number, such as a frame duration, in place and reduces the result
reduce_rational
Reduces a rational number