• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • Examples
  • File List
  • File Members

VideoInput.h

Go to the documentation of this file.
00001 // VideoInput.h: Video input base class.
00002 // 
00003 //   Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
00004 // 
00005 // This program is free software; you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License as published by
00007 // the Free Software Foundation; either version 3 of the License, or
00008 // (at your option) any later version.
00009 // 
00010 // This program is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU General Public License
00016 // along with this program; if not, write to the Free Software
00017 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00018 
00019 #ifndef GNASH_VIDEOINPUT_H
00020 #define GNASH_VIDEOINPUT_H
00021 
00022 #include <boost/cstdint.hpp> // for C99 int types
00023 #include <string>
00024 
00025 #include "dsodefs.h" //DSOEXPORT
00026 
00027 namespace gnash {
00028 namespace media {
00029 
00031 //
00033 //
00036 //
00041 //
00046 class VideoInput {
00047 
00048 public:
00049 
00050     DSOEXPORT VideoInput() {}
00051 
00052     // virtual classes need a virtual destructor !
00053     virtual ~VideoInput() {}
00054        
00056     //
00059     virtual double activityLevel() const = 0;
00060     
00062     //
00064     virtual size_t bandwidth() const = 0;
00065     
00067     virtual void setBandwidth(size_t bandwidth) = 0;
00068 
00070     //
00072     virtual double currentFPS() const = 0;
00073     
00075     //
00077     virtual double fps() const = 0;
00078 
00080     virtual size_t height() const = 0;
00081     
00083     virtual size_t width() const = 0;
00084     
00086     virtual size_t index() const = 0;
00087     
00089     //
00094     virtual void requestMode(size_t width, size_t height, double fps,
00095             bool favorArea) = 0;
00096 
00098     virtual void setMotionLevel(int m) = 0;
00099 
00101     virtual int motionLevel() const = 0;
00102     
00104     virtual void setMotionTimeout(int m) = 0;
00105 
00107     virtual int motionTimeout() const = 0;
00108     
00109     virtual void mute(bool m) = 0;
00110     virtual bool muted() const = 0;
00111     
00113     //
00115     virtual const std::string& name() const = 0;
00116 
00118     virtual void setQuality(int q) = 0;
00119 
00121     virtual int quality() const = 0;
00122 
00123 };
00124 
00125     
00126 } // media namespace 
00127 } // gnash namespace
00128 
00129 #endif 

Generated on Fri Mar 16 2012 15:46:13 for Gnash by  doxygen 1.7.1