Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
b2eea615
Commit
b2eea615
authored
Jan 02, 2013
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavr: allow setting internal_sample_fmt option by string
parent
50f4337a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
options.c
libavresample/options.c
+11
-1
No files found.
libavresample/options.c
View file @
b2eea615
...
@@ -40,7 +40,17 @@ static const AVOption options[] = {
...
@@ -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_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_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
},
{
"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"
},
{
"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"
},
{
"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"
},
{
"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