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
98f6ee44
Commit
98f6ee44
authored
Dec 14, 2010
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics: rename 2 variables
Originally committed as revision 25987 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
12ed6226
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ac3enc.c
libavcodec/ac3enc.c
+7
-7
No files found.
libavcodec/ac3enc.c
View file @
98f6ee44
...
...
@@ -1083,7 +1083,7 @@ static int ac3_encode_frame(AVCodecContext *avctx,
int
v
;
int
blk
,
blk1
,
blk2
,
ch
,
i
;
int16_t
planar_samples
[
AC3_MAX_CHANNELS
][
AC3_BLOCK_SIZE
+
AC3_FRAME_SIZE
];
int16_t
input
_samples
[
AC3_WINDOW_SIZE
];
int16_t
windowed
_samples
[
AC3_WINDOW_SIZE
];
int32_t
mdct_coef
[
AC3_MAX_BLOCKS
][
AC3_MAX_CHANNELS
][
AC3_MAX_COEFS
];
uint8_t
exp
[
AC3_MAX_BLOCKS
][
AC3_MAX_CHANNELS
][
AC3_MAX_COEFS
];
uint8_t
exp_strategy
[
AC3_MAX_BLOCKS
][
AC3_MAX_CHANNELS
];
...
...
@@ -1118,25 +1118,25 @@ static int ac3_encode_frame(AVCodecContext *avctx,
for
(
ch
=
0
;
ch
<
s
->
channels
;
ch
++
)
{
/* fixed mdct to the six sub blocks & exponent computation */
for
(
blk
=
0
;
blk
<
AC3_MAX_BLOCKS
;
blk
++
)
{
int16_t
*
src
_samples
=
&
planar_samples
[
ch
][
blk
*
AC3_BLOCK_SIZE
];
int16_t
*
input
_samples
=
&
planar_samples
[
ch
][
blk
*
AC3_BLOCK_SIZE
];
/* apply the MDCT window */
for
(
i
=
0
;
i
<
AC3_BLOCK_SIZE
;
i
++
)
{
input_samples
[
i
]
=
MUL16
(
src
_samples
[
i
],
windowed_samples
[
i
]
=
MUL16
(
input
_samples
[
i
],
ff_ac3_window
[
i
])
>>
15
;
input_samples
[
AC3_WINDOW_SIZE
-
i
-
1
]
=
MUL16
(
src
_samples
[
AC3_WINDOW_SIZE
-
i
-
1
],
windowed_samples
[
AC3_WINDOW_SIZE
-
i
-
1
]
=
MUL16
(
input
_samples
[
AC3_WINDOW_SIZE
-
i
-
1
],
ff_ac3_window
[
i
])
>>
15
;
}
/* Normalize the samples to use the maximum available precision */
v
=
14
-
log2_tab
(
input
_samples
,
AC3_WINDOW_SIZE
);
v
=
14
-
log2_tab
(
windowed
_samples
,
AC3_WINDOW_SIZE
);
if
(
v
<
0
)
v
=
0
;
exp_shift
[
blk
][
ch
]
=
v
-
9
;
lshift_tab
(
input
_samples
,
AC3_WINDOW_SIZE
,
v
);
lshift_tab
(
windowed
_samples
,
AC3_WINDOW_SIZE
,
v
);
/* do the MDCT */
mdct512
(
mdct_coef
[
blk
][
ch
],
input
_samples
);
mdct512
(
mdct_coef
[
blk
][
ch
],
windowed
_samples
);
/* compute "exponents". We take into account the normalization there */
for
(
i
=
0
;
i
<
AC3_MAX_COEFS
;
i
++
)
{
...
...
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