[vlc-devel] commit: Added two codec four aout usage (spdif). (Laurent Aimar )

git version control git at videolan.org
Wed May 13 21:20:18 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue May 12 20:23:46 2009 +0200| [a2552da3e339fce1d940523d1206a9936546ceaf] | committer: Laurent Aimar 

Added two codec four aout usage (spdif).

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

 include/vlc_aout.h |   29 ++++++++++++++---------------
 1 files changed, 14 insertions(+), 15 deletions(-)

diff --git a/include/vlc_aout.h b/include/vlc_aout.h
index 00b7e2e..e64390d 100644
--- a/include/vlc_aout.h
+++ b/include/vlc_aout.h
@@ -47,25 +47,24 @@ extern "C" {
       && ((p_first)->i_physical_channels == (p_second)->i_physical_channels)\
       && ((p_first)->i_original_channels == (p_second)->i_original_channels) )
 
+#define AOUT_FMT_S16_NE VLC_CODEC_S16N
+#define AOUT_FMT_U16_NE VLC_CODEC_U16N
+#define AOUT_FMT_S24_NE VLC_CODEC_S24N
+#define AOUT_FMT_S32_NE VLC_CODEC_S32N
+
+#define VLC_CODEC_SPDIFL VLC_FOURCC('s','p','d','i')
+#define VLC_CODEC_SPDIFB VLC_FOURCC('s','p','d','b')
 #ifdef WORDS_BIGENDIAN
-#   define AOUT_FMT_S16_NE VLC_FOURCC('s','1','6','b')
-#   define AOUT_FMT_U16_NE VLC_FOURCC('u','1','6','b')
-#   define AOUT_FMT_S24_NE VLC_FOURCC('s','2','4','b')
-#   define AOUT_FMT_S32_NE VLC_FOURCC('s','3','2','b')
-#   define AOUT_FMT_SPDIF_NE VLC_FOURCC('s','p','d','b')
+#   define AOUT_FMT_SPDIF_NE VLC_CODEC_SPDIFB
 #else
-#   define AOUT_FMT_S16_NE VLC_FOURCC('s','1','6','l')
-#   define AOUT_FMT_U16_NE VLC_FOURCC('u','1','6','l')
-#   define AOUT_FMT_S24_NE VLC_FOURCC('s','2','4','l')
-#   define AOUT_FMT_S32_NE VLC_FOURCC('s','3','2','l')
-#   define AOUT_FMT_SPDIF_NE VLC_FOURCC('s','p','d','i')
+#   define AOUT_FMT_SPDIF_NE VLC_CODEC_SPDIFL
 #endif
 
-#define AOUT_FMT_NON_LINEAR( p_format )                                    \
-    ( ((p_format)->i_format == VLC_FOURCC('s','p','d','i'))                \
-       || ((p_format)->i_format == VLC_FOURCC('s','p','d','b'))            \
-       || ((p_format)->i_format == VLC_FOURCC('a','5','2',' '))            \
-       || ((p_format)->i_format == VLC_FOURCC('d','t','s',' ')) )
+#define AOUT_FMT_NON_LINEAR( p_format )                 \
+    ( ((p_format)->i_format == VLC_CODEC_SPDIFL)       \
+       || ((p_format)->i_format == VLC_CODEC_SPDIFB)   \
+       || ((p_format)->i_format == VLC_CODEC_A52)       \
+       || ((p_format)->i_format == VLC_CODEC_DTS) )
 
 /* This is heavily borrowed from libmad, by Robert Leslie <rob at mars.org> */
 /*




More information about the vlc-devel mailing list