openMSX
|
This class represents a frame that is the (per-pixel) alpha-blend of two other frames. More...
#include <SuperImposedFrame.hh>
Public Member Functions | |
void | init (const FrameSource *top, const FrameSource *bottom) |
unsigned | getLineWidth (unsigned line) const override |
Gets the number of display pixels on the given line. | |
std::span< const Pixel > | getUnscaledLine (unsigned line, std::span< Pixel > helpBuf) const override |
Get a specific line, with the 'native' line-width. | |
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_) |
virtual bool | hasContiguousStorage () const |
Returns true when two consecutive rows are also consecutive in memory. | |
void | scaleLine (std::span< const Pixel > in, std::span< Pixel > out) const |
This class represents a frame that is the (per-pixel) alpha-blend of two other frames.
When the two input frames have a different resolution. The result will have the highest resolution of the two inputs (in other words, the lower resolution frame gets upscaled to the higher resolution).
Definition at line 13 of file SuperImposedFrame.hh.
|
overridevirtual |
Gets the number of display pixels on the given line.
Implements openmsx::FrameSource.
Definition at line 22 of file SuperImposedFrame.cc.
References openmsx::FrameSource::getHeight(), and openmsx::FrameSource::getLineWidth().
|
overridevirtual |
Get a specific line, with the 'native' line-width.
line | The line number for the requested line. |
helpBuf | Buffer space that can optionally be used by the implementation. |
Implements openmsx::FrameSource.
Definition at line 31 of file SuperImposedFrame.cc.
References openmsx::alphaBlendLines(), openmsx::FrameSource::getHeight(), openmsx::FrameSource::getLine(), and openmsx::FrameSource::getLineWidth().
void openmsx::SuperImposedFrame::init | ( | const FrameSource * | top, |
const FrameSource * | bottom | ||
) |
Definition at line 14 of file SuperImposedFrame.cc.
References openmsx::FrameSource::getHeight(), and openmsx::FrameSource::setHeight().