Gnash  0.8.11dev
VideoInput.h
Go to the documentation of this file.
1 // VideoInput.h: Video input base class.
2 //
3 // Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012
4 // Free Software Foundation, Inc.
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 
20 #ifndef GNASH_VIDEOINPUT_H
21 #define GNASH_VIDEOINPUT_H
22 
23 #include <boost/cstdint.hpp> // for C99 int types
24 #include <string>
25 
26 #include "dsodefs.h" //DSOEXPORT
27 
28 namespace gnash {
29 namespace media {
30 
32 //
34 //
37 //
42 //
47 class VideoInput {
48 
49 public:
50 
52 
53  // virtual classes need a virtual destructor !
54  virtual ~VideoInput() {}
55 
57  //
60  virtual double activityLevel() const = 0;
61 
63  //
65  virtual size_t bandwidth() const = 0;
66 
68  virtual void setBandwidth(size_t bandwidth) = 0;
69 
71  //
73  virtual double currentFPS() const = 0;
74 
76  //
78  virtual double fps() const = 0;
79 
81  virtual size_t height() const = 0;
82 
84  virtual size_t width() const = 0;
85 
87  virtual size_t index() const = 0;
88 
90  //
95  virtual void requestMode(size_t width, size_t height, double fps,
96  bool favorArea) = 0;
97 
99  virtual void setMotionLevel(int m) = 0;
100 
102  virtual int motionLevel() const = 0;
103 
105  virtual void setMotionTimeout(int m) = 0;
106 
108  virtual int motionTimeout() const = 0;
109 
110  virtual void mute(bool m) = 0;
111  virtual bool muted() const = 0;
112 
114  //
116  virtual const std::string& name() const = 0;
117 
119  virtual void setQuality(int q) = 0;
120 
122  virtual int quality() const = 0;
123 
124 };
125 
126 
127 } // media namespace
128 } // gnash namespace
129 
130 #endif