Valadoc | Vala | Tutorial | API-References | Markup

video_calculate_display_ratio


Description:

public bool video_calculate_display_ratio (ref uint dar_n, ref uint dar_d, uint video_width, uint video_height, uint video_par_n, uint video_par_d, uint display_par_n, uint display_par_d)

Given the Pixel Aspect Ratio and size of an input video frame, and the pixel aspect ratio of the intended display device, calculates the actual display ratio the video will be rendered with. dar_n and dar_d parameters. The return value is FALSE in the case of integer overflow or other error.

Parameters:

display_par_n Numerator of the pixel aspect ratio of the display device
dar_n Numerator of the calculated display_ratio
video_height Height of the video frame in pixels
display_par_d Denominator of the pixel aspect ratio of the display device
dar_d Denominator of the calculated display_ratio
video_par_n Numerator of the pixel aspect ratio of the input video.
video_par_d Denominator of the pixel aspect ratio of the input video.
video_width Width of the video frame in pixels

Returns:

A boolean indicating success and a calculated Display Ratio in the

Namespace: Gst
Package: gstreamer-video-0.10