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
516eb3eb
Commit
516eb3eb
authored
Jan 06, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/vorbis.c: fixed tremor output.
parent
b616b6b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
modules/codec/vorbis.c
modules/codec/vorbis.c
+16
-9
No files found.
modules/codec/vorbis.c
View file @
516eb3eb
...
...
@@ -290,7 +290,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_dec
->
fmt_in
.
p_extra
=
realloc
(
p_dec
->
fmt_in
.
p_extra
,
p_dec
->
fmt_in
.
i_extra
+
oggpacket
.
bytes
+
2
);
p_extra
=
p_dec
->
fmt_in
.
p_extra
+
p_dec
->
fmt_in
.
i_extra
;
p_extra
=
(
uint8_t
*
)
p_dec
->
fmt_in
.
p_extra
+
p_dec
->
fmt_in
.
i_extra
;
*
(
p_extra
++
)
=
oggpacket
.
bytes
>>
8
;
*
(
p_extra
++
)
=
oggpacket
.
bytes
&
0xFF
;
...
...
@@ -483,7 +483,11 @@ static aout_buffer_t *DecodePacket( decoder_t *p_dec, ogg_packet *p_oggpacket )
#endif
if
(
p_oggpacket
->
bytes
&&
#ifdef MODULE_NAME_IS_tremor
vorbis_synthesis
(
&
p_sys
->
vb
,
p_oggpacket
,
1
)
==
0
)
#else
vorbis_synthesis
(
&
p_sys
->
vb
,
p_oggpacket
)
==
0
)
#endif
vorbis_synthesis_blockin
(
&
p_sys
->
vd
,
&
p_sys
->
vb
);
/* **pp_pcm is a multichannel float vector. In stereo, for
...
...
@@ -599,24 +603,27 @@ static void ParseVorbisComments( decoder_t *p_dec )
/*****************************************************************************
* Interleave: helper function to interleave channels
*****************************************************************************/
static
void
Interleave
(
#ifdef MODULE_NAME_IS_tremor
int32_t
*
p_out
,
const
int32_t
**
pp_in
,
static
void
Interleave
(
int32_t
*
p_out
,
const
int32_t
**
pp_in
,
int
i_nb_channels
,
int
i_samples
)
{
int
i
,
j
;
for
(
j
=
0
;
j
<
i_samples
;
j
++
)
for
(
i
=
0
;
i
<
i_nb_channels
;
i
++
)
p_out
[
j
*
i_nb_channels
+
i
]
=
pp_in
[
i
][
j
]
*
(
FIXED32_ONE
>>
24
);
}
#else
float
*
p_out
,
const
float
**
pp_in
,
#endif
static
void
Interleave
(
float
*
p_out
,
const
float
**
pp_in
,
int
i_nb_channels
,
int
i_samples
)
{
int
i
,
j
;
for
(
j
=
0
;
j
<
i_samples
;
j
++
)
{
for
(
i
=
0
;
i
<
i_nb_channels
;
i
++
)
{
p_out
[
j
*
i_nb_channels
+
i
]
=
pp_in
[
i
][
j
];
}
}
}
#endif
/*****************************************************************************
* CloseDecoder: vorbis decoder destruction
...
...
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