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
b2eea615
Commit
b2eea615
authored
12 years ago
by
Justin Ruggles
Browse files
Options
Downloads
Patches
Plain Diff
lavr: allow setting internal_sample_fmt option by string
parent
50f4337a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavresample/options.c
+11
-1
11 additions, 1 deletion
libavresample/options.c
with
11 additions
and
1 deletion
libavresample/options.c
+
11
−
1
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"
},
...
...
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