openMSX
|
Base class for 2x scalers. More...
#include <Scaler2.hh>
Public Member Functions | |
void | scaleImage (FrameSource &src, const RawFrame *superImpose, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY) override |
Scales the image in the given area, which must consist of lines which are all equally wide. More... | |
Public Member Functions inherited from openmsx::Scaler< Pixel > | |
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... | |
Protected Member Functions | |
Scaler2 (const PixelOperations< Pixel > &pixelOps) | |
void | dispatchScale (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY) |
virtual void | scaleBlank1to2 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY) |
virtual void | scaleBlank1to1 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY) |
virtual void | scale1x1to3x2 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY) |
virtual void | scale1x1to3x1 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY) |
virtual void | scale1x1to2x2 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY) |
virtual void | scale1x1to2x1 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY) |
virtual void | scale2x1to3x2 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY) |
virtual void | scale2x1to3x1 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY) |
virtual void | scale1x1to1x2 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY) |
virtual void | scale1x1to1x1 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY) |
virtual void | scale4x1to3x2 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY) |
virtual void | scale4x1to3x1 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY) |
virtual void | scale2x1to1x2 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY) |
virtual void | scale2x1to1x1 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY) |
Protected Attributes | |
const PixelOperations< Pixel > | pixelOps |
Base class for 2x scalers.
Definition at line 11 of file Scaler2.hh.
|
explicitprotected |
Definition at line 14 of file Scaler2.cc.
|
protected |
Definition at line 223 of file Scaler2.cc.
References openmsx::FrameSource::getHeight(), and UNREACHABLE.
|
protectedvirtual |
Definition at line 166 of file Scaler2.cc.
References openmsx::ScalerOutput< Pixel >::acquireLine(), ranges::copy(), openmsx::FrameSource::getLine(), openmsx::ScalerOutput< Pixel >::getWidth(), and openmsx::ScalerOutput< Pixel >::releaseLine().
|
protectedvirtual |
Reimplemented in openmsx::HQ2xLiteScaler< Pixel >, openmsx::HQ2xScaler< Pixel >, openmsx::SaI2xScaler< Pixel >, and openmsx::Scale2xScaler< Pixel >.
Definition at line 147 of file Scaler2.cc.
References openmsx::ScalerOutput< Pixel >::acquireLine(), ranges::copy(), openmsx::FrameSource::getLine(), openmsx::ScalerOutput< Pixel >::getWidth(), and openmsx::ScalerOutput< Pixel >::releaseLine().
|
protectedvirtual |
Definition at line 117 of file Scaler2.cc.
|
protectedvirtual |
Reimplemented in openmsx::HQ2xLiteScaler< Pixel >, openmsx::HQ2xScaler< Pixel >, openmsx::SaI2xScaler< Pixel >, and openmsx::Scale2xScaler< Pixel >.
Definition at line 107 of file Scaler2.cc.
|
protectedvirtual |
Definition at line 91 of file Scaler2.cc.
|
protectedvirtual |
Reimplemented in openmsx::HQ2xLiteScaler< Pixel >, and openmsx::HQ2xScaler< Pixel >.
Definition at line 81 of file Scaler2.cc.
|
protectedvirtual |
Definition at line 213 of file Scaler2.cc.
|
protectedvirtual |
Reimplemented in openmsx::HQ2xLiteScaler< Pixel >, and openmsx::HQ2xScaler< Pixel >.
Definition at line 203 of file Scaler2.cc.
|
protectedvirtual |
Definition at line 137 of file Scaler2.cc.
|
protectedvirtual |
Reimplemented in openmsx::HQ2xLiteScaler< Pixel >, and openmsx::HQ2xScaler< Pixel >.
Definition at line 127 of file Scaler2.cc.
|
protectedvirtual |
Definition at line 193 of file Scaler2.cc.
|
protectedvirtual |
Reimplemented in openmsx::HQ2xLiteScaler< Pixel >, and openmsx::HQ2xScaler< Pixel >.
Definition at line 183 of file Scaler2.cc.
|
protectedvirtual |
Definition at line 33 of file Scaler2.cc.
References openmsx::ScalerOutput< Pixel >::fillLine(), and openmsx::FrameSource::getLineColor().
|
protectedvirtual |
Reimplemented in openmsx::SaI2xScaler< Pixel >.
Definition at line 20 of file Scaler2.cc.
References openmsx::ScalerOutput< Pixel >::fillLine(), and openmsx::FrameSource::getLineColor().
|
overridevirtual |
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). |
Implements openmsx::Scaler< Pixel >.
Definition at line 298 of file Scaler2.cc.
|
protected |
Definition at line 68 of file Scaler2.hh.