Stefan Kost | 6eb6d5b | 2008-10-28 06:50:57 +0000 | [diff] [blame] | 1 | /* Goom Project |
| 2 | * Copyright (C) <2003> iOS-Software |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Library General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * Library General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Library General Public |
| 15 | * License along with this library; if not, write to the |
Tim-Philipp Müller | 230cf41 | 2012-11-04 00:07:18 +0000 | [diff] [blame] | 16 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, |
| 17 | * Boston, MA 02110-1301, USA. |
Stefan Kost | 6eb6d5b | 2008-10-28 06:50:57 +0000 | [diff] [blame] | 18 | */ |
Bastien Nocera | a7bc748 | 2008-02-23 01:51:37 +0000 | [diff] [blame] | 19 | #ifndef _GOOMCORE_H |
| 20 | #define _GOOMCORE_H |
| 21 | |
| 22 | #include "goom_config.h" |
| 23 | #include "goom_plugin_info.h" |
Bastien Nocera | a7bc748 | 2008-02-23 01:51:37 +0000 | [diff] [blame] | 24 | |
| 25 | #define NB_FX 10 |
| 26 | |
| 27 | PluginInfo *goom_init (guint32 resx, guint32 resy); |
| 28 | void goom_set_resolution (PluginInfo *goomInfo, guint32 resx, guint32 resy); |
| 29 | |
| 30 | /* |
| 31 | * forceMode == 0 : do nothing |
| 32 | * forceMode == -1 : lock the FX |
| 33 | * forceMode == 1..NB_FX : force a switch to FX n# forceMode |
Bastien Nocera | a7bc748 | 2008-02-23 01:51:37 +0000 | [diff] [blame] | 34 | */ |
Tim-Philipp Müller | b187711 | 2008-04-09 16:11:40 +0000 | [diff] [blame] | 35 | guint32 *goom_update (PluginInfo *goomInfo, gint16 data[2][512], int forceMode, float fps); |
Bastien Nocera | a7bc748 | 2008-02-23 01:51:37 +0000 | [diff] [blame] | 36 | |
| 37 | /* returns 0 if the buffer wasn't accepted */ |
| 38 | int goom_set_screenbuffer(PluginInfo *goomInfo, void *buffer); |
| 39 | |
| 40 | void goom_close (PluginInfo *goomInfo); |
| 41 | |
| 42 | #endif |