21 RawFrame(
unsigned maxWidth,
unsigned height);
25 return {std::bit_cast<Pixel*>(data.
data() + y * pitch), maxWidth};
35 assert(width <= maxWidth);
36 lineWidths[line] = width;
46 [[nodiscard]]
unsigned getLineWidth(
unsigned line)
const override;
47 [[nodiscard]]
const void* getLineInfo(
48 unsigned line,
unsigned& width,
49 void* buf,
unsigned bufWidth)
const override;
50 [[nodiscard]]
bool hasContiguousStorage()
const override;
Interface for getting lines from a video frame.
unsigned getHeight() const
Gets the number of lines in this frame.
This class manages the lifetime of a block of memory.
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)
void setBlank(unsigned line, Pixel color)
void setLineWidth(unsigned line, unsigned width)
This file implemented 3 utility functions: