openMSX
|
Abstract base class for scalers. More...
#include <Scaler.hh>
Public Member Functions | |
virtual | ~Scaler ()=default |
virtual void | scaleImage (FrameSource &src, const RawFrame *superImpose, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)=0 |
Scales the image in the given area, which must consist of lines which are all equally wide. More... | |
Abstract base class for scalers.
A scaler is an algorithm that converts low-res graphics to hi-res graphics.
|
virtualdefault |
|
pure virtual |
Scales the image in the given area, which must consist of lines which are all equally wide.
Scaling factor depends on the concrete scaler.
src | Source: the frame to be scaled. |
superImpose | The to-be-superimposed image (can be nullptr). |
srcStartY | Y-coordinate of the top source line (inclusive). |
srcEndY | Y-coordinate of the bottom source line (exclusive). |
srcWidth | The number of pixels per line for the given area. |
dst | Destination: image to store the scaled output in. |
dstStartY | Y-coordinate of the top destination line (inclusive). |
dstEndY | Y-coordinate of the bottom destination line (exclusive). |
Implemented in openmsx::MLAAScaler< Pixel >, openmsx::RGBTriplet3xScaler< Pixel >, openmsx::Scaler1< Pixel >, openmsx::Scaler2< Pixel >, and openmsx::Scaler3< Pixel >.