diff src/gtk/filters.cpp @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/gtk/filters.cpp	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,59 @@
     1.4 +// VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
     1.5 +// Copyright (C) 1999-2003 Forgotten
     1.6 +// Copyright (C) 2004 Forgotten and the VBA development team
     1.7 +
     1.8 +// This program is free software; you can redistribute it and/or modify
     1.9 +// it under the terms of the GNU General Public License as published by
    1.10 +// the Free Software Foundation; either version 2, or(at your option)
    1.11 +// any later version.
    1.12 +//
    1.13 +// This program is distributed in the hope that it will be useful,
    1.14 +// but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.16 +// GNU General Public License for more details.
    1.17 +//
    1.18 +// You should have received a copy of the GNU General Public License
    1.19 +// along with this program; if not, write to the Free Software Foundation,
    1.20 +// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    1.21 +
    1.22 +#include "filters.h"
    1.23 +
    1.24 +namespace VBA
    1.25 +{
    1.26 +
    1.27 +static const Filter2x apvFilters2x[][2] =
    1.28 +{
    1.29 +  { NULL,         NULL           },
    1.30 +  { _2xSaI,       _2xSaI32       },
    1.31 +  { Super2xSaI,   Super2xSaI32   },
    1.32 +  { SuperEagle,   SuperEagle32   },
    1.33 +  { Pixelate2x16, Pixelate2x32   },
    1.34 +  { MotionBlur,   MotionBlur32   },
    1.35 +  { AdMame2x,     AdMame2x32     },
    1.36 +  { Simple2x16,   Simple2x32     },
    1.37 +  { Bilinear,     Bilinear32     },
    1.38 +  { BilinearPlus, BilinearPlus32 },
    1.39 +  { Scanlines,    Scanlines32    },
    1.40 +  { ScanlinesTV,  ScanlinesTV32  },
    1.41 +  { hq2x,         hq2x32         },
    1.42 +  { lq2x,         lq2x32         }
    1.43 +};
    1.44 +
    1.45 +static const FilterIB apvFiltersIB[][2] =
    1.46 +{
    1.47 +  { NULL,         NULL           },
    1.48 +  { SmartIB,      SmartIB32      },
    1.49 +  { MotionBlurIB, MotionBlurIB32 }
    1.50 +};
    1.51 +
    1.52 +Filter2x pvGetFilter2x(EFilter2x _eFilter2x, EFilterDepth _eDepth)
    1.53 +{
    1.54 +  return apvFilters2x[_eFilter2x][_eDepth];
    1.55 +}
    1.56 +
    1.57 +FilterIB pvGetFilterIB(EFilterIB _eFilterIB, EFilterDepth _eDepth)
    1.58 +{
    1.59 +  return apvFiltersIB[_eFilterIB][_eDepth];
    1.60 +}
    1.61 +
    1.62 +} // namespace VBA