rlm@1: // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator. rlm@1: // Copyright (C) 1999-2003 Forgotten rlm@1: // Copyright (C) 2004 Forgotten and the VBA development team rlm@1: rlm@1: // This program is free software; you can redistribute it and/or modify rlm@1: // it under the terms of the GNU General Public License as published by rlm@1: // the Free Software Foundation; either version 2, or(at your option) rlm@1: // any later version. rlm@1: // rlm@1: // This program is distributed in the hope that it will be useful, rlm@1: // but WITHOUT ANY WARRANTY; without even the implied warranty of rlm@1: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the rlm@1: // GNU General Public License for more details. rlm@1: // rlm@1: // You should have received a copy of the GNU General Public License rlm@1: // along with this program; if not, write to the Free Software Foundation, rlm@1: // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. rlm@1: rlm@1: #include "filters.h" rlm@1: rlm@1: namespace VBA rlm@1: { rlm@1: rlm@1: static const Filter2x apvFilters2x[][2] = rlm@1: { rlm@1: { NULL, NULL }, rlm@1: { _2xSaI, _2xSaI32 }, rlm@1: { Super2xSaI, Super2xSaI32 }, rlm@1: { SuperEagle, SuperEagle32 }, rlm@1: { Pixelate2x16, Pixelate2x32 }, rlm@1: { MotionBlur, MotionBlur32 }, rlm@1: { AdMame2x, AdMame2x32 }, rlm@1: { Simple2x16, Simple2x32 }, rlm@1: { Bilinear, Bilinear32 }, rlm@1: { BilinearPlus, BilinearPlus32 }, rlm@1: { Scanlines, Scanlines32 }, rlm@1: { ScanlinesTV, ScanlinesTV32 }, rlm@1: { hq2x, hq2x32 }, rlm@1: { lq2x, lq2x32 } rlm@1: }; rlm@1: rlm@1: static const FilterIB apvFiltersIB[][2] = rlm@1: { rlm@1: { NULL, NULL }, rlm@1: { SmartIB, SmartIB32 }, rlm@1: { MotionBlurIB, MotionBlurIB32 } rlm@1: }; rlm@1: rlm@1: Filter2x pvGetFilter2x(EFilter2x _eFilter2x, EFilterDepth _eDepth) rlm@1: { rlm@1: return apvFilters2x[_eFilter2x][_eDepth]; rlm@1: } rlm@1: rlm@1: FilterIB pvGetFilterIB(EFilterIB _eFilterIB, EFilterDepth _eDepth) rlm@1: { rlm@1: return apvFiltersIB[_eFilterIB][_eDepth]; rlm@1: } rlm@1: rlm@1: } // namespace VBA