PieDock  1.6.3
Resampler.h
1 /*
2  * O ,-
3  * o . - ' ,-
4  * . ` . ,
5  * ( )) . (
6  * `-;_ . - `.`.
7  * `._'
8  *
9  * Copyright (c) 2007-2010 Markus Fisch <mf@markusfisch.de>
10  *
11  * Licensed under the MIT license:
12  * http://www.opensource.org/licenses/mit-license.php
13  */
14 #ifndef _PieDock_Resampler_
15 #define _PieDock_Resampler_
16 
17 #include "ArgbSurface.h"
18 
19 namespace PieDock
20 {
26  class Resampler
27  {
28  public:
29  virtual ~Resampler() {}
30  static void resample( ArgbSurface &, ArgbSurface & );
31 
32  protected:
33  static void biLinear( ArgbSurface &, ArgbSurface & );
34  static void areaAveraging( ArgbSurface &, ArgbSurface & );
35 
36  private:
37  Resampler() {}
38  };
39 }
40 
41 #endif