19 RawFrame(
unsigned maxWidth,
unsigned height);
23 return {
reinterpret_cast<Pixel*
>(data.
data() + y * pitch), maxWidth};
33 assert(width <= maxWidth);
34 lineWidths[line] = width;
44 [[nodiscard]]
unsigned getLineWidth(
unsigned line)
const override;
46 unsigned line,
unsigned& width,
47 void* buf,
unsigned bufWidth)
const override;
Interface for getting lines from a video frame.
unsigned getHeight() const
Gets the number of lines in this frame.
const T * data() const
Returns pointer to the start of the memory buffer.
A video frame as output by the VDP scanline conversion unit, before any postprocessing filters are ap...
unsigned getLineWidthDirect(unsigned y) const
std::span< Pixel > getLineDirect(unsigned y)
unsigned getLineWidth(unsigned line) const override
Gets the number of display pixels on the given line.
RawFrame(unsigned maxWidth, unsigned height)
void setBlank(unsigned line, Pixel color)
bool hasContiguousStorage() const override
Returns true when two consecutive rows are also consecutive in memory.
const void * getLineInfo(unsigned line, unsigned &width, void *buf, unsigned bufWidth) const override
Abstract implementation of getLinePtr().
void setLineWidth(unsigned line, unsigned width)
This file implemented 3 utility functions: