annotate src/gtk/filters.h @ 6:458a4f18f3cd

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