Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
455
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
a2552da3
Commit
a2552da3
authored
15 years ago
by
Laurent Aimar
Browse files
Options
Downloads
Patches
Plain Diff
Added two codec four aout usage (spdif).
parent
200df908
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/vlc_aout.h
+14
-15
14 additions, 15 deletions
include/vlc_aout.h
with
14 additions
and
15 deletions
include/vlc_aout.h
+
14
−
15
View file @
a2552da3
...
...
@@ -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@mars.org> */
/*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment