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
 

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<typename Pixel>
class openmsx::Scaler1< Pixel >

Definition at line 10 of file Scaler1.hh.

Constructor & Destructor Documentation

◆ Scaler1()

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

Definition at line 15 of file Scaler1.cc.

Member Function Documentation

◆ dispatchScale()

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

◆ scale1x1to1x1()

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

◆ scale1x2to1x1()

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

◆ scale2x1to1x1()

template<typename 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 175 of file Scaler1.cc.

References openmsx::Scaler1< Pixel >::pixelOps.

Referenced by openmsx::Scaler1< Pixel >::dispatchScale().

◆ scale2x1to3x1()

template<class 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 99 of file Scaler1.cc.

References openmsx::Scaler1< Pixel >::pixelOps.

Referenced by openmsx::Scaler1< Pixel >::dispatchScale().

◆ scale2x2to1x1()

template<typename 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 185 of file Scaler1.cc.

References openmsx::Scaler1< Pixel >::pixelOps.

Referenced by openmsx::Scaler1< Pixel >::dispatchScale().

◆ scale2x2to3x1()

template<class 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 109 of file Scaler1.cc.

References openmsx::Scaler1< Pixel >::pixelOps.

Referenced by openmsx::Scaler1< Pixel >::dispatchScale().

◆ scale4x1to1x1()

template<class 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 215 of file Scaler1.cc.

References openmsx::Scaler1< Pixel >::pixelOps.

Referenced by openmsx::Scaler1< Pixel >::dispatchScale().

◆ scale4x1to3x1()

template<class 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 155 of file Scaler1.cc.

References openmsx::Scaler1< Pixel >::pixelOps.

Referenced by openmsx::Scaler1< Pixel >::dispatchScale().

◆ scale4x2to1x1()

template<class 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 225 of file Scaler1.cc.

References openmsx::Scaler1< Pixel >::pixelOps.

Referenced by openmsx::Scaler1< Pixel >::dispatchScale().

◆ scale4x2to3x1()

template<class 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 165 of file Scaler1.cc.

References openmsx::Scaler1< Pixel >::pixelOps.

Referenced by openmsx::Scaler1< Pixel >::dispatchScale().

◆ scale8x1to3x1()

template<class 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 195 of file Scaler1.cc.

References openmsx::Scaler1< Pixel >::pixelOps.

Referenced by openmsx::Scaler1< Pixel >::dispatchScale().

◆ scale8x2to3x1()

template<class 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 205 of file Scaler1.cc.

References openmsx::Scaler1< Pixel >::pixelOps.

Referenced by openmsx::Scaler1< Pixel >::dispatchScale().

◆ scaleBlank1to1()

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

◆ scaleBlank2to1()

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

◆ scaleImage()

template<class 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 310 of file Scaler1.cc.

References openmsx::Scaler1< Pixel >::dispatchScale(), and openmsx::Scaler1< Pixel >::pixelOps.

Member Data Documentation

◆ pixelOps

template<typename Pixel >
const PixelOperations<Pixel> openmsx::Scaler1< Pixel >::pixelOps
protected

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