Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
dummy-image-generator.hpp
Go to the documentation of this file.
1 /*
2  DUMMY-IMAGE-GENERATOR.hpp - creating test output frames for simulated playback
3 
4  Copyright (C) Lumiera.org
5  2009, Joel Holdsworth <joel@airwebreathe.org.uk>,
6  Hermann Vosseler <Ichthyostega@web.de>
7 
8  This program is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License as
10  published by the Free Software Foundation; either version 2 of
11  the License, or (at your option) any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 
22 */
23 
39 #ifndef PROC_NODE_DUMMY_IMAGE_GENERATOR_H
40 #define PROC_NODE_DUMMY_IMAGE_GENERATOR_H
41 
42 
43 #include "lib/error.hpp"
44 #include "include/display-facade.h"
45 
46 
47 namespace proc {
48 namespace node {
49 
50 
52  {
53 
54  unsigned char buf_[320 * 240 * 3];
55 
56  unsigned char outFrame_A_[320 * 240 * 4];
57  unsigned char outFrame_B_[320 * 240 * 4];
58 
59  uint current_;
60  uint frame_;
61  uint fps_;
62 
63 
64  public:
65  DummyImageGenerator(uint fps);
66 
68 
74 
78 
79 
80  private:
81 
82  };
83 
84 
85 
86 
87 }} // namespace proc::node
88 #endif
89 
unsigned char outFrame_A_[320 *240 *4]
output frame 1
LumieraDisplayFrame next()
generate the next frame and occupy the alternate buffer.
unsigned char * LumieraDisplayFrame
unsigned char buf_[320 *240 *3]
working buffer for next frame
Experimental Interface, allowing the Dummy-Player to access the video display widget in the GUI...
unsigned char outFrame_B_[320 *240 *4]
output frame 2
LumieraDisplayFrame current()
just re-return a pointer to the current frame without generating any new image data ...
Lumiera error handling (C++ interface).
Proc-Layer implementation namespace root.
Definition: id-scheme.hpp:63