openMSX
Public Member Functions | List of all members
openmsx::GLTVScaler Class Referencefinal

#include <GLTVScaler.hh>

Inheritance diagram for openmsx::GLTVScaler:
Inheritance graph
[legend]
Collaboration diagram for openmsx::GLTVScaler:
Collaboration graph
[legend]

Public Member Functions

 GLTVScaler (RenderSettings &renderSettings)
 
void scaleImage (gl::ColorTexture &src, gl::ColorTexture *superImpose, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, unsigned dstStartY, unsigned dstEndY, unsigned dstWidth, unsigned logSrcHeight) 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::GLScaler
virtual ~GLScaler ()
 
virtual void uploadBlock (unsigned srcStartY, unsigned srcEndY, unsigned lineWidth, FrameSource &paintFrame)
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::GLScaler
 GLScaler (const std::string &progName)
 
void setup (bool superImpose)
 
void execute (gl::ColorTexture &src, gl::ColorTexture *superImpose, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, unsigned dstStartY, unsigned dstEndY, unsigned dstWidth, unsigned logSrcHeight, bool textureFromZero=false)
 Helper method to draw a rectangle with multiple texture coordinates. More...
 
- Protected Attributes inherited from openmsx::GLScaler
gl::ShaderProgram program [2]
 
GLint unifTexSize [2]
 

Detailed Description

Definition at line 12 of file GLTVScaler.hh.

Constructor & Destructor Documentation

openmsx::GLTVScaler::GLTVScaler ( RenderSettings renderSettings)
explicit

Member Function Documentation

void openmsx::GLTVScaler::scaleImage ( gl::ColorTexture src,
gl::ColorTexture superImpose,
unsigned  srcStartY,
unsigned  srcEndY,
unsigned  srcWidth,
unsigned  dstStartY,
unsigned  dstEndY,
unsigned  dstWidth,
unsigned  logSrcHeight 
)
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: texture containing the frame to be scaled.
superImposeTexture containing the 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.
dstStartYY-coordinate of the top destination line (inclusive).
dstEndYY-coordinate of the bottom destination line (exclusive).
dstWidthThe number of pixels per line on the output screen.
logSrcHeightThe logical height of the complete src texture (actual texture height can be double as high in case of non-interlace). This is needed to translate src-Y-coordinates to superImpose-Y-coordinates.

Implements openmsx::GLScaler.

Definition at line 19 of file GLTVScaler.cc.

References openmsx::GLScaler::execute(), openmsx::RenderSettings::getScanlineGap(), and openmsx::GLScaler::setup().


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