blob: 02a0936e7dd4c48f2f544398ba1f08ec10e01be3 [file] [log] [blame]
Stefan Kost6eb6d5b2008-10-28 06:50:57 +00001/* 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üller230cf412012-11-04 00:07:18 +000016 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
Stefan Kost6eb6d5b2008-10-28 06:50:57 +000018 */
Bastien Noceraa7bc7482008-02-23 01:51:37 +000019#ifndef _GOOMCORE_H
20#define _GOOMCORE_H
21
22#include "goom_config.h"
23#include "goom_plugin_info.h"
Bastien Noceraa7bc7482008-02-23 01:51:37 +000024
25#define NB_FX 10
26
27PluginInfo *goom_init (guint32 resx, guint32 resy);
28void 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 Noceraa7bc7482008-02-23 01:51:37 +000034 */
Tim-Philipp Müllerb1877112008-04-09 16:11:40 +000035guint32 *goom_update (PluginInfo *goomInfo, gint16 data[2][512], int forceMode, float fps);
Bastien Noceraa7bc7482008-02-23 01:51:37 +000036
37/* returns 0 if the buffer wasn't accepted */
38int goom_set_screenbuffer(PluginInfo *goomInfo, void *buffer);
39
40void goom_close (PluginInfo *goomInfo);
41
42#endif