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
1cdb9f48
Commit
1cdb9f48
authored
Apr 10, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/edgedetect: switch to an AVOptions-based system.
parent
34610e11
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
8 deletions
+2
-8
filters.texi
doc/filters.texi
+1
-1
avfilter.c
libavfilter/avfilter.c
+1
-0
vf_edgedetect.c
libavfilter/vf_edgedetect.c
+0
-7
No files found.
doc/filters.texi
View file @
1cdb9f48
...
@@ -3008,7 +3008,7 @@ For more information about fontconfig, check:
...
@@ -3008,7 +3008,7 @@ For more information about fontconfig, check:
Detect and draw edges. The filter uses the Canny Edge Detection algorithm.
Detect and draw edges. The filter uses the Canny Edge Detection algorithm.
Th
is filter accepts the following optional named parameter
s:
Th
e filter accepts the following option
s:
@table @option
@table @option
@item low, high
@item low, high
...
...
libavfilter/avfilter.c
View file @
1cdb9f48
...
@@ -667,6 +667,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
...
@@ -667,6 +667,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
!
strcmp
(
filter
->
filter
->
name
,
"drawbox"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"drawbox"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"drawtext"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"drawtext"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"ebur128"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"ebur128"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"edgedetect"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"fade"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"fade"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"fieldorder"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"fieldorder"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"fps"
)
||
!
strcmp
(
filter
->
filter
->
name
,
"fps"
)
||
...
...
libavfilter/vf_edgedetect.c
View file @
1cdb9f48
...
@@ -52,15 +52,8 @@ AVFILTER_DEFINE_CLASS(edgedetect);
...
@@ -52,15 +52,8 @@ AVFILTER_DEFINE_CLASS(edgedetect);
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
{
int
ret
;
EdgeDetectContext
*
edgedetect
=
ctx
->
priv
;
EdgeDetectContext
*
edgedetect
=
ctx
->
priv
;
edgedetect
->
class
=
&
edgedetect_class
;
av_opt_set_defaults
(
edgedetect
);
if
((
ret
=
av_set_options_string
(
edgedetect
,
args
,
"="
,
":"
))
<
0
)
return
ret
;
edgedetect
->
low_u8
=
edgedetect
->
low
*
255
.
+
.
5
;
edgedetect
->
low_u8
=
edgedetect
->
low
*
255
.
+
.
5
;
edgedetect
->
high_u8
=
edgedetect
->
high
*
255
.
+
.
5
;
edgedetect
->
high_u8
=
edgedetect
->
high
*
255
.
+
.
5
;
return
0
;
return
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