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
9b4cd586
Commit
9b4cd586
authored
Feb 29, 2012
by
Vitor Sessak
Committed by
Ronald S. Bultje
Feb 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegaudiodec: use DSPUtil.butterflies_float().
Signed-off-by:
Ronald S. Bultje
<
rsbultje@gmail.com
>
parent
841c1717
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
mpegaudiodec.c
libavcodec/mpegaudiodec.c
+7
-0
No files found.
libavcodec/mpegaudiodec.c
View file @
9b4cd586
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
#include "get_bits.h"
#include "get_bits.h"
#include "mathops.h"
#include "mathops.h"
#include "mpegaudiodsp.h"
#include "mpegaudiodsp.h"
#include "dsputil.h"
/*
/*
* TODO:
* TODO:
...
@@ -80,6 +81,7 @@ typedef struct MPADecodeContext {
...
@@ -80,6 +81,7 @@ typedef struct MPADecodeContext {
int
err_recognition
;
int
err_recognition
;
AVCodecContext
*
avctx
;
AVCodecContext
*
avctx
;
MPADSPContext
mpadsp
;
MPADSPContext
mpadsp
;
DSPContext
dsp
;
AVFrame
frame
;
AVFrame
frame
;
}
MPADecodeContext
;
}
MPADecodeContext
;
...
@@ -432,6 +434,7 @@ static av_cold int decode_init(AVCodecContext * avctx)
...
@@ -432,6 +434,7 @@ static av_cold int decode_init(AVCodecContext * avctx)
s
->
avctx
=
avctx
;
s
->
avctx
=
avctx
;
ff_mpadsp_init
(
&
s
->
mpadsp
);
ff_mpadsp_init
(
&
s
->
mpadsp
);
ff_dsputil_init
(
&
s
->
dsp
,
avctx
);
avctx
->
sample_fmt
=
OUT_FMT
;
avctx
->
sample_fmt
=
OUT_FMT
;
s
->
err_recognition
=
avctx
->
err_recognition
;
s
->
err_recognition
=
avctx
->
err_recognition
;
...
@@ -1153,6 +1156,9 @@ found2:
...
@@ -1153,6 +1156,9 @@ found2:
/* ms stereo ONLY */
/* ms stereo ONLY */
/* NOTE: the 1/sqrt(2) normalization factor is included in the
/* NOTE: the 1/sqrt(2) normalization factor is included in the
global gain */
global gain */
#if CONFIG_FLOAT
s
->
dsp
.
butterflies_float
(
g0
->
sb_hybrid
,
g1
->
sb_hybrid
,
576
);
#else
tab0
=
g0
->
sb_hybrid
;
tab0
=
g0
->
sb_hybrid
;
tab1
=
g1
->
sb_hybrid
;
tab1
=
g1
->
sb_hybrid
;
for
(
i
=
0
;
i
<
576
;
i
++
)
{
for
(
i
=
0
;
i
<
576
;
i
++
)
{
...
@@ -1161,6 +1167,7 @@ found2:
...
@@ -1161,6 +1167,7 @@ found2:
tab0
[
i
]
=
tmp0
+
tmp1
;
tab0
[
i
]
=
tmp0
+
tmp1
;
tab1
[
i
]
=
tmp0
-
tmp1
;
tab1
[
i
]
=
tmp0
-
tmp1
;
}
}
#endif
}
}
}
}
...
...
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