![]() |
Lumiera 0.pre.04
»edit your freedom«
|
#include "steam/engine/worker/dummy-image-generator.hpp"
Definition at line 46 of file dummy-image-generator.hpp.
Static Public Attributes | |
| static const uint | W = 320 |
| static const uint | H = 240 |
Public Member Functions | |
| DummyImageGenerator (uint fps) | |
| void | configure (lumiera::DisplayerInput) |
| DummyFrame | next () |
| generate the next frame and occupy the alternate buffer. | |
| DummyFrame | current () |
| just re-return a pointer to the current frame without generating any new image data | |
Private Member Functions | |
| void | generateFrame (DummyFrame buffer) |
| void | generateNoise (DummyFrame buffer) |
| void | generateBars (DummyFrame buffer) |
| fill the RGB-Buffer with the well-known NTSC colour-bar pattern | |
Private Attributes | |
| uint | fps_ |
| bool | useRGB_ |
| bool | beat_ |
| uint | frame_ |
| std::array< std::byte, WORK_SIZ > | workBuf_ |
| workspace for RGB calculation | |
| std::array< std::byte, BUFF_SIZ > | outFrame_A_ |
| alternating output buffers | |
| std::array< std::byte, BUFF_SIZ > | outFrame_B_ |
Static Private Attributes | |
| static constexpr uint | WORK_SIZ = W * H * 3 |
| static constexpr uint | BUFF_SIZ = W * H * 4 |
| DummyImageGenerator | ( | uint | fps | ) |
Definition at line 81 of file dummy-image-generator.cpp.
| void configure | ( | lumiera::DisplayerInput | displayFormat | ) |
Definition at line 89 of file dummy-image-generator.cpp.
References lumiera::DISPLAY_NONE, lumiera::DISPLAY_RGB, lumiera::DISPLAY_YUV, and DummyImageGenerator::useRGB_.
| DummyFrame next | ( | ) |
generate the next frame and occupy the alternate buffer.
Definition at line 161 of file dummy-image-generator.cpp.
References DummyImageGenerator::beat_, DummyImageGenerator::current(), DummyImageGenerator::generateFrame(), DummyImageGenerator::H, DummyImageGenerator::useRGB_, DummyImageGenerator::W, and DummyImageGenerator::workBuf_.
Here is the call graph for this function:| DummyFrame current | ( | ) |
just re-return a pointer to the current frame without generating any new image data
Definition at line 178 of file dummy-image-generator.cpp.
References DummyImageGenerator::beat_, DummyImageGenerator::outFrame_A_, and DummyImageGenerator::outFrame_B_.
Referenced by DummyImageGenerator::next().
Here is the caller graph for this function:
|
private |
Definition at line 100 of file dummy-image-generator.cpp.
References DummyImageGenerator::fps_, DummyImageGenerator::frame_, DummyImageGenerator::generateBars(), and DummyImageGenerator::generateNoise().
Referenced by DummyImageGenerator::next().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 113 of file dummy-image-generator.cpp.
References DummyImageGenerator::H, and DummyImageGenerator::W.
Referenced by DummyImageGenerator::generateFrame().
Here is the caller graph for this function:
|
private |
fill the RGB-Buffer with the well-known NTSC colour-bar pattern
Definition at line 126 of file dummy-image-generator.cpp.
References DummyImageGenerator::H, and DummyImageGenerator::W.
Referenced by DummyImageGenerator::generateFrame().
Here is the caller graph for this function:
|
private |
Definition at line 48 of file dummy-image-generator.hpp.
Referenced by DummyImageGenerator::generateFrame().
|
private |
Definition at line 49 of file dummy-image-generator.hpp.
Referenced by DummyImageGenerator::configure(), and DummyImageGenerator::next().
|
static |
Definition at line 52 of file dummy-image-generator.hpp.
Referenced by DummyImageGenerator::generateBars(), DummyImageGenerator::generateNoise(), and DummyImageGenerator::next().
|
static |
Definition at line 53 of file dummy-image-generator.hpp.
Referenced by DummyImageGenerator::generateBars(), DummyImageGenerator::generateNoise(), and DummyImageGenerator::next().
Definition at line 69 of file dummy-image-generator.hpp.
Definition at line 70 of file dummy-image-generator.hpp.
|
private |
Definition at line 72 of file dummy-image-generator.hpp.
Referenced by DummyImageGenerator::current(), and DummyImageGenerator::next().
|
private |
Definition at line 73 of file dummy-image-generator.hpp.
Referenced by DummyImageGenerator::generateFrame().
|
private |
workspace for RGB calculation
Definition at line 75 of file dummy-image-generator.hpp.
Referenced by DummyImageGenerator::next().
|
private |
alternating output buffers
Definition at line 76 of file dummy-image-generator.hpp.
Referenced by DummyImageGenerator::current().
|
private |
Definition at line 77 of file dummy-image-generator.hpp.
Referenced by DummyImageGenerator::current().
Collaboration diagram for DummyImageGenerator: