77 FrameCnt frameNr = 123;
78 BuffHandle buff00 = sink1.lockBufferFor (frameNr);
79 BuffHandle buff10 = sink2.lockBufferFor (frameNr);
85 BuffHandle buff11 = sink2.lockBufferFor (++frameNr);
90 sink2.emit (frameNr-1, buff10);
91 sink2.emit (frameNr , buff11);
92 sink1.emit (frameNr-1, buff00);
97 CHECK ( checker.frame_was_allocated (0,123));
98 CHECK (!checker.frame_was_allocated (0,124));
99 CHECK ( checker.frame_was_allocated (1,123));
100 CHECK ( checker.frame_was_allocated (1,124));
102 CHECK (checker.output_was_closed (0,0));
103 CHECK (checker.output_was_closed (1,0));
104 CHECK (checker.output_was_closed (1,1));
106 CHECK ( checker.output_was_emitted (0,0));
107 CHECK (!checker.output_was_emitted (0,1));
108 CHECK ( checker.output_was_emitted (1,0));
109 CHECK ( checker.output_was_emitted (1,1));
111 DiagnosticOutputSlot::OutFrames stream0 = checker.getChannel(0);
112 DiagnosticOutputSlot::OutFrames stream1 = checker.getChannel(1);
115 CHECK (*stream0 == testData(0,0)); ++stream0;
119 CHECK (*stream1 == testData(1,0)); ++stream1;
120 CHECK (*stream1 == testData(1,1)); ++stream1;
Mock data frame for simulated rendering.
An facility for writing unit-tests against the OutputSlot interface.
denotes an opened connection ready to receive media data for output.
Steam-Layer implementation namespace root.
BU & accessAs()
convenience shortcut: access the buffer contents casted to a specific type.
Helper for unit tests: Mock output sink.
Simplistic test class runner.
Extension to allow placing objects right into the buffers, taking ownership.
A front-end to support the buffer management within the render nodes.
Interface: Generic output sink.
Allocation & allocate()
claim this slot for exclusive use
Handle for a buffer for processing data, abstracting away the actual implementation.
static OutputSlot & build()
build a new Diagnostic Output Slot instance, discard the existing one.
Unit test helper to generate fake test data frames.
TestFrame & testData(uint seqNr, uint chanNr)
Helper to access a specific frame of test data at a fixed memory location.