Lumiera  0.pre.03
»edit your freedom«
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)
5  2009, Joel Holdsworth <joel@airwebreathe.org.uk>,
6  Hermann Vosseler <Ichthyostega@web.de>
7 
8   **Lumiera** is free software; you can redistribute it and/or modify it
9   under the terms of the GNU General Public License as published by the
10   Free Software Foundation; either version 2 of the License, or (at your
11   option) any later version. See the file COPYING for further details.
12 
13 */
14 
30 #ifndef STEAM_NODE_DUMMY_IMAGE_GENERATOR_H
31 #define STEAM_NODE_DUMMY_IMAGE_GENERATOR_H
32 
33 
34 #include "lib/error.hpp"
35 #include "include/display-facade.h"
36 
37 
38 namespace steam {
39 namespace node {
40 
41 
43  {
44 
45  unsigned char buf_[320 * 240 * 3];
46 
47  unsigned char outFrame_A_[320 * 240 * 4];
48  unsigned char outFrame_B_[320 * 240 * 4];
49 
50  uint current_;
51  uint frame_;
52  uint fps_;
53 
54 
55  public:
56  DummyImageGenerator(uint fps);
57 
58  ~DummyImageGenerator() { }
59 
64  LumieraDisplayFrame next();
65 
68  LumieraDisplayFrame current();
69 
70 
71  private:
72 
73  };
74 
75 
76 
77 
78 }} // namespace steam::node
79 #endif
80 
unsigned char buf_[320 *240 *3]
working buffer for next frame
Steam-Layer implementation namespace root.
Experimental Interface, allowing the Dummy-Player to access the video display widget in the GUI...
LumieraDisplayFrame next()
generate the next frame and occupy the alternate buffer.
unsigned char outFrame_A_[320 *240 *4]
output frame 1
Lumiera error handling (C++ interface).
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 ...