diff options
author | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-12-30 12:11:32 +0000 |
---|---|---|
committer | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-12-30 12:11:32 +0000 |
commit | fc91fed21ea71c50273c7c09f88e8d634c1e444e (patch) | |
tree | a4b1344270267c9d16eef135488049bd4e9a96f9 /tremor/os.h | |
parent | dbbe18f4500c2707f2e9c0967c7b79312edecd3d (diff) | |
download | mpv-fc91fed21ea71c50273c7c09f88e8d634c1e444e.tar.bz2 mpv-fc91fed21ea71c50273c7c09f88e8d634c1e444e.tar.xz |
internal Tremor decoder for Ogg/Vorbis
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14281 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'tremor/os.h')
-rw-r--r-- | tremor/os.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/tremor/os.h b/tremor/os.h new file mode 100644 index 0000000000..818c4a90fe --- /dev/null +++ b/tremor/os.h @@ -0,0 +1,59 @@ +#ifndef _OS_H +#define _OS_H +/******************************************************************** + * * + * THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE. * + * * + * THE OggVorbis 'TREMOR' SOURCE CODE IS (C) COPYRIGHT 1994-2002 * + * BY THE Xiph.Org FOUNDATION http://www.xiph.org/ * + * ALL REDISTRIBUTION RIGHTS RESERVED. * + * * + ******************************************************************** + + function: #ifdef jail to whip a few platforms into the UNIX ideal. + + ********************************************************************/ + +#include <math.h> +#include "os_types.h" + +#ifndef _V_IFDEFJAIL_H_ +# define _V_IFDEFJAIL_H_ + +# ifdef __GNUC__ +# define STIN static __inline__ +# elif _WIN32 +# define STIN static __inline +# endif +#else +# define STIN static +#endif + +#ifndef M_PI +# define M_PI (3.1415926536f) +#endif + +#ifdef _WIN32 +# include <malloc.h> +# define rint(x) (floor((x)+0.5f)) +# define NO_FLOAT_MATH_LIB +# define FAST_HYPOT(a, b) sqrt((a)*(a) + (b)*(b)) +#endif + +#ifdef HAVE_ALLOCA_H +# include <alloca.h> +#endif + +#ifdef USE_MEMORY_H +# include <memory.h> +#endif + +#ifndef min +# define min(x,y) ((x)>(y)?(y):(x)) +#endif + +#ifndef max +# define max(x,y) ((x)<(y)?(y):(x)) +#endif + +#endif /* _OS_H */ |