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

#include <Scaler1.hh>

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

Public Member Functions

 Scaler1 (const PixelOperations< Pixel > &pixelOps)
 
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

void dispatchScale (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, 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 scaleBlank2to1 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, 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 scale2x2to3x1 (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 scale1x2to1x1 (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 scale4x2to3x1 (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)
 
virtual void scale2x2to1x1 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)
 
virtual void scale8x1to3x1 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)
 
virtual void scale8x2to3x1 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)
 
virtual void scale4x1to1x1 (FrameSource &src, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, ScalerOutput< Pixel > &dst, unsigned dstStartY, unsigned dstEndY)
 
virtual void scale4x2to1x1 (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::Scaler1< Pixel >

Definition at line 10 of file Scaler1.hh.

Constructor & Destructor Documentation

◆ Scaler1()

template<std::unsigned_integral Pixel>
openmsx::Scaler1< Pixel >::Scaler1 ( const PixelOperations< Pixel > &  pixelOps)
explicit

Definition at line 16 of file Scaler1.cc.

Member Function Documentation

◆ dispatchScale()

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

Definition at line 236 of file Scaler1.cc.

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

◆ scale1x1to1x1()

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

◆ scale1x2to1x1()

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

◆ scale2x1to1x1()

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

Definition at line 176 of file Scaler1.cc.

◆ scale2x1to3x1()

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

Definition at line 101 of file Scaler1.cc.

◆ scale2x2to1x1()

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

Definition at line 186 of file Scaler1.cc.

◆ scale2x2to3x1()

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

Definition at line 111 of file Scaler1.cc.

◆ scale4x1to1x1()

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

Definition at line 216 of file Scaler1.cc.

◆ scale4x1to3x1()

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

Definition at line 156 of file Scaler1.cc.

◆ scale4x2to1x1()

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

Definition at line 226 of file Scaler1.cc.

◆ scale4x2to3x1()

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

Definition at line 166 of file Scaler1.cc.

◆ scale8x1to3x1()

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

Definition at line 196 of file Scaler1.cc.

◆ scale8x2to3x1()

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

Definition at line 206 of file Scaler1.cc.

◆ scaleBlank1to1()

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

◆ scaleBlank2to1()

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

◆ scaleImage()

template<std::unsigned_integral Pixel>
void openmsx::Scaler1< 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 311 of file Scaler1.cc.

Member Data Documentation

◆ pixelOps

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

Definition at line 67 of file Scaler1.hh.


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