[vlc-devel] commit: Revert "Move VLC_FOURCC to vlc_es.h" ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon May 26 20:55:29 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Mon May 26 21:29:55 2008 +0300| [9970930dbc8ce19f3bbea188481868ee61744b9b]

Revert "Move VLC_FOURCC to vlc_es.h"

This reverts commit 62b9f5b0251b41dbcb2a38902e03fc70cf3677ab.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9970930dbc8ce19f3bbea188481868ee61744b9b
---

 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 2ab9387..56e7e6d 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -89,6 +89,22 @@ 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 c8d3051..9a5038e 100644
--- a/include/vlc_es.h
+++ b/include/vlc_es.h
@@ -28,22 +28,6 @@
 #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