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
21fcab35
Commit
21fcab35
authored
Dec 20, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: drop support for S24N
parent
ea24c8a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
60 deletions
+0
-60
modules/audio_filter/converter/format.c
modules/audio_filter/converter/format.c
+0
-55
modules/audio_output/oss.c
modules/audio_output/oss.c
+0
-2
modules/audio_output/sndio.c
modules/audio_output/sndio.c
+0
-3
No files found.
modules/audio_filter/converter/format.c
View file @
21fcab35
...
...
@@ -190,26 +190,6 @@ static block_t *S16toU8(filter_t *filter, block_t *b)
return
b
;
}
static
block_t
*
S24toS16
(
filter_t
*
filter
,
block_t
*
b
)
{
VLC_UNUSED
(
filter
);
uint8_t
*
src
=
(
uint8_t
*
)
b
->
p_buffer
;
uint8_t
*
dst
=
(
uint8_t
*
)
src
;
for
(
int
i
=
b
->
i_buffer
/
3
;
i
--
;)
{
#ifdef WORDS_BIGENDIAN
*
dst
++
=
*
src
++
;
*
dst
++
=
*
src
++
;
src
++
;
#else
src
++
;
*
dst
++
=
*
src
++
;
*
dst
++
=
*
src
++
;
#endif
}
b
->
i_buffer
=
b
->
i_buffer
*
2
/
3
;
return
b
;
}
static
block_t
*
S32toS16
(
filter_t
*
filter
,
block_t
*
b
)
{
VLC_UNUSED
(
filter
);
...
...
@@ -313,23 +293,6 @@ static void U8toS16(block_t *bdst, const block_t *bsrc)
*
dst
++
=
((
*
src
++
)
-
128
)
<<
8
;
}
static
void
S16toS24
(
block_t
*
bdst
,
const
block_t
*
bsrc
)
{
uint8_t
*
src
=
(
uint8_t
*
)
bsrc
->
p_buffer
;
uint8_t
*
dst
=
(
uint8_t
*
)
bdst
->
p_buffer
;
for
(
int
i
=
bsrc
->
i_buffer
/
2
;
i
--
;)
{
#ifdef WORDS_BIGENDIAN
*
dst
++
=
*
src
++
;
*
dst
++
=
*
src
++
;
*
dst
++
=
0
;
#else
*
dst
++
=
0
;
*
dst
++
=
*
src
++
;
*
dst
++
=
*
src
++
;
#endif
}
}
static
void
S16toS32
(
block_t
*
bdst
,
const
block_t
*
bsrc
)
{
int16_t
*
src
=
(
int16_t
*
)
bsrc
->
p_buffer
;
...
...
@@ -355,20 +318,6 @@ static void S16toFl32(block_t *bdst, const block_t *bsrc)
#endif
}
}
static
void
S24toFl32
(
block_t
*
bdst
,
const
block_t
*
bsrc
)
{
uint8_t
*
src
=
bsrc
->
p_buffer
;
float
*
dst
=
(
float
*
)
bdst
->
p_buffer
;
for
(
int
i
=
bsrc
->
i_buffer
/
3
;
i
--
;)
{
#ifdef WORDS_BIGENDIAN
int32_t
v
=
(
src
[
0
]
<<
24
)
|
(
src
[
1
]
<<
16
)
|
(
src
[
2
]
<<
8
);
#else
int32_t
v
=
(
src
[
0
]
<<
8
)
|
(
src
[
1
]
<<
16
)
|
(
src
[
2
]
<<
24
);
#endif
src
+=
3
;
*
dst
++
=
v
/
2147483648
.
0
;
}
}
/* */
static
const
struct
{
...
...
@@ -381,7 +330,6 @@ static const struct {
{
VLC_CODEC_FI32
,
VLC_CODEC_S16N
,
Fi32toS16
},
{
VLC_CODEC_S32N
,
VLC_CODEC_FL32
,
S32toFl32
},
{
VLC_CODEC_S24N
,
VLC_CODEC_S16N
,
S24toS16
},
{
VLC_CODEC_S32N
,
VLC_CODEC_S16N
,
S32toS16
},
{
VLC_CODEC_FL32
,
VLC_CODEC_S16N
,
Fl32toS16
},
...
...
@@ -395,9 +343,6 @@ static const struct {
vlc_fourcc_t
dst
;
cvt_indirect_t
convert
;
}
cvt_indirects
[]
=
{
{
VLC_CODEC_S24N
,
VLC_CODEC_FL32
,
S24toFl32
},
{
VLC_CODEC_S16N
,
VLC_CODEC_S24N
,
S16toS24
},
{
VLC_CODEC_S16N
,
VLC_CODEC_S32N
,
S16toS32
},
{
VLC_CODEC_S16N
,
VLC_CODEC_FL32
,
S16toFl32
},
...
...
modules/audio_output/oss.c
View file @
21fcab35
...
...
@@ -148,8 +148,6 @@ static int Start (audio_output_t *aout, audio_sample_format_t *restrict fmt)
{
case
AFMT_U8
:
fmt
->
i_format
=
VLC_CODEC_U8
;
break
;
case
AFMT_S16_NE
:
fmt
->
i_format
=
VLC_CODEC_S16N
;
break
;
//case AFMT_S24_BE:
//case AFMT_S24_LE:
case
AFMT_S32_NE
:
fmt
->
i_format
=
VLC_CODEC_S32N
;
break
;
#ifdef AFMT_FLOAT
case
AFMT_FLOAT
:
fmt
->
i_format
=
VLC_CODEC_FL32
;
break
;
...
...
modules/audio_output/sndio.c
View file @
21fcab35
...
...
@@ -124,9 +124,6 @@ static int Start (audio_output_t *aout, audio_sample_format_t *restrict fmt)
case
16
:
fmt
->
i_format
=
VLC_CODEC_S16N
;
break
;
case
24
:
fmt
->
i_format
=
VLC_CODEC_S24N
;
break
;
case
32
:
fmt
->
i_format
=
VLC_CODEC_S32N
;
break
;
...
...
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