Mercurial > vba-linux
comparison 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 |
comparison
equal
deleted
inserted
replaced
0:8ced16adf2e1 | 1:f9f4f1b99eed |
---|---|
1 // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator. | |
2 // Copyright (C) 1999-2003 Forgotten | |
3 // Copyright (C) 2004 Forgotten and the VBA development team | |
4 | |
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. | |
18 | |
19 #include "filters.h" | |
20 | |
21 namespace VBA | |
22 { | |
23 | |
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 }; | |
41 | |
42 static const FilterIB apvFiltersIB[][2] = | |
43 { | |
44 { NULL, NULL }, | |
45 { SmartIB, SmartIB32 }, | |
46 { MotionBlurIB, MotionBlurIB32 } | |
47 }; | |
48 | |
49 Filter2x pvGetFilter2x(EFilter2x _eFilter2x, EFilterDepth _eDepth) | |
50 { | |
51 return apvFilters2x[_eFilter2x][_eDepth]; | |
52 } | |
53 | |
54 FilterIB pvGetFilterIB(EFilterIB _eFilterIB, EFilterDepth _eDepth) | |
55 { | |
56 return apvFiltersIB[_eFilterIB][_eDepth]; | |
57 } | |
58 | |
59 } // namespace VBA |