Go to the documentation of this file.
18 template<
typename Pixel>
20 return reinterpret_cast<Pixel*
>(data.
data() + y * pitch);
29 assert(width <= maxWidth);
30 lineWidths[line] = width;
33 template<
typename Pixel>
36 auto* pixels = getLinePtrDirect<Pixel>(line);
44 [[nodiscard]]
unsigned getLineWidth(
unsigned line)
const override;
46 unsigned line,
unsigned& width,
47 void* buf,
unsigned bufWidth)
const override;
void format(SectorAccessibleDisk &disk, bool dos1)
Format the given disk (= a single partition).
unsigned getLineWidthDirect(unsigned y) const
RawFrame(const PixelFormat &format, unsigned maxWidth, unsigned height)
const void * getLineInfo(unsigned line, unsigned &width, void *buf, unsigned bufWidth) const override
Abstract implementation of getLinePtr().
bool hasContiguousStorage() const override
Returns true when two consecutive rows are also consecutive in memory.
A video frame as output by the VDP scanline conversion unit, before any postprocessing filters are ap...
unsigned getHeight() const
Gets the number of lines in this frame.
void setLineWidth(unsigned line, unsigned width)
Pixel * getLinePtrDirect(unsigned y)
Interface for getting lines from a video frame.
const T * data() const
Returns pointer to the start of the memory buffer.
unsigned getRowLength() const override
Returns the distance (in pixels) between two consecutive lines.
unsigned getLineWidth(unsigned line) const override
Gets the number of display pixels on the given line.
This file implemented 3 utility functions:
void setBlank(unsigned line, Pixel color)