Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
66ede74c
Commit
66ede74c
authored
Nov 15, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: internal helper for endianess conversion
parent
9da30f1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
src/audio_output/aout_internal.h
src/audio_output/aout_internal.h
+1
-0
src/audio_output/common.c
src/audio_output/common.c
+40
-0
No files found.
src/audio_output/aout_internal.h
View file @
66ede74c
...
...
@@ -123,6 +123,7 @@ void aout_OutputDelete( audio_output_t * p_aout );
/* From common.c : */
vlc_fourcc_t
aout_NativeEndian
(
vlc_fourcc_t
);
void
aout_FormatsPrint
(
vlc_object_t
*
,
const
char
*
,
const
audio_sample_format_t
*
,
const
audio_sample_format_t
*
);
...
...
src/audio_output/common.c
View file @
66ede74c
...
...
@@ -79,6 +79,46 @@ unsigned int aout_BitsPerSample( vlc_fourcc_t i_format )
}
}
vlc_fourcc_t
aout_NativeEndian
(
vlc_fourcc_t
i_format
)
{
switch
(
i_format
)
{
case
VLC_CODEC_F64B
:
case
VLC_CODEC_F64L
:
return
VLC_CODEC_FL64
;
case
VLC_CODEC_F32B
:
case
VLC_CODEC_F32L
:
return
VLC_CODEC_FL32
;
case
VLC_CODEC_S32B
:
case
VLC_CODEC_S32L
:
return
VLC_CODEC_S32N
;
case
VLC_CODEC_U32B
:
case
VLC_CODEC_U32L
:
return
VLC_CODEC_U32N
;
case
VLC_CODEC_S24B
:
case
VLC_CODEC_S24L
:
return
VLC_CODEC_S24N
;
case
VLC_CODEC_U24B
:
case
VLC_CODEC_U24L
:
return
VLC_CODEC_U24N
;
case
VLC_CODEC_S16B
:
case
VLC_CODEC_S16L
:
return
VLC_CODEC_S16N
;
case
VLC_CODEC_U16B
:
case
VLC_CODEC_U16L
:
return
VLC_CODEC_U16N
;
}
return
0
;
}
/*****************************************************************************
* aout_FormatPrepare : compute the number of bytes per frame & frame length
*****************************************************************************/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment