openMSX
Scale3xScaler.hh
Go to the documentation of this file.
1 #ifndef SCALE3XSCALER_HH
2 #define SCALE3XSCALER_HH
3 
4 #include "Scaler3.hh"
5 
6 namespace openmsx {
7 
10 template <class Pixel>
11 class Scale3xScaler : public Scaler3<Pixel>
12 {
13 public:
15 
16  virtual void scale1x1to3x3(FrameSource& src,
17  unsigned srcStartY, unsigned srcEndY, unsigned srcWidth,
18  ScalerOutput<Pixel>& dst, unsigned dstStartY, unsigned dstEndY);
19 
20 private:
21  void scaleLine1on3Half(Pixel* dst,
22  const Pixel* src0, const Pixel* src1, const Pixel* src2,
23  unsigned srcWidth);
24  void scaleLine1on3Mid (Pixel* dst,
25  const Pixel* src0, const Pixel* src1, const Pixel* src2,
26  unsigned srcWidth);
27 };
28 
29 } // namespace openmsx
30 
31 #endif