guess_framerate


Description:


[ Version ( since = "1.6" ) ]
public bool guess_framerate (ClockTime duration, out int dest_n, out int dest_d)

Given the nominal duration of one video frame, this function will check some standard framerates for a close match (within 0.1%) and return one if possible,

It will calculate an arbitrary framerate if no close match was found, and return false.

It returns false if a duration of 0 is passed.

Parameters:

duration

Nominal duration of one frame

dest_n

Numerator of the calculated framerate

dest_d

Denominator of the calculated framerate

Returns:

true if a close "standard" framerate was recognised, and false otherwise.


Namespace: Gst.Video