Functions Index :: S :: SafeHeight
SafeHeight(clip c, int target_height, bool "interlaced")
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).
c = AVISource(…).ConvertToYV12()
h = SafeHeight(c, 399)
# h == 400