#ifndef _VLC_CODECS_H
#define _VLC_CODECS_H 1
+#ifdef HAVE_ATTRIBUTE_PACKED
+# define ATTR_PACKED __attribute__((__packed__))
+#else
+# error FIXME
+#endif
+
/* Structures exported to the demuxers and decoders */
#if !(defined _GUID_DEFINED || defined GUID_DEFINED)
/*****************************************************************************
* Macros and inline functions
*****************************************************************************/
-#ifdef NTOHL_IN_SYS_PARAM_H
-# include <sys/param.h>
-
-#elif !defined(WIN32) && !defined( UNDER_CE )
-# include <netinet/in.h>
-
-#endif /* NTOHL_IN_SYS_PARAM_H || WIN32 */
/* CEIL: division with round to nearest greater integer */
#define CEIL(n, d) ( ((n) / (d)) + ( ((n) % (d)) ? 1 : 0) )
# define ATTR_ALIGN(align)
#endif
-#ifdef HAVE_ATTRIBUTE_PACKED
-# define ATTR_PACKED __attribute__((__packed__))
-#endif
-
/* */
#define VLC_UNUSED(x) (void)(x)
/* Video heap size - remember that a decompressed picture is big
* (~1 Mbyte) before using huge values */
-#ifdef OPTIMIZE_MEMORY
-# define VOUT_MAX_PICTURES 5
-#else
-# define VOUT_MAX_PICTURES 8
-#endif
+#define VOUT_MAX_PICTURES 8
/* Minimum number of direct pictures the video output will accept without
* creating additional pictures in system memory */
/* Explanation:
*
- * if HAVE_DYNAMIC_PLUGINS is NOT set, we will need:
+ * if linking a module statically, we will need:
* #define MODULE_FUNC( zog ) module_foo_zog
*
* this can't easily be done with the C preprocessor, thus a few ugly hacks.