PieDock 1.6.0

src/Resampler.h

00001 /*
00002  *   O         ,-
00003  *  ° o    . -´  '     ,-
00004  *   °  .´        ` . ´,´
00005  *     ( °   ))     . (
00006  *      `-;_    . -´ `.`.
00007  *          `._'       ´
00008  *
00009  * Copyright (c) 2007-2010 Markus Fisch <mf@markusfisch.de>
00010  *
00011  * Licensed under the MIT license:
00012  * http://www.opensource.org/licenses/mit-license.php
00013  */
00014 #ifndef _PieDock_Resampler_
00015 #define _PieDock_Resampler_
00016 
00017 #include "ArgbSurface.h"
00018 
00019 namespace PieDock
00020 {
00026     class Resampler
00027     {
00028         public:
00029             virtual ~Resampler() {}
00030             static void resample( ArgbSurface &, ArgbSurface & );
00031 
00032         protected:
00033             static void biLinear( ArgbSurface &, ArgbSurface & );
00034             static void areaAveraging( ArgbSurface &, ArgbSurface & );
00035 
00036         private:
00037             Resampler() {}
00038     };
00039 }
00040 
00041 #endif