Gnash  0.8.10
Public Member Functions | Public Attributes
gnash::media::gst::FramerateFraction Class Reference

#include <VideoInputGst.h>

List of all members.

Public Member Functions

 FramerateFraction (gint num, gint denom)
 Constructor which sets the numerator and denominator fields upon construction.
 FramerateFraction ()
 Create a new empty FramerateFraction class.

Public Attributes

gint numerator
 contains a gint value for the numerator portion of a fraction.
gint denominator
 contains a gint value for the denominator portion of a fraction.

Detailed Description

Convience wrapper class which allows easily calculating fractions from the information returned from probing hardware cameras for supported framerates.


Constructor & Destructor Documentation

gnash::media::gst::FramerateFraction::FramerateFraction ( gint  num,
gint  denom 
)

Constructor which sets the numerator and denominator fields upon construction.

Parameters:
numThe integer numerator value to initialize the FramerateFraction class with.
denomThe integer denominator value to initialzie the FramerateFraction class with.

Secondary constructor for the FramerateFraction class. This constructor initialzes the structure with the numerator and denominator values passed to the constructor.

References numerator, and denominator.

gnash::media::gst::FramerateFraction::FramerateFraction ( )

Create a new empty FramerateFraction class.

Default constructor for the FramerateFraction class. This constructor prepares the data structure for data that will come in later. All gint values are initialized to -1 to show that these values have never been set.

References numerator, and denominator.


Member Data Documentation

contains a gint value for the denominator portion of a fraction.

Referenced by FramerateFraction().

contains a gint value for the numerator portion of a fraction.

Referenced by FramerateFraction().


The documentation for this class was generated from the following files: