get_natural_width


Description:

public float get_natural_width ()

Considering the real resolution of the video as well as the aspect ratio of pixel data that may need to be stretched when being displayed; this function calculates what the natural size of the underlying video source is, and returns its width.

The natural size has the correct aspect ratio for displaying the video and is the minimum size where downscaling is not required.

<note>This natural size is calculated assuming that the video will be displayed on square pixels.</note>

Parameters:

this

A VideoSink

Returns:

The video's natural width