openMSX
GLHQScaler.hh
Go to the documentation of this file.
1 #ifndef GLHQSCALER_HH
2 #define GLHQSCALER_HH
3 
4 #include "GLScaler.hh"
5 #include <cstdint>
6 
7 namespace openmsx {
8 
9 class GLHQScaler final : public GLScaler
10 {
11 public:
12  explicit GLHQScaler(GLScaler& fallback);
13 
14  void scaleImage(
15  gl::ColorTexture& src, gl::ColorTexture* superImpose,
16  unsigned srcStartY, unsigned srcEndY, unsigned srcWidth,
17  unsigned dstStartY, unsigned dstEndY, unsigned dstWidth,
18  unsigned logSrcHeight) override;
19  void uploadBlock(
20  unsigned srcStartY, unsigned srcEndY,
21  unsigned lineWidth, FrameSource& paintFrame) override;
22 
23 private:
24  GLScaler& fallback;
25  gl::Texture edgeTexture;
26  gl::Texture offsetTexture[3];
27  gl::Texture weightTexture[3];
28  gl::PixelBuffer<uint16_t> edgeBuffer;
29 };
30 
31 } // namespace openmsx
32 
33 #endif
Most basic/generic texture: only contains a texture ID.
Definition: GLUtil.hh:41
Interface for getting lines from a video frame.
Definition: FrameSource.hh:16
void uploadBlock(unsigned srcStartY, unsigned srcEndY, unsigned lineWidth, FrameSource &paintFrame) override
Definition: GLHQScaler.cc:109
GLHQScaler(GLScaler &fallback)
Definition: GLHQScaler.cc:13
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.
Definition: GLHQScaler.cc:77
Abstract base class for OpenGL scalers.
Definition: GLScaler.hh:15
This file implemented 3 utility functions:
Definition: Autofire.cc:9