Gnash  0.8.11dev
Public Member Functions | Public Attributes | List of all members
gnash::media::gst::FramerateFraction Class Reference

#include <VideoInputGst.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

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

Constructor & Destructor Documentation

§ FramerateFraction() [1/2]

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.

§ FramerateFraction() [2/2]

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.

Member Data Documentation

§ denominator

gnash::media::gst::FramerateFraction::denominator

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

Referenced by gnash::media::gst::VideoInputGst::requestMode(), and gnash::media::gst::VideoInputGst::setWebcam().

§ numerator

gnash::media::gst::FramerateFraction::numerator

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

Referenced by gnash::media::gst::VideoInputGst::requestMode(), and gnash::media::gst::VideoInputGst::setWebcam().


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