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
6204feb1
Commit
6204feb1
authored
May 14, 2011
by
Vitor Sessak
Committed by
Reinhard Tartler
May 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dct32: Add AVX implementation of 32-point DCT
parent
4e653b98
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
224 additions
and
119 deletions
+224
-119
mpegaudiodec.c
libavcodec/mpegaudiodec.c
+2
-2
dct32_sse.asm
libavcodec/x86/dct32_sse.asm
+218
-116
fft.c
libavcodec/x86/fft.c
+3
-1
fft.h
libavcodec/x86/fft.h
+1
-0
No files found.
libavcodec/mpegaudiodec.c
View file @
6204feb1
...
...
@@ -69,9 +69,9 @@ typedef struct MPADecodeContext {
uint32_t
free_format_next_header
;
GetBitContext
gb
;
GetBitContext
in_gb
;
DECLARE_ALIGNED
(
16
,
MPA_INT
,
synth_buf
)[
MPA_MAX_CHANNELS
][
512
*
2
];
DECLARE_ALIGNED
(
32
,
MPA_INT
,
synth_buf
)[
MPA_MAX_CHANNELS
][
512
*
2
];
int
synth_buf_offset
[
MPA_MAX_CHANNELS
];
DECLARE_ALIGNED
(
16
,
INTFLOAT
,
sb_samples
)[
MPA_MAX_CHANNELS
][
36
][
SBLIMIT
];
DECLARE_ALIGNED
(
32
,
INTFLOAT
,
sb_samples
)[
MPA_MAX_CHANNELS
][
36
][
SBLIMIT
];
INTFLOAT
mdct_buf
[
MPA_MAX_CHANNELS
][
SBLIMIT
*
18
];
/* previous samples, for layer 3 MDCT */
GranuleDef
granules
[
2
][
2
];
/* Used in Layer 3 */
#ifdef DEBUG
...
...
libavcodec/x86/dct32_sse.asm
View file @
6204feb1
This diff is collapsed.
Click to expand it.
libavcodec/x86/fft.c
View file @
6204feb1
...
...
@@ -57,7 +57,9 @@ av_cold void ff_fft_init_mmx(FFTContext *s)
av_cold
void
ff_dct_init_mmx
(
DCTContext
*
s
)
{
int
has_vectors
=
av_get_cpu_flags
();
if
(
has_vectors
&
AV_CPU_FLAG_SSE
&&
HAVE_SSE
)
if
(
has_vectors
&
AV_CPU_FLAG_AVX
&&
HAVE_AVX
)
s
->
dct32
=
ff_dct32_float_avx
;
else
if
(
has_vectors
&
AV_CPU_FLAG_SSE
&&
HAVE_SSE
)
s
->
dct32
=
ff_dct32_float_sse
;
}
#endif
...
...
libavcodec/x86/fft.h
View file @
6204feb1
...
...
@@ -35,5 +35,6 @@ void ff_imdct_calc_sse(FFTContext *s, FFTSample *output, const FFTSample *input)
void
ff_imdct_half_sse
(
FFTContext
*
s
,
FFTSample
*
output
,
const
FFTSample
*
input
);
void
ff_imdct_half_avx
(
FFTContext
*
s
,
FFTSample
*
output
,
const
FFTSample
*
input
);
void
ff_dct32_float_sse
(
FFTSample
*
out
,
const
FFTSample
*
in
);
void
ff_dct32_float_avx
(
FFTSample
*
out
,
const
FFTSample
*
in
);
#endif
/* AVCODEC_X86_FFT_H */
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