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
20fc6104
Commit
20fc6104
authored
Apr 25, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swr: Capitalize help texts for AVOptions
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
36a9dd2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
20 deletions
+19
-20
swresample.c
libswresample/swresample.c
+19
-20
No files found.
libswresample/swresample.c
View file @
20fc6104
...
...
@@ -38,28 +38,27 @@
#define PARAM AV_OPT_FLAG_AUDIO_PARAM
static
const
AVOption
options
[]
=
{
{
"ich"
,
"
input channel c
ount"
,
OFFSET
(
in
.
ch_count
),
AV_OPT_TYPE_INT
,
{.
dbl
=
2
},
0
,
SWR_CH_MAX
,
PARAM
},
{
"och"
,
"
output channel c
ount"
,
OFFSET
(
out
.
ch_count
),
AV_OPT_TYPE_INT
,
{.
dbl
=
2
},
0
,
SWR_CH_MAX
,
PARAM
},
{
"uch"
,
"
used channel c
ount"
,
OFFSET
(
used_ch_count
),
AV_OPT_TYPE_INT
,
{.
dbl
=
0
},
0
,
SWR_CH_MAX
,
PARAM
},
{
"isr"
,
"
input sample r
ate"
,
OFFSET
(
in_sample_rate
),
AV_OPT_TYPE_INT
,
{.
dbl
=
48000
},
1
,
INT_MAX
,
PARAM
},
{
"osr"
,
"
output sample r
ate"
,
OFFSET
(
out_sample_rate
),
AV_OPT_TYPE_INT
,
{.
dbl
=
48000
},
1
,
INT_MAX
,
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
},
{
"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
},
{
"tsf"
,
"
internal sample f
ormat"
,
OFFSET
(
int_sample_fmt
),
AV_OPT_TYPE_INT
,
{.
dbl
=
AV_SAMPLE_FMT_NONE
},
-
1
,
AV_SAMPLE_FMT_FLT
,
PARAM
},
{
"icl"
,
"input channel layout"
,
OFFSET
(
in_ch_layout
),
AV_OPT_TYPE_INT64
,
{.
dbl
=
0
},
0
,
INT64_MAX
,
PARAM
,
"channel_layout"
},
{
"ocl"
,
"
output channel l
ayout"
,
OFFSET
(
out_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
},
{
"slev"
,
"
sourround mix l
evel"
,
OFFSET
(
slev
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
C_30DB
},
0
,
4
,
PARAM
},
{
"rmvol"
,
"
rematrix v
olume"
,
OFFSET
(
rematrix_volume
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
.
0
},
-
1000
,
1000
,
PARAM
},
{
"ich"
,
"
Input Channel C
ount"
,
OFFSET
(
in
.
ch_count
),
AV_OPT_TYPE_INT
,
{.
dbl
=
2
},
0
,
SWR_CH_MAX
,
PARAM
},
{
"och"
,
"
Output Channel C
ount"
,
OFFSET
(
out
.
ch_count
),
AV_OPT_TYPE_INT
,
{.
dbl
=
2
},
0
,
SWR_CH_MAX
,
PARAM
},
{
"uch"
,
"
Used Channel C
ount"
,
OFFSET
(
used_ch_count
),
AV_OPT_TYPE_INT
,
{.
dbl
=
0
},
0
,
SWR_CH_MAX
,
PARAM
},
{
"isr"
,
"
Input Sample R
ate"
,
OFFSET
(
in_sample_rate
),
AV_OPT_TYPE_INT
,
{.
dbl
=
48000
},
1
,
INT_MAX
,
PARAM
},
{
"osr"
,
"
Output Sample R
ate"
,
OFFSET
(
out_sample_rate
),
AV_OPT_TYPE_INT
,
{.
dbl
=
48000
},
1
,
INT_MAX
,
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
},
{
"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
},
{
"tsf"
,
"
Internal Sample F
ormat"
,
OFFSET
(
int_sample_fmt
),
AV_OPT_TYPE_INT
,
{.
dbl
=
AV_SAMPLE_FMT_NONE
},
-
1
,
AV_SAMPLE_FMT_FLT
,
PARAM
},
{
"icl"
,
"Input Channel Layout"
,
OFFSET
(
in_ch_layout
),
AV_OPT_TYPE_INT64
,
{.
dbl
=
0
},
0
,
INT64_MAX
,
PARAM
,
"channel_layout"
},
{
"ocl"
,
"
Output Channel L
ayout"
,
OFFSET
(
out_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
},
{
"slev"
,
"
Sourround Mix L
evel"
,
OFFSET
(
slev
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
C_30DB
},
0
,
4
,
PARAM
},
{
"rmvol"
,
"
Rematrix V
olume"
,
OFFSET
(
rematrix_volume
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
.
0
},
-
1000
,
1000
,
PARAM
},
{
"flags"
,
NULL
,
OFFSET
(
flags
),
AV_OPT_TYPE_FLAGS
,
{.
dbl
=
0
},
0
,
UINT_MAX
,
PARAM
,
"flags"
},
{
"swr_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"
},
{
"dither_scale"
,
"dither scale"
,
OFFSET
(
dither_scale
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
},
0
,
INT_MAX
,
PARAM
},
{
"dither_method"
,
"dither method"
,
OFFSET
(
dither_method
),
AV_OPT_TYPE_INT
,
{.
dbl
=
0
},
0
,
SWR_DITHER_NB
-
1
,
PARAM
,
"dither_method"
},
{
"rectangular"
,
"rectangular dither"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
SWR_DITHER_RECTANGULAR
},
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"
},
{
"res"
,
"Force Resampling"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
SWR_FLAG_RESAMPLE
},
INT_MIN
,
INT_MAX
,
PARAM
,
"flags"
},
{
"dither_scale"
,
"Dither Scale"
,
OFFSET
(
dither_scale
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
},
0
,
INT_MAX
,
PARAM
},
{
"dither_method"
,
"Dither Method"
,
OFFSET
(
dither_method
),
AV_OPT_TYPE_INT
,
{.
dbl
=
0
},
0
,
SWR_DITHER_NB
-
1
,
PARAM
,
"dither_method"
},
{
"rectangular"
,
"Rectangular Dither"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
SWR_DITHER_RECTANGULAR
},
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
}
};
...
...
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