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... | |
![]() | |
virtual | ~Scaler ()=default |
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 225 of file Scaler2.cc.
References openmsx::FrameSource::getHeight(), and UNREACHABLE.
|
protectedvirtual |
Definition at line 168 of file Scaler2.cc.
References openmsx::ScalerOutput< Pixel >::acquireLine(), ranges::copy(), openmsx::FrameSource::getLinePtr(), openmsx::ScalerOutput< Pixel >::getWidth(), and openmsx::ScalerOutput< Pixel >::releaseLine().
|
protectedvirtual |
Reimplemented in openmsx::Scale2xScaler< Pixel >, openmsx::SaI2xScaler< Pixel >, openmsx::HQ2xScaler< Pixel >, and openmsx::HQ2xLiteScaler< Pixel >.
Definition at line 149 of file Scaler2.cc.
References openmsx::ScalerOutput< Pixel >::acquireLine(), ranges::copy(), openmsx::FrameSource::getLinePtr(), openmsx::ScalerOutput< Pixel >::getWidth(), and openmsx::ScalerOutput< Pixel >::releaseLine().
|
protectedvirtual |
Definition at line 119 of file Scaler2.cc.
|
protectedvirtual |
Reimplemented in openmsx::Scale2xScaler< Pixel >, openmsx::SaI2xScaler< Pixel >, openmsx::HQ2xScaler< Pixel >, and openmsx::HQ2xLiteScaler< Pixel >.
Definition at line 109 of file Scaler2.cc.
|
protectedvirtual |
Definition at line 93 of file Scaler2.cc.
|
protectedvirtual |
Reimplemented in openmsx::HQ2xScaler< Pixel >, and openmsx::HQ2xLiteScaler< Pixel >.
Definition at line 83 of file Scaler2.cc.
|
protectedvirtual |
Definition at line 215 of file Scaler2.cc.
|
protectedvirtual |
Reimplemented in openmsx::HQ2xScaler< Pixel >, and openmsx::HQ2xLiteScaler< Pixel >.
Definition at line 205 of file Scaler2.cc.
|
protectedvirtual |
Definition at line 139 of file Scaler2.cc.
|
protectedvirtual |
Reimplemented in openmsx::HQ2xScaler< Pixel >, and openmsx::HQ2xLiteScaler< Pixel >.
Definition at line 129 of file Scaler2.cc.
|
protectedvirtual |
Definition at line 195 of file Scaler2.cc.
|
protectedvirtual |
Reimplemented in openmsx::HQ2xScaler< Pixel >, and openmsx::HQ2xLiteScaler< Pixel >.
Definition at line 185 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 300 of file Scaler2.cc.
|
protected |
Definition at line 68 of file Scaler2.hh.