openMSX
|
A video frame as output by the VDP scanline conversion unit, before any postprocessing filters are applied. More...
#include <RawFrame.hh>
Public Member Functions | |
RawFrame (unsigned maxWidth, unsigned height) | |
std::span< Pixel > | getLineDirect (unsigned y) |
std::span< const Pixel > | getLineDirect (unsigned y) const |
unsigned | getLineWidthDirect (unsigned y) const |
void | setLineWidth (unsigned line, unsigned width) |
void | setBlank (unsigned line, Pixel color) |
Public Member Functions inherited from openmsx::FrameSource | |
void | init (FieldType fieldType_) |
(Re)initialize an existing FrameSource. | |
FieldType | getField () const |
Gets the role this frame plays in interlacing. | |
unsigned | getHeight () const |
Gets the number of lines in this frame. | |
unsigned | getWidth () const |
Get the width of (all) lines in this frame. | |
Pixel | getLineColor (unsigned line) const |
Get the (single) color of the given line. | |
std::span< const Pixel > | getLine (int line, std::span< Pixel > buf) const |
Gets a pointer to the pixels of the given line number. | |
std::span< const Pixel, 320 > | getLinePtr320_240 (unsigned line, std::span< Pixel, 320 > buf) const |
Get a pointer to a given line in this frame, the frame is scaled to 320x240 pixels. | |
std::span< const Pixel, 640 > | getLinePtr640_480 (unsigned line, std::span< Pixel, 640 > buf) const |
Get a pointer to a given line in this frame, the frame is scaled to 640x480 pixels. | |
std::span< const Pixel, 960 > | getLinePtr960_720 (unsigned line, std::span< Pixel, 960 > buf) const |
Get a pointer to a given line in this frame, the frame is scaled to 960x720 pixels. | |
Additional Inherited Members | |
Public Types inherited from openmsx::FrameSource | |
enum class | FieldType { NONINTERLACED , EVEN , ODD } |
What role does this frame play in interlacing? More... | |
using | Pixel = uint32_t |
Protected Member Functions inherited from openmsx::FrameSource | |
FrameSource ()=default | |
~FrameSource ()=default | |
void | setHeight (unsigned height_) |
void | scaleLine (std::span< const Pixel > in, std::span< Pixel > out) const |
A video frame as output by the VDP scanline conversion unit, before any postprocessing filters are applied.
Definition at line 15 of file RawFrame.hh.
openmsx::RawFrame::RawFrame | ( | unsigned | maxWidth, |
unsigned | height | ||
) |
Definition at line 12 of file RawFrame.cc.
References openmsx::FrameSource::init(), openmsx::FrameSource::NONINTERLACED, openmsx::MemBuffer< T, ALIGNMENT >::resize(), setBlank(), openmsx::FrameSource::setHeight(), and xrange().
|
inline |
Definition at line 20 of file RawFrame.hh.
References openmsx::FrameSource::getHeight(), and openmsx::MemBuffer< T, ALIGNMENT >::subspan().
Referenced by getLineDirect(), and setBlank().
|
inline |
Definition at line 24 of file RawFrame.hh.
References getLineDirect().
|
inline |
Definition at line 28 of file RawFrame.hh.
References openmsx::FrameSource::getHeight().
|
inline |
Definition at line 39 of file RawFrame.hh.
References openmsx::FrameSource::getHeight(), and getLineDirect().
Referenced by RawFrame().
|
inline |
Definition at line 33 of file RawFrame.hh.
References openmsx::FrameSource::getHeight().