Lumiera  0.pre.03
»edit your freedom«
testframe.hpp File Reference

Go to the source code of this file.

Description

Unit test helper to generate fake test data frames.

Definition in file testframe.hpp.

#include <cstdlib>
#include <stdint.h>

Classes

class  TestFrame
 Mock data frame for simulated rendering. More...
 

Functions

void resetTestFrames ()
 discards all the TestFrame instances and initialises an empty table of test frames
 
TestFrame & testData (uint seqNr)
 Helper to access a specific frame of test data at a fixed memory location. More...
 
TestFrame & testData (uint chanNr, uint seqNr)
 

Namespaces

 steam
 Steam-Layer implementation namespace root.
 
 steam::engine
 Lumiera's render engine core and operational control.
 

Function Documentation

◆ testData()

TestFrame & testData ( uint  seqNr)

Helper to access a specific frame of test data at a fixed memory location.

The series of test frames is generated on demand, but remains in memory thereafter, similar to real data accessible from some kind of source stream. Each of these generated test frames filled with different yet reproducible pseudo random data. Client code is free to access and corrupt this data.

Definition at line 155 of file testframe.cpp.

Referenced by TestFrame_test::useFrameTable().

+ Here is the caller graph for this function: