Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
7bedba63
Commit
7bedba63
authored
Mar 16, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/audio_filter/converter/a52tofloat32.c: support for fixed point version of liba52.
parent
7e8a0f41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
modules/audio_filter/converter/a52tofloat32.c
modules/audio_filter/converter/a52tofloat32.c
+12
-0
No files found.
modules/audio_filter/converter/a52tofloat32.c
View file @
7bedba63
...
...
@@ -124,7 +124,11 @@ static int Create( vlc_object_t *p_this )
int
i_ret
;
if
(
p_filter
->
input
.
i_format
!=
VLC_FOURCC
(
'a'
,
'5'
,
'2'
,
' '
)
#ifdef LIBA52_FIXED
||
p_filter
->
output
.
i_format
!=
VLC_FOURCC
(
'f'
,
'i'
,
'3'
,
'2'
)
)
#else
||
p_filter
->
output
.
i_format
!=
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
)
)
#endif
{
return
-
1
;
}
...
...
@@ -317,7 +321,11 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
aout_buffer_t
*
p_in_buf
,
aout_buffer_t
*
p_out_buf
)
{
filter_sys_t
*
p_sys
=
(
filter_sys_t
*
)
p_filter
->
p_sys
;
#ifdef LIBA52_FIXED
sample_t
i_sample_level
=
(
1
<<
24
);
#else
sample_t
i_sample_level
=
1
;
#endif
int
i_flags
=
p_sys
->
i_flags
;
int
i_bytes_per_block
=
256
*
p_sys
->
i_nb_channels
*
sizeof
(
float
);
...
...
@@ -408,7 +416,11 @@ static int OpenFilter( vlc_object_t *p_this )
}
p_filter
->
fmt_out
.
audio
.
i_format
=
#ifdef LIBA52_FIXED
p_filter
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
'f'
,
'i'
,
'3'
,
'2'
);
#else
p_filter
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
);
#endif
/* Allocate the memory needed to store the module's structure */
p_sys
=
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
...
...
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