Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
24af1aa0
Commit
24af1aa0
authored
11 years ago
by
Diego Biurrun
Browse files
Options
Downloads
Patches
Plain Diff
fft: Convert FFT/MDCT permutation type #defines to enums
parent
746ad4e0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/fft.h
+13
-7
13 additions, 7 deletions
libavcodec/fft.h
with
13 additions
and
7 deletions
libavcodec/fft.h
+
13
−
7
View file @
24af1aa0
...
@@ -59,6 +59,17 @@ typedef struct FFTDComplex {
...
@@ -59,6 +59,17 @@ typedef struct FFTDComplex {
/* FFT computation */
/* FFT computation */
enum
fft_permutation_type
{
FF_FFT_PERM_DEFAULT
,
FF_FFT_PERM_SWAP_LSBS
,
FF_FFT_PERM_AVX
,
};
enum
mdct_permutation_type
{
FF_MDCT_PERM_NONE
,
FF_MDCT_PERM_INTERLEAVE
,
};
struct
FFTContext
{
struct
FFTContext
{
int
nbits
;
int
nbits
;
int
inverse
;
int
inverse
;
...
@@ -82,13 +93,8 @@ struct FFTContext {
...
@@ -82,13 +93,8 @@ struct FFTContext {
void
(
*
imdct_half
)(
struct
FFTContext
*
s
,
FFTSample
*
output
,
const
FFTSample
*
input
);
void
(
*
imdct_half
)(
struct
FFTContext
*
s
,
FFTSample
*
output
,
const
FFTSample
*
input
);
void
(
*
mdct_calc
)(
struct
FFTContext
*
s
,
FFTSample
*
output
,
const
FFTSample
*
input
);
void
(
*
mdct_calc
)(
struct
FFTContext
*
s
,
FFTSample
*
output
,
const
FFTSample
*
input
);
void
(
*
mdct_calcw
)(
struct
FFTContext
*
s
,
FFTDouble
*
output
,
const
FFTSample
*
input
);
void
(
*
mdct_calcw
)(
struct
FFTContext
*
s
,
FFTDouble
*
output
,
const
FFTSample
*
input
);
int
fft_permutation
;
enum
fft_permutation_type
fft_permutation
;
#define FF_FFT_PERM_DEFAULT 0
enum
mdct_permutation_type
mdct_permutation
;
#define FF_FFT_PERM_SWAP_LSBS 1
#define FF_FFT_PERM_AVX 2
int
mdct_permutation
;
#define FF_MDCT_PERM_NONE 0
#define FF_MDCT_PERM_INTERLEAVE 1
};
};
#if CONFIG_HARDCODED_TABLES
#if CONFIG_HARDCODED_TABLES
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment