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