view src/gtk/filters.h @ 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 source
1 // -*- C++ -*-
2 // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
3 // Copyright (C) 1999-2003 Forgotten
4 // Copyright (C) 2004 Forgotten and the VBA development team
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2, or(at your option)
9 // any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software Foundation,
18 // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef __VBA_FILTERS_H__
21 #define __VBA_FILTERS_H__
23 #include "../common/System.h"
25 int Init_2xSaI(u32);
27 void _2xSaI (u8 *, u32, u8 *, u8 *, u32, int, int);
28 void _2xSaI32 (u8 *, u32, u8 *, u8 *, u32, int, int);
29 void Super2xSaI (u8 *, u32, u8 *, u8 *, u32, int, int);
30 void Super2xSaI32 (u8 *, u32, u8 *, u8 *, u32, int, int);
31 void SuperEagle (u8 *, u32, u8 *, u8 *, u32, int, int);
32 void SuperEagle32 (u8 *, u32, u8 *, u8 *, u32, int, int);
33 void Pixelate2x16 (u8 *, u32, u8 *, u8 *, u32, int, int);
34 void Pixelate2x32 (u8 *, u32, u8 *, u8 *, u32, int, int);
35 void MotionBlur (u8 *, u32, u8 *, u8 *, u32, int, int);
36 void MotionBlur32 (u8 *, u32, u8 *, u8 *, u32, int, int);
37 void AdMame2x (u8 *, u32, u8 *, u8 *, u32, int, int);
38 void AdMame2x32 (u8 *, u32, u8 *, u8 *, u32, int, int);
39 void Simple2x16 (u8 *, u32, u8 *, u8 *, u32, int, int);
40 void Simple2x32 (u8 *, u32, u8 *, u8 *, u32, int, int);
41 void Bilinear (u8 *, u32, u8 *, u8 *, u32, int, int);
42 void Bilinear32 (u8 *, u32, u8 *, u8 *, u32, int, int);
43 void BilinearPlus (u8 *, u32, u8 *, u8 *, u32, int, int);
44 void BilinearPlus32(u8 *, u32, u8 *, u8 *, u32, int, int);
45 void Scanlines (u8 *, u32, u8 *, u8 *, u32, int, int);
46 void Scanlines32 (u8 *, u32, u8 *, u8 *, u32, int, int);
47 void ScanlinesTV (u8 *, u32, u8 *, u8 *, u32, int, int);
48 void ScanlinesTV32 (u8 *, u32, u8 *, u8 *, u32, int, int);
49 void hq2x (u8 *, u32, u8 *, u8 *, u32, int, int);
50 void hq2x32 (u8 *, u32, u8 *, u8 *, u32, int, int);
51 void lq2x (u8 *, u32, u8 *, u8 *, u32, int, int);
52 void lq2x32 (u8 *, u32, u8 *, u8 *, u32, int, int);
54 void SmartIB (u8 *, u32, int, int);
55 void SmartIB32 (u8 *, u32, int, int);
56 void MotionBlurIB (u8 *, u32, int, int);
57 void MotionBlurIB32(u8 *, u32, int, int);
59 namespace VBA
60 {
62 typedef void (*Filter2x)(u8 *, u32, u8 *, u8 *, u32, int, int);
63 typedef void (*FilterIB)(u8 *, u32, int, int);
65 enum EFilter2x
66 {
67 FirstFilter,
68 FilterNone = FirstFilter,
69 Filter2xSaI,
70 FilterSuper2xSaI,
71 FilterSuperEagle,
72 FilterPixelate,
73 FilterMotionBlur,
74 FilterAdMame2x,
75 FilterSimple2x,
76 FilterBilinear,
77 FilterBilinearPlus,
78 FilterScanlines,
79 FilterScanlinesTV,
80 FilterHq2x,
81 FilterLq2x,
82 LastFilter = FilterLq2x
83 };
85 enum EFilterIB
86 {
87 FirstFilterIB,
88 FilterIBNone = FirstFilterIB,
89 FilterIBSmart,
90 FilterIBMotionBlur,
91 LastFilterIB = FilterIBMotionBlur
92 };
94 enum EFilterDepth
95 {
96 FilterDepth16,
97 FilterDepth32
98 };
100 Filter2x pvGetFilter2x(EFilter2x _eFilter2x, EFilterDepth _eDepth);
101 FilterIB pvGetFilterIB(EFilterIB _eFilterIB, EFilterDepth _eDepth);
103 } // namespace VBA
106 #endif // __VBA_FILTERS_H__