Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
b2c7e144
Commit
b2c7e144
authored
Mar 01, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audio filters: remove old filter_NewAudioBuffer()
parent
d09b6f75
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
11 additions
and
14 deletions
+11
-14
include/vlc_filter.h
include/vlc_filter.h
+0
-2
modules/arm_neon/simple_channel_mixer.c
modules/arm_neon/simple_channel_mixer.c
+1
-1
modules/audio_filter/channel_mixer/dolby.c
modules/audio_filter/channel_mixer/dolby.c
+1
-1
modules/audio_filter/channel_mixer/headphone.c
modules/audio_filter/channel_mixer/headphone.c
+1
-1
modules/audio_filter/channel_mixer/remap.c
modules/audio_filter/channel_mixer/remap.c
+1
-1
modules/audio_filter/channel_mixer/simple.c
modules/audio_filter/channel_mixer/simple.c
+1
-1
modules/audio_filter/channel_mixer/trivial.c
modules/audio_filter/channel_mixer/trivial.c
+1
-1
modules/audio_filter/converter/a52tofloat32.c
modules/audio_filter/converter/a52tofloat32.c
+1
-1
modules/audio_filter/converter/a52tospdif.c
modules/audio_filter/converter/a52tospdif.c
+1
-1
modules/audio_filter/converter/dtstospdif.c
modules/audio_filter/converter/dtstospdif.c
+1
-2
modules/audio_filter/resampler/bandlimited.c
modules/audio_filter/resampler/bandlimited.c
+1
-1
modules/audio_filter/scaletempo.c
modules/audio_filter/scaletempo.c
+1
-1
No files found.
include/vlc_filter.h
View file @
b2c7e144
...
...
@@ -209,8 +209,6 @@ static inline void filter_DeleteSubpicture( filter_t *p_filter, subpicture_t *p_
p_filter
->
pf_sub_buffer_del
(
p_filter
,
p_subpicture
);
}
#define filter_NewAudioBuffer(f,s) ((f), block_Alloc(s))
/**
* This function gives all input attachments at once.
*
...
...
modules/arm_neon/simple_channel_mixer.c
View file @
b2c7e144
...
...
@@ -89,7 +89,7 @@ static bool FilterInit( filter_t *p_filter, block_t *p_block, block_t **pp_out )
p_filter
->
fmt_out
.
audio
.
i_bitspersample
*
p_filter
->
fmt_out
.
audio
.
i_channels
/
8
;
block_t
*
p_out
=
filter_NewAudioBuffer
(
p_filter
,
i_out_size
);
block_t
*
p_out
=
block_Alloc
(
i_out_size
);
if
(
!
p_out
)
{
msg_Warn
(
p_filter
,
"can't get output buffer"
);
...
...
modules/audio_filter/channel_mixer/dolby.c
View file @
b2c7e144
...
...
@@ -164,7 +164,7 @@ static block_t *DoWork( filter_t * p_filter, block_t * p_in_buf )
size_t
i_nb_channels
=
aout_FormatNbChannels
(
&
p_filter
->
fmt_out
.
audio
);
size_t
i_nb_rear
=
0
;
size_t
i
;
block_t
*
p_out_buf
=
filter_NewAudioBuffer
(
p_filter
,
block_t
*
p_out_buf
=
block_Alloc
(
sizeof
(
float
)
*
i_nb_samples
*
i_nb_channels
);
if
(
!
p_out_buf
)
goto
out
;
...
...
modules/audio_filter/channel_mixer/headphone.c
View file @
b2c7e144
...
...
@@ -510,7 +510,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
p_filter
->
fmt_out
.
audio
.
i_bitspersample
/
8
*
aout_FormatNbChannels
(
&
(
p_filter
->
fmt_out
.
audio
)
);
block_t
*
p_out
=
filter_NewAudioBuffer
(
p_filter
,
i_out_size
);
block_t
*
p_out
=
block_Alloc
(
i_out_size
);
if
(
!
p_out
)
{
msg_Warn
(
p_filter
,
"can't get output buffer"
);
...
...
modules/audio_filter/channel_mixer/remap.c
View file @
b2c7e144
...
...
@@ -376,7 +376,7 @@ static block_t *Remap( filter_t *p_filter, block_t *p_block )
size_t
i_out_size
=
p_block
->
i_nb_samples
*
p_filter
->
fmt_out
.
audio
.
i_bytes_per_frame
;
block_t
*
p_out
=
filter_NewAudioBuffer
(
p_filter
,
i_out_size
);
block_t
*
p_out
=
block_Alloc
(
i_out_size
);
if
(
!
p_out
)
{
msg_Warn
(
p_filter
,
"can't get output buffer"
);
...
...
modules/audio_filter/channel_mixer/simple.c
View file @
b2c7e144
...
...
@@ -247,7 +247,7 @@ static block_t *Filter( filter_t *p_filter, block_t *p_block )
p_filter
->
fmt_out
.
audio
.
i_bitspersample
*
p_filter
->
fmt_out
.
audio
.
i_channels
/
8
;
block_t
*
p_out
=
filter_NewAudioBuffer
(
p_filter
,
i_out_size
);
block_t
*
p_out
=
block_Alloc
(
i_out_size
);
if
(
!
p_out
)
{
msg_Warn
(
p_filter
,
"can't get output buffer"
);
...
...
modules/audio_filter/channel_mixer/trivial.c
View file @
b2c7e144
...
...
@@ -109,7 +109,7 @@ static block_t *DoWork( filter_t * p_filter, block_t * p_in_buf )
}
else
{
p_out_buf
=
filter_NewAudioBuffer
(
p_filter
,
p_out_buf
=
block_Alloc
(
p_in_buf
->
i_buffer
/
i_input_nb
*
i_output_nb
);
if
(
!
p_out_buf
)
goto
out
;
...
...
modules/audio_filter/converter/a52tofloat32.c
View file @
b2c7e144
...
...
@@ -296,7 +296,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_in_buf )
int
i_flags
=
p_sys
->
i_flags
;
size_t
i_bytes_per_block
=
256
*
p_sys
->
i_nb_channels
*
sizeof
(
sample_t
);
block_t
*
p_out_buf
=
filter_NewAudioBuffer
(
p_filter
,
6
*
i_bytes_per_block
);
block_t
*
p_out_buf
=
block_Alloc
(
6
*
i_bytes_per_block
);
if
(
unlikely
(
p_out_buf
==
NULL
)
)
goto
out
;
...
...
modules/audio_filter/converter/a52tospdif.c
View file @
b2c7e144
...
...
@@ -86,7 +86,7 @@ static block_t *DoWork( filter_t * p_filter, block_t *p_in_buf )
uint16_t
i_frame_size
=
p_in_buf
->
i_buffer
/
2
;
uint8_t
*
p_in
=
p_in_buf
->
p_buffer
;
block_t
*
p_out_buf
=
filter_NewAudioBuffer
(
p_filter
,
AOUT_SPDIF_SIZE
);
block_t
*
p_out_buf
=
block_Alloc
(
AOUT_SPDIF_SIZE
);
if
(
!
p_out_buf
)
goto
out
;
uint8_t
*
p_out
=
p_out_buf
->
p_buffer
;
...
...
modules/audio_filter/converter/dtstospdif.c
View file @
b2c7e144
...
...
@@ -156,8 +156,7 @@ static block_t *DoWork( filter_t * p_filter, block_t * p_in_buf )
}
p_filter
->
p_sys
->
i_frames
=
0
;
block_t
*
p_out_buf
=
filter_NewAudioBuffer
(
p_filter
,
12
*
p_in_buf
->
i_nb_samples
);
block_t
*
p_out_buf
=
block_Alloc
(
12
*
p_in_buf
->
i_nb_samples
);
if
(
!
p_out_buf
)
goto
out
;
...
...
modules/audio_filter/resampler/bandlimited.c
View file @
b2c7e144
...
...
@@ -145,7 +145,7 @@ static block_t *Resample( filter_t * p_filter, block_t * p_in_buf )
size_t
i_out_size
=
i_bytes_per_frame
*
(
1
+
(
p_in_buf
->
i_nb_samples
*
p_filter
->
fmt_out
.
audio
.
i_rate
/
p_filter
->
fmt_in
.
audio
.
i_rate
)
)
+
p_filter
->
p_sys
->
i_buf_size
;
block_t
*
p_out_buf
=
filter_NewAudioBuffer
(
p_filter
,
i_out_size
);
block_t
*
p_out_buf
=
block_Alloc
(
i_out_size
);
if
(
!
p_out_buf
)
{
block_Release
(
p_in_buf
);
...
...
modules/audio_filter/scaletempo.c
View file @
b2c7e144
...
...
@@ -468,7 +468,7 @@ static block_t *DoWork( filter_t * p_filter, block_t * p_in_buf )
}
size_t
i_outsize
=
calculate_output_buffer_size
(
p_filter
,
p_in_buf
->
i_buffer
);
block_t
*
p_out_buf
=
filter_NewAudioBuffer
(
p_filter
,
i_outsize
);
block_t
*
p_out_buf
=
block_Alloc
(
i_outsize
);
if
(
p_out_buf
==
NULL
)
return
NULL
;
...
...
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