Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
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
31#ifndef STEAM_NODE_DUMMY_IMAGE_GENERATOR_H
32#define STEAM_NODE_DUMMY_IMAGE_GENERATOR_H
33
34
35#include "lib/error.hpp"
37
38
39#include <array>
40
41
42namespace steam {
43namespace node {
44
45
47 {
49 bool useRGB_;
50
51 public:
52 static const uint W = 320;
53 static const uint H = 240;
54
57
58
62
66
67
68 private:
69 static constexpr uint WORK_SIZ = W * H * 3;
70 static constexpr uint BUFF_SIZ = W * H * 4;
71
72 bool beat_;
74
75 std::array<std::byte,WORK_SIZ> workBuf_;
76 std::array<std::byte,BUFF_SIZ> outFrame_A_;
77 std::array<std::byte,BUFF_SIZ> outFrame_B_;
78
79 void generateFrame (DummyFrame buffer);
80 void generateNoise (DummyFrame buffer);
81 void generateBars (DummyFrame buffer);
82 };
83
84
85
86
87}} // namespace steam::node
88#endif
89
void generateBars(DummyFrame buffer)
fill the RGB-Buffer with the well-known NTSC colour-bar pattern
DummyFrame next()
generate the next frame and occupy the alternate buffer.
void configure(lumiera::DisplayerInput)
DummyFrame current()
just re-return a pointer to the current frame without generating any new image data
std::array< std::byte, BUFF_SIZ > outFrame_A_
alternating output buffers
std::array< std::byte, WORK_SIZ > workBuf_
workspace for RGB calculation
std::array< std::byte, BUFF_SIZ > outFrame_B_
std::byte * DummyFrame
Lumiera error handling (C++ interface).
unsigned int uint
Definition integral.hpp:29
Node node(size_t id)
Definition dot-gen.hpp:165
DisplayerInput
Supported Displayer formats.
Steam-Layer implementation namespace root.