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
4964ec2c
Commit
4964ec2c
authored
Apr 10, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/showspectrum: switch to an AVOptions-based system.
parent
1b1688bf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
16 deletions
+3
-16
filters.texi
doc/filters.texi
+2
-1
avf_showspectrum.c
libavfilter/avf_showspectrum.c
+0
-15
avfilter.c
libavfilter/avfilter.c
+1
-0
No files found.
doc/filters.texi
View file @
4964ec2c
...
@@ -7033,7 +7033,8 @@ do not have exactly the same duration in the first file.
...
@@ -7033,7 +7033,8 @@ do not have exactly the same duration in the first file.
Convert input audio to a video output, representing the audio frequency
Convert input audio to a video output, representing the audio frequency
spectrum.
spectrum.
The filter accepts the following named parameters:
The filter accepts the following options:
@table @option
@table @option
@item size, s
@item size, s
Specify the video size for the output. Default value is @code{640x512}.
Specify the video size for the output. Default value is @code{640x512}.
...
...
libavfilter/avf_showspectrum.c
View file @
4964ec2c
...
@@ -97,20 +97,6 @@ static const struct {
...
@@ -97,20 +97,6 @@ static const struct {
{
1
,
1
,
0
,
0
}
{
1
,
1
,
0
,
0
}
};
};
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
ShowSpectrumContext
*
showspectrum
=
ctx
->
priv
;
int
err
;
showspectrum
->
class
=
&
showspectrum_class
;
av_opt_set_defaults
(
showspectrum
);
if
((
err
=
av_set_options_string
(
showspectrum
,
args
,
"="
,
":"
))
<
0
)
return
err
;
return
0
;
}
static
av_cold
void
uninit
(
AVFilterContext
*
ctx
)
static
av_cold
void
uninit
(
AVFilterContext
*
ctx
)
{
{
ShowSpectrumContext
*
showspectrum
=
ctx
->
priv
;
ShowSpectrumContext
*
showspectrum
=
ctx
->
priv
;
...
@@ -505,7 +491,6 @@ static const AVFilterPad showspectrum_outputs[] = {
...
@@ -505,7 +491,6 @@ static const AVFilterPad showspectrum_outputs[] = {
AVFilter
avfilter_avf_showspectrum
=
{
AVFilter
avfilter_avf_showspectrum
=
{
.
name
=
"showspectrum"
,
.
name
=
"showspectrum"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Convert input audio to a spectrum video output."
),
.
description
=
NULL_IF_CONFIG_SMALL
(
"Convert input audio to a spectrum video output."
),
.
init
=
init
,
.
uninit
=
uninit
,
.
uninit
=
uninit
,
.
query_formats
=
query_formats
,
.
query_formats
=
query_formats
,
.
priv_size
=
sizeof
(
ShowSpectrumContext
),
.
priv_size
=
sizeof
(
ShowSpectrumContext
),
...
...
libavfilter/avfilter.c
View file @
4964ec2c
...
@@ -681,6 +681,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
...
@@ -681,6 +681,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
!
strcmp
(
filter
->
filter
->
name
,
"format"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"format"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"noformat"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"noformat"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"resample"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"resample"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"showspectrum"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"silencedetect"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"silencedetect"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"thumbnail"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"thumbnail"
)
||
// !strcmp(filter->filter->name, "scale" ) ||
// !strcmp(filter->filter->name, "scale" ) ||
...
...
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