18 RawFrame(
unsigned maxWidth,
unsigned height);
22 return {data.
data() + y * size_t(maxWidth), maxWidth};
35 assert(width <= maxWidth);
36 lineWidths[line] = width;
46 [[nodiscard]]
unsigned getLineWidth(
unsigned line)
const override;
47 [[nodiscard]] std::span<const Pixel> getUnscaledLine(
48 unsigned line, std::span<Pixel> helpBuf)
const override;
49 [[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)
std::span< const Pixel > getLineDirect(unsigned y) const
void setLineWidth(unsigned line, unsigned width)
This file implemented 3 utility functions: