[][src]Function libass_sys::ass_set_pixel_aspect

pub unsafe extern "C" fn ass_set_pixel_aspect(
    priv_: *mut ASS_Renderer,
    par: f64
)

\brief Set pixel aspect ratio correction. This is the ratio of pixel width to pixel height.

Generally, this is (s_w / s_h) / (d_w / d_h), where s_w and s_h is the video storage size, and d_w and d_h is the video display size. (Display and storage size can be different for anamorphic video, such as DVDs.)

If the pixel aspect ratio is 0, or if the aspect ratio has never been set by calling this function, libass will calculate a default pixel aspect ratio out of values set with ass_set_frame_size() and ass_set_storage_size(). Note that this is useful only if the frame size corresponds to the video display size. Keep in mind that the margins set with ass_set_margins() are ignored for aspect ratio calculations as well. If the storage size has not been set, a pixel aspect ratio of 1 is assumed. \param priv renderer handle \param par pixel aspect ratio (1.0 means square pixels, 0 means default)