History

lavfi/deshake: switch to an AVOptions-based system.

Clément Bœsch committed 13 years ago

Commit 9ceb7bd1 parent c85f56b3 files · +8 −15Browse files

Unified · Split

3 files
  1. doc/filters.texi +7 −8
  2. libavfilter/avfilter.c +1 −0
  3. libavfilter/vf_deshake.c +0 −7
doc/filters.texi+7−8
@@ -2529,16 +2529,14 @@ Attempt to fix small changes in horizontal and/or vertical shift. This · 2528 unmodified lines
2529filter helps remove camera shake from hand-holding a camera, bumping a2529filter helps remove camera shake from hand-holding a camera, bumping a
2530tripod, moving on a vehicle, etc.2530tripod, moving on a vehicle, etc.
2531 2531
2532The filter accepts parameters as a list of @var{key}=@var{value}2532The filter accepts the following options:
2533pairs, separated by ":". If the key of the first options is omitted,
2534the arguments are interpreted according to the syntax
2535@var{x}:@var{y}:@var{w}:@var{h}:@var{rx}:@var{ry}:@var{edge}:@var{blocksize}:@var{contrast}:@var{search}:@var{filename}:@var{opencl}.
2536
2537A description of the accepted parameters follows.
2538 2533
2539@table @option2534@table @option
2540 2535
2541@item x, y, w, h2536@item x
2537@item y
2538@item w
2539@item h
2542Specify a rectangular area where to limit the search for motion2540Specify a rectangular area where to limit the search for motion
2543vectors.2541vectors.
2544If desired the search for motion vectors can be limited to a2542If desired the search for motion vectors can be limited to a
@@ -2556,7 +2554,8 @@ without specifying the bounding box for the motion vector search. · 11 unmodified lines
2556 2554
2557Default - search the whole frame.2555Default - search the whole frame.
2558 2556
2559@item rx, ry2557@item rx
2558@item ry
2560Specify the maximum extent of movement in x and y directions in the2559Specify the maximum extent of movement in x and y directions in the
2561range 0-64 pixels. Default 16.2560range 0-64 pixels. Default 16.
2562 2561
libavfilter/avfilter.c+1−0
@@ -703,6 +703,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 702 unmodified lines
703 !strcmp(filter->filter->name, "curves" ) ||703 !strcmp(filter->filter->name, "curves" ) ||
704 !strcmp(filter->filter->name, "decimate" ) ||704 !strcmp(filter->filter->name, "decimate" ) ||
705 !strcmp(filter->filter->name, "delogo" ) ||705 !strcmp(filter->filter->name, "delogo" ) ||
706 !strcmp(filter->filter->name, "deshake" ) ||
706 !strcmp(filter->filter->name, "drawbox" ) ||707 !strcmp(filter->filter->name, "drawbox" ) ||
707 !strcmp(filter->filter->name, "drawtext" ) ||708 !strcmp(filter->filter->name, "drawtext" ) ||
708 !strcmp(filter->filter->name, "ebur128" ) ||709 !strcmp(filter->filter->name, "ebur128" ) ||
libavfilter/vf_deshake.c+0−7
@@ -560,12 +560,6 @@ static const AVFilterPad deshake_outputs[] = { · 559 unmodified lines
560 { NULL }560 { NULL }
561};561};
562 562
563static const char *const shorthand[] = {
564 "x", "y", "w", "h", "rx", "ry", "edge",
565 "blocksize", "contrast", "search", "filename",
566 NULL
567};
568
569AVFilter avfilter_vf_deshake = {563AVFilter avfilter_vf_deshake = {
570 .name = "deshake",564 .name = "deshake",
571 .description = NULL_IF_CONFIG_SMALL("Stabilize shaky video."),565 .description = NULL_IF_CONFIG_SMALL("Stabilize shaky video."),
@@ -576,5 +570,4 @@ AVFilter avfilter_vf_deshake = { · 4 unmodified lines
576 .inputs = deshake_inputs,570 .inputs = deshake_inputs,
577 .outputs = deshake_outputs,571 .outputs = deshake_outputs,
578 .priv_class = &deshake_class,572 .priv_class = &deshake_class,
579 .shorthand = shorthand,
580};573};

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t