view src/gtk/filters.cpp @ 4:5f6f2134e8ce

apu appears to not be used
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:35:58 -0600
parents f9f4f1b99eed
children
line wrap: on
line source
1 // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
2 // Copyright (C) 1999-2003 Forgotten
3 // Copyright (C) 2004 Forgotten and the VBA development team
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2, or(at your option)
8 // any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software Foundation,
17 // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 #include "filters.h"
21 namespace VBA
22 {
24 static const Filter2x apvFilters2x[][2] =
25 {
26 { NULL, NULL },
27 { _2xSaI, _2xSaI32 },
28 { Super2xSaI, Super2xSaI32 },
29 { SuperEagle, SuperEagle32 },
30 { Pixelate2x16, Pixelate2x32 },
31 { MotionBlur, MotionBlur32 },
32 { AdMame2x, AdMame2x32 },
33 { Simple2x16, Simple2x32 },
34 { Bilinear, Bilinear32 },
35 { BilinearPlus, BilinearPlus32 },
36 { Scanlines, Scanlines32 },
37 { ScanlinesTV, ScanlinesTV32 },
38 { hq2x, hq2x32 },
39 { lq2x, lq2x32 }
40 };
42 static const FilterIB apvFiltersIB[][2] =
43 {
44 { NULL, NULL },
45 { SmartIB, SmartIB32 },
46 { MotionBlurIB, MotionBlurIB32 }
47 };
49 Filter2x pvGetFilter2x(EFilter2x _eFilter2x, EFilterDepth _eDepth)
50 {
51 return apvFilters2x[_eFilter2x][_eDepth];
52 }
54 FilterIB pvGetFilterIB(EFilterIB _eFilterIB, EFilterDepth _eDepth)
55 {
56 return apvFiltersIB[_eFilterIB][_eDepth];
57 }
59 } // namespace VBA