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
edd897b1
Commit
edd897b1
authored
Sep 22, 2009
by
Benjamin Larsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ff_sine_32 in atrac1.
Originally committed as revision 19967 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
138fe832
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
atrac1.c
libavcodec/atrac1.c
+3
-5
No files found.
libavcodec/atrac1.c
View file @
edd897b1
...
...
@@ -82,8 +82,6 @@ typedef struct {
DSPContext
dsp
;
}
AT1Ctx
;
DECLARE_ALIGNED_16
(
static
float
,
short_window
[
32
]);
/** size of the transform in samples in the long mode for each QMF band */
static
const
uint16_t
samples_per_band
[
3
]
=
{
128
,
128
,
256
};
static
const
uint8_t
mdct_long_nbits
[
3
]
=
{
7
,
7
,
8
};
...
...
@@ -134,7 +132,7 @@ static int at1_imdct_block(AT1SUCtx* su, AT1Ctx *q)
/* overlap and window long blocks */
q
->
dsp
.
vector_fmul_window
(
q
->
bands
[
band_num
],
&
su
->
spectrum
[
1
][
ref_pos
+
band_samples
-
16
],
&
su
->
spectrum
[
0
][
ref_pos
],
short_window
,
0
,
16
);
&
su
->
spectrum
[
0
][
ref_pos
],
ff_sine_32
,
0
,
16
);
memcpy
(
q
->
bands
[
band_num
]
+
32
,
&
su
->
spectrum
[
0
][
ref_pos
+
16
],
240
*
sizeof
(
float
));
}
else
{
/* short blocks */
...
...
@@ -146,7 +144,7 @@ static int at1_imdct_block(AT1SUCtx* su, AT1Ctx *q)
/* overlap and window between short blocks */
q
->
dsp
.
vector_fmul_window
(
&
q
->
bands
[
band_num
][
start_pos
],
prev_buf
,
&
su
->
spectrum
[
0
][
ref_pos
+
start_pos
],
short_window
,
0
,
16
);
&
su
->
spectrum
[
0
][
ref_pos
+
start_pos
],
ff_sine_32
,
0
,
16
);
prev_buf
=
&
su
->
spectrum
[
0
][
ref_pos
+
start_pos
+
16
];
start_pos
+=
32
;
// use hardcoded block_size
...
...
@@ -342,7 +340,7 @@ static av_cold int atrac1_decode_init(AVCodecContext *avctx)
ff_mdct_init
(
&
q
->
mdct_ctx
[
1
],
8
,
1
,
-
1
.
0
/
(
1
<<
15
));
ff_mdct_init
(
&
q
->
mdct_ctx
[
2
],
9
,
1
,
-
1
.
0
/
(
1
<<
15
));
ff_sine_window_init
(
short_window
,
32
);
ff_sine_window_init
(
ff_sine_32
,
32
);
atrac_generate_tables
();
...
...
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