Gnash  0.8.11dev
Public Member Functions | Static Public Member Functions | List of all members
gnash::media::ffmpeg::VideoInputFfmpeg Class Reference

#include <VideoInputFfmpeg.h>

Inheritance diagram for gnash::media::ffmpeg::VideoInputFfmpeg:
gnash::media::VideoInput

Public Member Functions

 VideoInputFfmpeg ()
 Constructor for the VideoInputFfmpeg class. More...
 
virtual ~VideoInputFfmpeg ()
 Destructor for the VideoInputFfmpeg class. More...
 
double activityLevel () const
 Return the current activity level of the webcam. More...
 
size_t bandwidth () const
 The maximum available bandwidth for outgoing connections. More...
 
void setBandwidth (size_t bandwidth)
 Set the bandwidth for outgoing connections. More...
 
double currentFPS () const
 The current frame rate of the webcam. More...
 
double fps () const
 The maximum FPS rate of the webcam. More...
 
size_t height () const
 Return the height of the webcam's frame. More...
 
size_t width () const
 Return the width of the webcam's frame. More...
 
size_t index () const
 The index of the camera. More...
 
void requestMode (size_t width, size_t height, double fps, bool favorArea)
 Request a native mode most closely matching the passed variables. More...
 
void setMotionLevel (int m)
 Set the amount of motion required before notifying the core. More...
 
int motionLevel () const
 Return the current motionLevel setting. More...
 
void setMotionTimeout (int m)
 Set time without motion in milliseconds before core is notified. More...
 
int motionTimeout () const
 Return the current motionTimeout setting. More...
 
void mute (bool m)
 
bool muted () const
 
const std::string & name () const
 Return the name of this webcam. More...
 
void setQuality (int q)
 Set the quality of the webcam. More...
 
int quality () const
 Return the current quality of the webcam. More...
 
bool play ()
 Function starts up the pipeline designed earlier in code execution. This puts everything into motion. More...
 
bool stop ()
 Function stops the pipeline designed earlier in code execution. More...
 
- Public Member Functions inherited from gnash::media::VideoInput
DSOEXPORT VideoInput ()
 
virtual ~VideoInput ()
 

Static Public Member Functions

static void getNames (std::vector< std::string > &)
 

Constructor & Destructor Documentation

§ VideoInputFfmpeg()

gnash::media::ffmpeg::VideoInputFfmpeg::VideoInputFfmpeg ( )

Constructor for the VideoInputFfmpeg class.

TODO: most of these properties need not be stored, but should rather be queried from the input device.

§ ~VideoInputFfmpeg()

gnash::media::ffmpeg::VideoInputFfmpeg::~VideoInputFfmpeg ( )
virtual

Destructor for the VideoInputFfmpeg class.

Member Function Documentation

§ activityLevel()

double gnash::media::ffmpeg::VideoInputFfmpeg::activityLevel ( ) const
inlinevirtual

Return the current activity level of the webcam.

Returns
A double specifying the amount of motion currently detected by the camera.

Implements gnash::media::VideoInput.

§ bandwidth()

size_t gnash::media::ffmpeg::VideoInputFfmpeg::bandwidth ( ) const
inlinevirtual

The maximum available bandwidth for outgoing connections.

TODO: see if this should really be here.

Implements gnash::media::VideoInput.

Referenced by setBandwidth().

§ currentFPS()

double gnash::media::ffmpeg::VideoInputFfmpeg::currentFPS ( ) const
inlinevirtual

The current frame rate of the webcam.

Returns
A double specifying the webcam's current FPS

Implements gnash::media::VideoInput.

§ fps()

double gnash::media::ffmpeg::VideoInputFfmpeg::fps ( ) const
inlinevirtual

The maximum FPS rate of the webcam.

Returns
A double specifying the webcam's maximum FPS

Implements gnash::media::VideoInput.

Referenced by index(), and requestMode().

§ getNames()

static void gnash::media::ffmpeg::VideoInputFfmpeg::getNames ( std::vector< std::string > &  )
inlinestatic

§ height()

size_t gnash::media::ffmpeg::VideoInputFfmpeg::height ( ) const
inlinevirtual

Return the height of the webcam's frame.

Implements gnash::media::VideoInput.

Referenced by index(), and requestMode().

§ index()

size_t gnash::media::ffmpeg::VideoInputFfmpeg::index ( ) const
inlinevirtual

The index of the camera.

Implements gnash::media::VideoInput.

References fps(), height(), requestMode(), and width().

§ motionLevel()

int gnash::media::ffmpeg::VideoInputFfmpeg::motionLevel ( ) const
inlinevirtual

Return the current motionLevel setting.

Implements gnash::media::VideoInput.

§ motionTimeout()

int gnash::media::ffmpeg::VideoInputFfmpeg::motionTimeout ( ) const
inlinevirtual

Return the current motionTimeout setting.

Implements gnash::media::VideoInput.

§ mute()

void gnash::media::ffmpeg::VideoInputFfmpeg::mute ( bool  m)
inlinevirtual

Implements gnash::media::VideoInput.

References gnash::key::m.

§ muted()

bool gnash::media::ffmpeg::VideoInputFfmpeg::muted ( ) const
inlinevirtual

§ name()

const std::string& gnash::media::ffmpeg::VideoInputFfmpeg::name ( ) const
inlinevirtual

Return the name of this webcam.

Returns
a string specifying the name of the webcam.

Implements gnash::media::VideoInput.

§ play()

bool gnash::media::ffmpeg::VideoInputFfmpeg::play ( )

Function starts up the pipeline designed earlier in code execution. This puts everything into motion.

Returns
True if the pipeline was started correctly, false otherwise.

Referenced by quality().

§ quality()

int gnash::media::ffmpeg::VideoInputFfmpeg::quality ( ) const
inlinevirtual

Return the current quality of the webcam.

Implements gnash::media::VideoInput.

References play(), and stop().

§ requestMode()

void gnash::media::ffmpeg::VideoInputFfmpeg::requestMode ( size_t  width,
size_t  height,
double  fps,
bool  favorArea 
)
virtual

Request a native mode most closely matching the passed variables.

Parameters
widthThe required width
heightThe required height
fpsThe required frame rate
favorAreaHow to match the requested mode.

Implements gnash::media::VideoInput.

References fps(), height(), and width().

Referenced by index().

§ setBandwidth()

void gnash::media::ffmpeg::VideoInputFfmpeg::setBandwidth ( size_t  bandwidth)
inlinevirtual

Set the bandwidth for outgoing connections.

Implements gnash::media::VideoInput.

References bandwidth().

§ setMotionLevel()

void gnash::media::ffmpeg::VideoInputFfmpeg::setMotionLevel ( int  m)
inlinevirtual

Set the amount of motion required before notifying the core.

Implements gnash::media::VideoInput.

References gnash::key::m.

§ setMotionTimeout()

void gnash::media::ffmpeg::VideoInputFfmpeg::setMotionTimeout ( int  m)
inlinevirtual

Set time without motion in milliseconds before core is notified.

Implements gnash::media::VideoInput.

References gnash::key::m.

§ setQuality()

void gnash::media::ffmpeg::VideoInputFfmpeg::setQuality ( int  q)
inlinevirtual

Set the quality of the webcam.

Implements gnash::media::VideoInput.

References gnash::key::q.

§ stop()

bool gnash::media::ffmpeg::VideoInputFfmpeg::stop ( )

Function stops the pipeline designed earlier in code execution.

Returns
True if the pipeline was stopped correctly, false otherwise.

Referenced by quality().

§ width()

size_t gnash::media::ffmpeg::VideoInputFfmpeg::width ( ) const
inlinevirtual

Return the width of the webcam's frame.

Implements gnash::media::VideoInput.

Referenced by index(), and requestMode().


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