Functions Index :: S :: SafeWidth

[<< up one level]

Module:

clip :: core

Definition:

SafeWidth(clip c, int target_width)

Description:

Returns (by rounding) the closest to target_width safe width.

Safe here means that the returned width is compatible with the format of clip c [1].

Examples:

c = AVISource(…).ConvertToYV12()

w = SafeWidth(c, 397)

# w == 396

 

[<< top]

 


[1]:Interlacing does not affect width calulations.