13 unsigned srcStartY,
unsigned srcEndY,
unsigned srcWidth,
14 unsigned dstStartY,
unsigned dstEndY,
unsigned dstWidth,
15 unsigned logSrcHeight)
17 if ((srcWidth % 320) == 0) {
18 setup(superImpose !=
nullptr);
20 srcStartY, srcEndY, srcWidth,
21 dstStartY, dstEndY, dstWidth,
25 srcStartY, srcEndY, srcWidth,
26 dstStartY, dstEndY, dstWidth,
GLScaleNxScaler(GLScaler &fallback)
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.
Abstract base class for OpenGL scalers.
void setup(bool superImpose)
Setup scaler.
void execute(const gl::ColorTexture &src, const 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.
virtual void scaleImage(gl::ColorTexture &src, gl::ColorTexture *superImpose, unsigned srcStartY, unsigned srcEndY, unsigned srcWidth, unsigned dstStartY, unsigned dstEndY, unsigned dstWidth, unsigned logSrcHeight)=0
Scales the image in the given area, which must consist of lines which are all equally wide.
This file implemented 3 utility functions: