| 1 |
/* Libvisual-plugins - Standard plugins for libvisual |
| 2 |
* |
| 3 |
* Copyright (C) 2002, 2003, 2004, 2005, 2006 Dennis Smit <[email protected]> |
| 4 |
* |
| 5 |
* Authors: Dennis Smit <[email protected]> |
| 6 |
* |
| 7 |
* $Id: common.h,v 1.6 2006/01/31 16:42:47 synap Exp $ |
| 8 |
* |
| 9 |
* This program is free software; you can redistribute it and/or modify |
| 10 |
* it under the terms of the GNU General Public License as |
| 11 |
* published by the Free Software Foundation; either version 2 |
| 12 |
* of the License, or (at your option) any later version. |
| 13 |
* |
| 14 |
* This program is distributed in the hope that it will be useful, |
| 15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 |
* GNU General Public License for more details. |
| 18 |
* |
| 19 |
* You should have received a copy of the GNU General Public License |
| 20 |
* along with this program; if not, write to the Free Software |
| 21 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 22 |
*/ |
| 23 |
|
| 24 |
#ifndef _OINK_COMMON_H |
| 25 |
#define _OINK_COMMON_H |
| 26 |
|
| 27 |
#include <stdlib.h> |
| 28 |
#include <unistd.h> |
| 29 |
|
| 30 |
#define PI 3.14159265358979323846 |
| 31 |
|
| 32 |
#define MAX(a, b) (a > b ? a : b) |
| 33 |
#define MIN(a ,b) (a > b ? b : a) |
| 34 |
|
| 35 |
#define BYTETRUNC(a) ((a) > 255 ? 255 : (a)) |
| 36 |
|
| 37 |
#endif /* _OINK_COMMON_H */ |