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
36a9dd2f
Commit
36a9dd2f
authored
12 years ago
by
Michael Niedermayer
Browse files
Options
Downloads
Patches
Plain Diff
swr: align options a little
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
23282c22
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
libswresample/swresample.c
+21
-23
21 additions, 23 deletions
libswresample/swresample.c
with
21 additions
and
23 deletions
libswresample/swresample.c
+
21
−
23
View file @
36a9dd2f
...
@@ -38,29 +38,27 @@
...
@@ -38,29 +38,27 @@
#define PARAM AV_OPT_FLAG_AUDIO_PARAM
#define PARAM AV_OPT_FLAG_AUDIO_PARAM
static
const
AVOption
options
[]
=
{
static
const
AVOption
options
[]
=
{
{
"ich"
,
"input channel count"
,
OFFSET
(
in
.
ch_count
),
AV_OPT_TYPE_INT
,
{.
dbl
=
2
},
0
,
SWR_CH_MAX
,
PARAM
},
{
"ich"
,
"input channel count"
,
OFFSET
(
in
.
ch_count
),
AV_OPT_TYPE_INT
,
{.
dbl
=
2
},
0
,
SWR_CH_MAX
,
PARAM
},
{
"och"
,
"output channel count"
,
OFFSET
(
out
.
ch_count
),
AV_OPT_TYPE_INT
,
{.
dbl
=
2
},
0
,
SWR_CH_MAX
,
PARAM
},
{
"och"
,
"output channel count"
,
OFFSET
(
out
.
ch_count
),
AV_OPT_TYPE_INT
,
{.
dbl
=
2
},
0
,
SWR_CH_MAX
,
PARAM
},
{
"uch"
,
"used channel count"
,
OFFSET
(
used_ch_count
),
AV_OPT_TYPE_INT
,
{.
dbl
=
0
},
0
,
SWR_CH_MAX
,
PARAM
},
{
"uch"
,
"used channel count"
,
OFFSET
(
used_ch_count
),
AV_OPT_TYPE_INT
,
{.
dbl
=
0
},
0
,
SWR_CH_MAX
,
PARAM
},
{
"isr"
,
"input sample rate"
,
OFFSET
(
in_sample_rate
),
AV_OPT_TYPE_INT
,
{.
dbl
=
48000
},
1
,
INT_MAX
,
PARAM
},
{
"isr"
,
"input sample rate"
,
OFFSET
(
in_sample_rate
),
AV_OPT_TYPE_INT
,
{.
dbl
=
48000
},
1
,
INT_MAX
,
PARAM
},
{
"osr"
,
"output sample rate"
,
OFFSET
(
out_sample_rate
),
AV_OPT_TYPE_INT
,
{.
dbl
=
48000
},
1
,
INT_MAX
,
PARAM
},
{
"osr"
,
"output sample rate"
,
OFFSET
(
out_sample_rate
),
AV_OPT_TYPE_INT
,
{.
dbl
=
48000
},
1
,
INT_MAX
,
PARAM
},
//{"ip" , "input planar" , OFFSET( in.planar ), AV_OPT_TYPE_INT, {.dbl=0}, 0, 1, PARAM},
{
"isf"
,
"input sample format"
,
OFFSET
(
in_sample_fmt
),
AV_OPT_TYPE_INT
,
{.
dbl
=
AV_SAMPLE_FMT_S16
},
0
,
AV_SAMPLE_FMT_NB
-
1
+
256
,
PARAM
},
//{"op" , "output planar" , OFFSET(out.planar ), AV_OPT_TYPE_INT, {.dbl=0}, 0, 1, PARAM},
{
"osf"
,
"output sample format"
,
OFFSET
(
out_sample_fmt
),
AV_OPT_TYPE_INT
,
{.
dbl
=
AV_SAMPLE_FMT_S16
},
0
,
AV_SAMPLE_FMT_NB
-
1
+
256
,
PARAM
},
{
"isf"
,
"input sample format"
,
OFFSET
(
in_sample_fmt
),
AV_OPT_TYPE_INT
,
{.
dbl
=
AV_SAMPLE_FMT_S16
},
0
,
AV_SAMPLE_FMT_NB
-
1
+
256
,
PARAM
},
{
"tsf"
,
"internal sample format"
,
OFFSET
(
int_sample_fmt
),
AV_OPT_TYPE_INT
,
{.
dbl
=
AV_SAMPLE_FMT_NONE
},
-
1
,
AV_SAMPLE_FMT_FLT
,
PARAM
},
{
"osf"
,
"output sample format"
,
OFFSET
(
out_sample_fmt
),
AV_OPT_TYPE_INT
,
{.
dbl
=
AV_SAMPLE_FMT_S16
},
0
,
AV_SAMPLE_FMT_NB
-
1
+
256
,
PARAM
},
{
"icl"
,
"input channel layout"
,
OFFSET
(
in_ch_layout
),
AV_OPT_TYPE_INT64
,
{.
dbl
=
0
},
0
,
INT64_MAX
,
PARAM
,
"channel_layout"
},
{
"tsf"
,
"internal sample format"
,
OFFSET
(
int_sample_fmt
),
AV_OPT_TYPE_INT
,
{.
dbl
=
AV_SAMPLE_FMT_NONE
},
-
1
,
AV_SAMPLE_FMT_FLT
,
},
{
"ocl"
,
"output channel layout"
,
OFFSET
(
out_ch_layout
),
AV_OPT_TYPE_INT64
,
{.
dbl
=
0
},
0
,
INT64_MAX
,
PARAM
,
"channel_layout"
},
{
"icl"
,
"input channel layout"
,
OFFSET
(
in_ch_layout
),
AV_OPT_TYPE_INT64
,
{.
dbl
=
0
},
0
,
INT64_MAX
,
PARAM
,
"channel_layout"
},
{
"clev"
,
"center mix level"
,
OFFSET
(
clev
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
C_30DB
},
0
,
4
,
PARAM
},
{
"ocl"
,
"output channel layout"
,
OFFSET
(
out_ch_layout
),
AV_OPT_TYPE_INT64
,
{.
dbl
=
0
},
0
,
INT64_MAX
,
PARAM
,
"channel_layout"
},
{
"slev"
,
"sourround mix level"
,
OFFSET
(
slev
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
C_30DB
},
0
,
4
,
PARAM
},
{
"clev"
,
"center mix level"
,
OFFSET
(
clev
)
,
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
C_30DB
},
0
,
4
,
PARAM
},
{
"rmvol"
,
"rematrix volume"
,
OFFSET
(
rematrix_volume
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
.
0
},
-
1000
,
1000
,
PARAM
},
{
"slev"
,
"sourround mix level"
,
OFFSET
(
slev
)
,
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
C_30DB
},
0
,
4
,
PARAM
},
{
"flags"
,
NULL
,
OFFSET
(
flags
),
AV_OPT_TYPE_FLAGS
,
{.
dbl
=
0
},
0
,
UINT_MAX
,
PARAM
,
"flags"
},
{
"rmvol"
,
"rematrix volume"
,
OFFSET
(
rematrix_volume
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
.
0
},
-
1000
,
1000
,
PARAM
},
{
"swr_flags"
,
NULL
,
OFFSET
(
flags
),
AV_OPT_TYPE_FLAGS
,
{.
dbl
=
0
},
0
,
UINT_MAX
,
PARAM
,
"flags"
},
{
"flags"
,
NULL
,
OFFSET
(
flags
)
,
AV_OPT_TYPE_FLAGS
,
{.
dbl
=
0
},
0
,
UINT_MAX
,
PARAM
,
"flags"
},
{
"res"
,
"force resampling"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
SWR_FLAG_RESAMPLE
},
INT_MIN
,
INT_MAX
,
PARAM
,
"flags"
},
{
"swr_flags"
,
NULL
,
OFFSET
(
flags
)
,
AV_OPT_TYPE_FLAGS
,
{.
dbl
=
0
},
0
,
UINT_MAX
,
PARAM
,
"flags"
},
{
"dither_scale"
,
"dither scale"
,
OFFSET
(
dither_scale
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
},
0
,
INT_MAX
,
PARAM
},
{
"res"
,
"force resampling"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
SWR_FLAG_RESAMPLE
},
INT_MIN
,
INT_MAX
,
PARAM
,
"flags"
},
{
"dither_method"
,
"dither method"
,
OFFSET
(
dither_method
),
AV_OPT_TYPE_INT
,
{.
dbl
=
0
},
0
,
SWR_DITHER_NB
-
1
,
PARAM
,
"dither_method"
},
{
"dither_scale"
,
"dither scale"
,
OFFSET
(
dither_scale
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
},
0
,
INT_MAX
,
PARAM
},
{
"rectangular"
,
"rectangular dither"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
SWR_DITHER_RECTANGULAR
},
INT_MIN
,
INT_MAX
,
PARAM
,
"dither_method"
},
{
"dither_method"
,
"dither method"
,
OFFSET
(
dither_method
),
AV_OPT_TYPE_INT
,
{.
dbl
=
0
},
0
,
SWR_DITHER_NB
-
1
,
PARAM
,
"dither_method"
},
{
"triangular"
,
"triangular dither"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
SWR_DITHER_TRIANGULAR
},
INT_MIN
,
INT_MAX
,
PARAM
,
"dither_method"
},
{
"rectangular"
,
"rectangular dither"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
SWR_DITHER_RECTANGULAR
},
INT_MIN
,
INT_MAX
,
PARAM
,
"dither_method"
},
{
"triangular_hp"
,
"triangular dither with high pass"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
SWR_DITHER_TRIANGULAR_HIGHPASS
},
INT_MIN
,
INT_MAX
,
PARAM
,
"dither_method"
},
{
"triangular"
,
"triangular dither"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
SWR_DITHER_TRIANGULAR
},
INT_MIN
,
INT_MAX
,
PARAM
,
"dither_method"
},
{
"triangular_hp"
,
"triangular dither with high pass"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
SWR_DITHER_TRIANGULAR_HIGHPASS
},
INT_MIN
,
INT_MAX
,
PARAM
,
"dither_method"
},
{
0
}
{
0
}
};
};
...
...
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