Gnash
0.8.10
|
00001 // VideoInput.h: Video input base class. 00002 // 00003 // Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 00004 // Free Software Foundation, Inc. 00005 // 00006 // This program is free software; you can redistribute it and/or modify 00007 // it under the terms of the GNU General Public License as published by 00008 // the Free Software Foundation; either version 3 of the License, or 00009 // (at your option) any later version. 00010 // 00011 // This program is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 // GNU General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU General Public License 00017 // along with this program; if not, write to the Free Software 00018 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00019 00020 #ifndef GNASH_VIDEOINPUT_H 00021 #define GNASH_VIDEOINPUT_H 00022 00023 #include <boost/cstdint.hpp> // for C99 int types 00024 #include <string> 00025 00026 #include "dsodefs.h" //DSOEXPORT 00027 00028 namespace gnash { 00029 namespace media { 00030 00032 // 00034 // 00037 // 00042 // 00047 class VideoInput { 00048 00049 public: 00050 00051 DSOEXPORT VideoInput() {} 00052 00053 // virtual classes need a virtual destructor ! 00054 virtual ~VideoInput() {} 00055 00057 // 00060 virtual double activityLevel() const = 0; 00061 00063 // 00065 virtual size_t bandwidth() const = 0; 00066 00068 virtual void setBandwidth(size_t bandwidth) = 0; 00069 00071 // 00073 virtual double currentFPS() const = 0; 00074 00076 // 00078 virtual double fps() const = 0; 00079 00081 virtual size_t height() const = 0; 00082 00084 virtual size_t width() const = 0; 00085 00087 virtual size_t index() const = 0; 00088 00090 // 00095 virtual void requestMode(size_t width, size_t height, double fps, 00096 bool favorArea) = 0; 00097 00099 virtual void setMotionLevel(int m) = 0; 00100 00102 virtual int motionLevel() const = 0; 00103 00105 virtual void setMotionTimeout(int m) = 0; 00106 00108 virtual int motionTimeout() const = 0; 00109 00110 virtual void mute(bool m) = 0; 00111 virtual bool muted() const = 0; 00112 00114 // 00116 virtual const std::string& name() const = 0; 00117 00119 virtual void setQuality(int q) = 0; 00120 00122 virtual int quality() const = 0; 00123 00124 }; 00125 00126 00127 } // media namespace 00128 } // gnash namespace 00129 00130 #endif