ass_set_pixel_aspect method

void ass_set_pixel_aspect(
  1. Pointer<ASS_Renderer> priv,
  2. double par
)

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

Generally, this is (d_w / d_h) / (s_w / s_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 default assumes the frame size after compensating for margins corresponds to an isotropically scaled version of the video display size. 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)

Implementation

void ass_set_pixel_aspect(
  ffi.Pointer<ASS_Renderer> priv,
  double par,
) {
  return _ass_set_pixel_aspect(
    priv,
    par,
  );
}