Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
51da00e2
Commit
51da00e2
authored
Jan 02, 2016
by
Hendrik Leppkes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dca: adjust decoding of the XBR extension for integer core decoding
parent
af018d80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
dcadec.c
libavcodec/dcadec.c
+8
-7
No files found.
libavcodec/dcadec.c
View file @
51da00e2
...
...
@@ -1344,17 +1344,17 @@ int ff_dca_xbr_parse_frame(DCAContext *s)
for
(
i
=
0
;
i
<
n_xbr_ch
[
chset
];
i
++
)
{
for
(
j
=
0
;
j
<
active_bands
[
chset
][
i
];
j
++
)
{
const
int
xbr_abits
=
abits_high
[
i
][
j
];
const
float
quant_step_size
=
ff_dca_lossless_quant_d
[
xbr_abits
];
const
uint32_t
quant_step_size
=
ff_dca_lossless_quant
[
xbr_abits
];
const
int
sfi
=
xbr_tmode
&&
s
->
dca_chan
[
i
].
transition_mode
[
j
]
&&
subsubframe
>=
s
->
dca_chan
[
i
].
transition_mode
[
j
];
const
float
rscale
=
quant_step_size
*
scale_table_high
[
i
][
j
][
sfi
];
floa
t
*
subband_samples
=
s
->
dca_chan
[
chan_base
+
i
].
subband_samples
[
k
][
j
];
int
block
[
8
];
const
uint32_t
rscale
=
scale_table_high
[
i
][
j
][
sfi
];
int32_
t
*
subband_samples
=
s
->
dca_chan
[
chan_base
+
i
].
subband_samples
[
k
][
j
];
int
32_t
block
[
SAMPLES_PER_SUBBAND
];
if
(
xbr_abits
<=
0
)
continue
;
if
(
xbr_abits
>
7
)
{
get_array
(
&
s
->
gb
,
block
,
8
,
xbr_abits
-
3
);
get_array
(
&
s
->
gb
,
block
,
SAMPLES_PER_SUBBAND
,
xbr_abits
-
3
);
}
else
{
int
block_code1
,
block_code2
,
size
,
levels
,
err
;
...
...
@@ -1373,8 +1373,9 @@ int ff_dca_xbr_parse_frame(DCAContext *s)
}
/* scale & sum into subband */
for
(
l
=
0
;
l
<
8
;
l
++
)
subband_samples
[
l
]
+=
(
float
)
block
[
l
]
*
rscale
;
s
->
dcadsp
.
dequantize
(
block
,
quant_step_size
,
rscale
);
for
(
l
=
0
;
l
<
SAMPLES_PER_SUBBAND
;
l
++
)
subband_samples
[
l
]
+=
block
[
l
];
}
}
...
...
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