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
2bb29da6
Commit
2bb29da6
authored
Apr 13, 2010
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DCA: indent
Originally committed as revision 22872 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
69e17136
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
dca.c
libavcodec/dca.c
+19
-19
No files found.
libavcodec/dca.c
View file @
2bb29da6
...
...
@@ -959,28 +959,28 @@ static int dca_subsubframe(DCAContext * s)
float
rscale
=
quant_step_size
*
s
->
scale_factor
[
k
][
l
][
sfi
]
*
s
->
scalefactor_adj
[
k
][
sel
];
if
(
abits
>=
11
||
!
dca_smpl_bitalloc
[
abits
].
vlc
[
sel
].
table
){
if
(
abits
<=
7
){
/* Block code */
int
block_code1
,
block_code2
,
size
,
levels
;
size
=
abits_sizes
[
abits
-
1
];
levels
=
abits_levels
[
abits
-
1
];
block_code1
=
get_bits
(
&
s
->
gb
,
size
);
/* FIXME Should test return value */
decode_blockcode
(
block_code1
,
levels
,
block
);
block_code2
=
get_bits
(
&
s
->
gb
,
size
);
decode_blockcode
(
block_code2
,
levels
,
&
block
[
4
]);
if
(
abits
<=
7
){
/* Block code */
int
block_code1
,
block_code2
,
size
,
levels
;
size
=
abits_sizes
[
abits
-
1
];
levels
=
abits_levels
[
abits
-
1
];
block_code1
=
get_bits
(
&
s
->
gb
,
size
);
/* FIXME Should test return value */
decode_blockcode
(
block_code1
,
levels
,
block
);
block_code2
=
get_bits
(
&
s
->
gb
,
size
);
decode_blockcode
(
block_code2
,
levels
,
&
block
[
4
]);
}
else
{
/* no coding */
for
(
m
=
0
;
m
<
8
;
m
++
)
block
[
m
]
=
get_sbits
(
&
s
->
gb
,
abits
-
3
);
}
}
else
{
/*
no coding
*/
/*
Huffman coded
*/
for
(
m
=
0
;
m
<
8
;
m
++
)
block
[
m
]
=
get_
sbits
(
&
s
->
gb
,
abits
-
3
);
block
[
m
]
=
get_
bitalloc
(
&
s
->
gb
,
&
dca_smpl_bitalloc
[
abits
],
sel
);
}
}
else
{
/* Huffman coded */
for
(
m
=
0
;
m
<
8
;
m
++
)
block
[
m
]
=
get_bitalloc
(
&
s
->
gb
,
&
dca_smpl_bitalloc
[
abits
],
sel
);
}
s
->
dsp
.
int32_to_float_fmul_scalar
(
subband_samples
[
k
][
l
],
block
,
rscale
,
8
);
...
...
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