Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
b2eea615
Commit
b2eea615
authored
Jan 02, 2013
by
Justin Ruggles
Browse files
lavr: allow setting internal_sample_fmt option by string
parent
50f4337a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
libavresample/options.c
libavresample/options.c
+11
-1
No files found.
libavresample/options.c
View file @
b2eea615
...
...
@@ -40,7 +40,17 @@ static const AVOption options[] = {
{
"out_channel_layout"
,
"Output Channel Layout"
,
OFFSET
(
out_channel_layout
),
AV_OPT_TYPE_INT64
,
{
.
i64
=
0
},
INT64_MIN
,
INT64_MAX
,
PARAM
},
{
"out_sample_fmt"
,
"Output Sample Format"
,
OFFSET
(
out_sample_fmt
),
AV_OPT_TYPE_INT
,
{
.
i64
=
AV_SAMPLE_FMT_S16
},
AV_SAMPLE_FMT_U8
,
AV_SAMPLE_FMT_NB
-
1
,
PARAM
},
{
"out_sample_rate"
,
"Output Sample Rate"
,
OFFSET
(
out_sample_rate
),
AV_OPT_TYPE_INT
,
{
.
i64
=
48000
},
1
,
INT_MAX
,
PARAM
},
{
"internal_sample_fmt"
,
"Internal Sample Format"
,
OFFSET
(
internal_sample_fmt
),
AV_OPT_TYPE_INT
,
{
.
i64
=
AV_SAMPLE_FMT_NONE
},
AV_SAMPLE_FMT_NONE
,
AV_SAMPLE_FMT_NB
-
1
,
PARAM
},
{
"internal_sample_fmt"
,
"Internal Sample Format"
,
OFFSET
(
internal_sample_fmt
),
AV_OPT_TYPE_INT
,
{
.
i64
=
AV_SAMPLE_FMT_NONE
},
AV_SAMPLE_FMT_NONE
,
AV_SAMPLE_FMT_NB
-
1
,
PARAM
,
"internal_sample_fmt"
},
{
"u8"
,
"8-bit unsigned integer"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
AV_SAMPLE_FMT_U8
},
INT_MIN
,
INT_MAX
,
PARAM
,
"internal_sample_fmt"
},
{
"s16"
,
"16-bit signed integer"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
AV_SAMPLE_FMT_S16
},
INT_MIN
,
INT_MAX
,
PARAM
,
"internal_sample_fmt"
},
{
"s32"
,
"32-bit signed integer"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
AV_SAMPLE_FMT_S32
},
INT_MIN
,
INT_MAX
,
PARAM
,
"internal_sample_fmt"
},
{
"flt"
,
"32-bit float"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
AV_SAMPLE_FMT_FLT
},
INT_MIN
,
INT_MAX
,
PARAM
,
"internal_sample_fmt"
},
{
"dbl"
,
"64-bit double"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
AV_SAMPLE_FMT_DBL
},
INT_MIN
,
INT_MAX
,
PARAM
,
"internal_sample_fmt"
},
{
"u8p"
,
"8-bit unsigned integer planar"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
AV_SAMPLE_FMT_U8P
},
INT_MIN
,
INT_MAX
,
PARAM
,
"internal_sample_fmt"
},
{
"s16p"
,
"16-bit signed integer planar"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
AV_SAMPLE_FMT_S16P
},
INT_MIN
,
INT_MAX
,
PARAM
,
"internal_sample_fmt"
},
{
"s32p"
,
"32-bit signed integer planar"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
AV_SAMPLE_FMT_S32P
},
INT_MIN
,
INT_MAX
,
PARAM
,
"internal_sample_fmt"
},
{
"fltp"
,
"32-bit float planar"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
AV_SAMPLE_FMT_FLTP
},
INT_MIN
,
INT_MAX
,
PARAM
,
"internal_sample_fmt"
},
{
"dblp"
,
"64-bit double planar"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
AV_SAMPLE_FMT_DBLP
},
INT_MIN
,
INT_MAX
,
PARAM
,
"internal_sample_fmt"
},
{
"mix_coeff_type"
,
"Mixing Coefficient Type"
,
OFFSET
(
mix_coeff_type
),
AV_OPT_TYPE_INT
,
{
.
i64
=
AV_MIX_COEFF_TYPE_FLT
},
AV_MIX_COEFF_TYPE_Q8
,
AV_MIX_COEFF_TYPE_NB
-
1
,
PARAM
,
"mix_coeff_type"
},
{
"q8"
,
"16-bit 8.8 Fixed-Point"
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
AV_MIX_COEFF_TYPE_Q8
},
INT_MIN
,
INT_MAX
,
PARAM
,
"mix_coeff_type"
},
{
"q15"
,
"32-bit 17.15 Fixed-Point"
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
AV_MIX_COEFF_TYPE_Q15
},
INT_MIN
,
INT_MAX
,
PARAM
,
"mix_coeff_type"
},
...
...
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