openMSX
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
openmsx::Scaler3< Pixel > Class Template Reference

Base class for 3x scalers. More...

#include <Scaler3.hh>

Inheritance diagram for openmsx::Scaler3< Pixel >:
Inheritance graph
[legend]
Collaboration diagram for openmsx::Scaler3< Pixel >:
Collaboration graph
[legend]

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

 Scaler3 (const PixelOperations< Pixel > &pixelOps)
 
void dispatchScale (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)
 
virtual void scaleBlank1to3 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)
 
virtual void scaleBlank2to3 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)
 
virtual void scale2x1to9x3 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)
 
virtual void scale2x2to9x3 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)
 
virtual void scale1x1to3x3 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)
 
virtual void scale1x2to3x3 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)
 
virtual void scale4x1to9x3 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)
 
virtual void scale4x2to9x3 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)
 
virtual void scale2x1to3x3 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)
 
virtual void scale2x2to3x3 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)
 
virtual void scale8x1to9x3 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)
 
virtual void scale8x2to9x3 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)
 
virtual void scale4x1to3x3 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)
 
virtual void scale4x2to3x3 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)
 

Protected Attributes

const PixelOperations< PixelpixelOps
 

Detailed Description

template<std::unsigned_integral Pixel>
class openmsx::Scaler3< Pixel >

Base class for 3x scalers.

Definition at line 11 of file Scaler3.hh.

Constructor & Destructor Documentation

◆ Scaler3()

template<std::unsigned_integral Pixel>
openmsx::Scaler3< Pixel >::Scaler3 ( const PixelOperations< Pixel > &  pixelOps)
explicitprotected

Definition at line 14 of file Scaler3.cc.

Member Function Documentation

◆ dispatchScale()

template<std::unsigned_integral Pixel>
void openmsx::Scaler3< Pixel >::dispatchScale ( FrameSource src,
unsigned  srcStartY,
unsigned  srcEndY,
unsigned  srcWidth,
ScalerOutput< Pixel > &  dst,
unsigned  dstStartY,
unsigned  dstEndY 
)
protected

Definition at line 222 of file Scaler3.cc.

References openmsx::FrameSource::getHeight(), and UNREACHABLE.

◆ scale1x1to3x3()

template<std::unsigned_integral Pixel>
void openmsx::Scaler3< Pixel >::scale1x1to3x3 ( FrameSource src,
unsigned  srcStartY,
unsigned  srcEndY,
unsigned  srcWidth,
ScalerOutput< Pixel > &  dst,
unsigned  dstStartY,
unsigned  dstEndY 
)
protectedvirtual

◆ scale1x2to3x3()

template<std::unsigned_integral Pixel>
void openmsx::Scaler3< Pixel >::scale1x2to3x3 ( FrameSource src,
unsigned  srcStartY,
unsigned  srcEndY,
unsigned  srcWidth,
ScalerOutput< Pixel > &  dst,
unsigned  dstStartY,
unsigned  dstEndY 
)
protectedvirtual

Reimplemented in openmsx::RGBTriplet3xScaler< Pixel >.

Definition at line 132 of file Scaler3.cc.

◆ scale2x1to3x3()

template<std::unsigned_integral Pixel>
void openmsx::Scaler3< Pixel >::scale2x1to3x3 ( FrameSource src,
unsigned  srcStartY,
unsigned  srcEndY,
unsigned  srcWidth,
ScalerOutput< Pixel > &  dst,
unsigned  dstStartY,
unsigned  dstEndY 
)
protectedvirtual

◆ scale2x1to9x3()

template<std::unsigned_integral Pixel>
void openmsx::Scaler3< Pixel >::scale2x1to9x3 ( FrameSource src,
unsigned  srcStartY,
unsigned  srcEndY,
unsigned  srcWidth,
ScalerOutput< Pixel > &  dst,
unsigned  dstStartY,
unsigned  dstEndY 
)
protectedvirtual

◆ scale2x2to3x3()

template<std::unsigned_integral Pixel>
void openmsx::Scaler3< Pixel >::scale2x2to3x3 ( FrameSource src,
unsigned  srcStartY,
unsigned  srcEndY,
unsigned  srcWidth,
ScalerOutput< Pixel > &  dst,
unsigned  dstStartY,
unsigned  dstEndY 
)
protectedvirtual

Reimplemented in openmsx::RGBTriplet3xScaler< Pixel >.

Definition at line 172 of file Scaler3.cc.

◆ scale2x2to9x3()

template<std::unsigned_integral Pixel>
void openmsx::Scaler3< Pixel >::scale2x2to9x3 ( FrameSource src,
unsigned  srcStartY,
unsigned  srcEndY,
unsigned  srcWidth,
ScalerOutput< Pixel > &  dst,
unsigned  dstStartY,
unsigned  dstEndY 
)
protectedvirtual

Reimplemented in openmsx::RGBTriplet3xScaler< Pixel >.

Definition at line 112 of file Scaler3.cc.

◆ scale4x1to3x3()

template<std::unsigned_integral Pixel>
void openmsx::Scaler3< Pixel >::scale4x1to3x3 ( FrameSource src,
unsigned  srcStartY,
unsigned  srcEndY,
unsigned  srcWidth,
ScalerOutput< Pixel > &  dst,
unsigned  dstStartY,
unsigned  dstEndY 
)
protectedvirtual

◆ scale4x1to9x3()

template<std::unsigned_integral Pixel>
void openmsx::Scaler3< Pixel >::scale4x1to9x3 ( FrameSource src,
unsigned  srcStartY,
unsigned  srcEndY,
unsigned  srcWidth,
ScalerOutput< Pixel > &  dst,
unsigned  dstStartY,
unsigned  dstEndY 
)
protectedvirtual

◆ scale4x2to3x3()

template<std::unsigned_integral Pixel>
void openmsx::Scaler3< Pixel >::scale4x2to3x3 ( FrameSource src,
unsigned  srcStartY,
unsigned  srcEndY,
unsigned  srcWidth,
ScalerOutput< Pixel > &  dst,
unsigned  dstStartY,
unsigned  dstEndY 
)
protectedvirtual

Reimplemented in openmsx::RGBTriplet3xScaler< Pixel >.

Definition at line 212 of file Scaler3.cc.

◆ scale4x2to9x3()

template<std::unsigned_integral Pixel>
void openmsx::Scaler3< Pixel >::scale4x2to9x3 ( FrameSource src,
unsigned  srcStartY,
unsigned  srcEndY,
unsigned  srcWidth,
ScalerOutput< Pixel > &  dst,
unsigned  dstStartY,
unsigned  dstEndY 
)
protectedvirtual

Reimplemented in openmsx::RGBTriplet3xScaler< Pixel >.

Definition at line 152 of file Scaler3.cc.

◆ scale8x1to9x3()

template<std::unsigned_integral Pixel>
void openmsx::Scaler3< Pixel >::scale8x1to9x3 ( FrameSource src,
unsigned  srcStartY,
unsigned  srcEndY,
unsigned  srcWidth,
ScalerOutput< Pixel > &  dst,
unsigned  dstStartY,
unsigned  dstEndY 
)
protectedvirtual

◆ scale8x2to9x3()

template<std::unsigned_integral Pixel>
void openmsx::Scaler3< Pixel >::scale8x2to9x3 ( FrameSource src,
unsigned  srcStartY,
unsigned  srcEndY,
unsigned  srcWidth,
ScalerOutput< Pixel > &  dst,
unsigned  dstStartY,
unsigned  dstEndY 
)
protectedvirtual

Reimplemented in openmsx::RGBTriplet3xScaler< Pixel >.

Definition at line 192 of file Scaler3.cc.

◆ scaleBlank1to3()

template<std::unsigned_integral Pixel>
void openmsx::Scaler3< Pixel >::scaleBlank1to3 ( FrameSource src,
unsigned  srcStartY,
unsigned  srcEndY,
ScalerOutput< Pixel > &  dst,
unsigned  dstStartY,
unsigned  dstEndY 
)
protectedvirtual

◆ scaleBlank2to3()

template<std::unsigned_integral Pixel>
void openmsx::Scaler3< Pixel >::scaleBlank2to3 ( FrameSource src,
unsigned  srcStartY,
unsigned  srcEndY,
ScalerOutput< Pixel > &  dst,
unsigned  dstStartY,
unsigned  dstEndY 
)
protectedvirtual

◆ scaleImage()

template<std::unsigned_integral Pixel>
void openmsx::Scaler3< Pixel >::scaleImage ( FrameSource src,
const RawFrame superImpose,
unsigned  srcStartY,
unsigned  srcEndY,
unsigned  srcWidth,
ScalerOutput< Pixel > &  dst,
unsigned  dstStartY,
unsigned  dstEndY 
)
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.

Parameters
srcSource: the frame to be scaled.
superImposeThe to-be-superimposed image (can be nullptr).
srcStartYY-coordinate of the top source line (inclusive).
srcEndYY-coordinate of the bottom source line (exclusive).
srcWidthThe number of pixels per line for the given area.
dstDestination: image to store the scaled output in.
dstStartYY-coordinate of the top destination line (inclusive).
dstEndYY-coordinate of the bottom destination line (exclusive).

Implements openmsx::Scaler< Pixel >.

Definition at line 297 of file Scaler3.cc.

Member Data Documentation

◆ pixelOps

template<std::unsigned_integral Pixel>
const PixelOperations<Pixel> openmsx::Scaler3< Pixel >::pixelOps
protected

Definition at line 68 of file Scaler3.hh.


The documentation for this class was generated from the following files: