openMSX
GLHQLiteScaler.hh
Go to the documentation of this file.
1#ifndef GLHQLITESCALER_HH
2#define GLHQLITESCALER_HH
3
4#include "GLScaler.hh"
5#include "GLUtil.hh"
6
7#include <array>
8#include <cstdint>
9
10namespace openmsx {
11
12class GLHQLiteScaler final : public GLScaler
13{
14public:
15 explicit GLHQLiteScaler(GLScaler& fallback, unsigned maxWidth, unsigned maxHeight);
16
17 void scaleImage(
18 gl::ColorTexture& src, gl::ColorTexture* superImpose,
19 unsigned srcStartY, unsigned srcEndY, unsigned srcWidth,
20 unsigned dstStartY, unsigned dstEndY, unsigned dstWidth,
21 unsigned logSrcHeight) override;
22 void uploadBlock(
23 unsigned srcStartY, unsigned srcEndY,
24 unsigned lineWidth, FrameSource& paintFrame) override;
25
26private:
27 GLScaler& fallback;
28 gl::Texture edgeTexture;
29 std::array<gl::Texture, 3> offsetTexture;
31
32 unsigned maxWidth, maxHeight;
33 std::array<int, 2> edgePosScaleUnif;
34};
35
36} // namespace openmsx
37
38#endif
Wrapper around a pixel buffer.
Definition GLUtil.hh:159
Most basic/generic texture: only contains a texture ID.
Definition GLUtil.hh:40
Interface for getting lines from a video frame.
void uploadBlock(unsigned srcStartY, unsigned srcEndY, unsigned lineWidth, FrameSource &paintFrame) override
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.
Definition GLScaler.hh:16
This file implemented 3 utility functions:
Definition Autofire.cc:11