[vlc-devel] commit: Move VLC_FOURCC to vlc_es.h ( Rémi Denis-Courmont )
git version control
git at videolan.org
Mon May 26 20:09:27 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Mon May 26 21:11:01 2008 +0300| [62b9f5b0251b41dbcb2a38902e03fc70cf3677ab]
Move VLC_FOURCC to vlc_es.h
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=62b9f5b0251b41dbcb2a38902e03fc70cf3677ab
---
include/vlc_common.h | 16 ----------------
include/vlc_es.h | 16 ++++++++++++++++
2 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/include/vlc_common.h b/include/vlc_common.h
index 56e7e6d..2ab9387 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -89,22 +89,6 @@ typedef int64_t mtime_t;
*/
typedef uint32_t vlc_fourcc_t;
-#ifdef WORDS_BIGENDIAN
-# define VLC_FOURCC( a, b, c, d ) \
- ( ((uint32_t)d) | ( ((uint32_t)c) << 8 ) \
- | ( ((uint32_t)b) << 16 ) | ( ((uint32_t)a) << 24 ) )
-# define VLC_TWOCC( a, b ) \
- ( (uint16_t)(b) | ( (uint16_t)(a) << 8 ) )
-
-#else
-# define VLC_FOURCC( a, b, c, d ) \
- ( ((uint32_t)a) | ( ((uint32_t)b) << 8 ) \
- | ( ((uint32_t)c) << 16 ) | ( ((uint32_t)d) << 24 ) )
-# define VLC_TWOCC( a, b ) \
- ( (uint16_t)(a) | ( (uint16_t)(b) << 8 ) )
-
-#endif
-
static inline void __vlc_fourcc_to_char( vlc_fourcc_t fcc, char *psz_fourcc )
{
memcpy( psz_fourcc, &fcc, 4 );
diff --git a/include/vlc_es.h b/include/vlc_es.h
index 9a5038e..c8d3051 100644
--- a/include/vlc_es.h
+++ b/include/vlc_es.h
@@ -28,6 +28,22 @@
#ifndef _VLC_ES_H
#define _VLC_ES_H 1
+#ifdef WORDS_BIGENDIAN
+# define VLC_FOURCC( a, b, c, d ) \
+ ( ((uint32_t)d) | ( ((uint32_t)c) << 8 ) \
+ | ( ((uint32_t)b) << 16 ) | ( ((uint32_t)a) << 24 ) )
+# define VLC_TWOCC( a, b ) \
+ ( (uint16_t)(b) | ( (uint16_t)(a) << 8 ) )
+
+#else
+# define VLC_FOURCC( a, b, c, d ) \
+ ( ((uint32_t)a) | ( ((uint32_t)b) << 8 ) \
+ | ( ((uint32_t)c) << 16 ) | ( ((uint32_t)d) << 24 ) )
+# define VLC_TWOCC( a, b ) \
+ ( (uint16_t)(a) | ( (uint16_t)(b) << 8 ) )
+
+#endif
+
/**
* \file
* This file defines the elementary streams format types
More information about the vlc-devel
mailing list