Functions Index :: S :: SafeHeight

[<< up one level]

Module:

clip :: core

Definition:

SafeHeight(clip c, int target_height, bool "interlaced")

Description:

Returns (by rounding) the closest to target_height safe height.

Safe here means that the returned height is compatible with the format of clip c, taking into account interlacing-imposed constrains (if interlaced is supplied and is true).

Examples:

c = AVISource().ConvertToYV12()

h = SafeHeight(c, 399)

# h == 400

 

[<< top]