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
25292529 filter helps remove camera shake from hand-holding a camera, bumping a
25302530 tripod, moving on a vehicle, etc.
25312531
2532−The filter accepts parameters as a list of @var{key}=@var{value}
2533−pairs, separated by ":". If the key of the first options is omitted,
2534−the 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−
2537−A description of the accepted parameters follows.
2532+The filter accepts the following options:
25382533
25392534 @table @option
25402535
2541−@item x, y, w, h
2536+@item x
2537+@item y
2538+@item w
2539+@item h
25422540 Specify a rectangular area where to limit the search for motion
25432541 vectors.
25442542 If 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
25562554
25572555 Default - search the whole frame.
25582556
2559−@item rx, ry
2557+@item rx
2558+@item ry
25602559 Specify the maximum extent of movement in x and y directions in the
25612560 range 0-64 pixels. Default 16.
25622561
libavfilter/avfilter.c+1−0
@@ -703,6 +703,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 702 unmodified lines
703703 !strcmp(filter->filter->name, "curves" ) ||
704704 !strcmp(filter->filter->name, "decimate" ) ||
705705 !strcmp(filter->filter->name, "delogo" ) ||
706+ !strcmp(filter->filter->name, "deshake" ) ||
706707 !strcmp(filter->filter->name, "drawbox" ) ||
707708 !strcmp(filter->filter->name, "drawtext" ) ||
708709 !strcmp(filter->filter->name, "ebur128" ) ||
libavfilter/vf_deshake.c+0−7
@@ -560,12 +560,6 @@ static const AVFilterPad deshake_outputs[] = { · 559 unmodified lines
560560 { NULL }
561561 };
562562
563−static const char *const shorthand[] = {
564− "x", "y", "w", "h", "rx", "ry", "edge",
565− "blocksize", "contrast", "search", "filename",
566− NULL
567−};
568−
569563 AVFilter avfilter_vf_deshake = {
570564 .name = "deshake",
571565 .description = NULL_IF_CONFIG_SMALL("Stabilize shaky video."),
@@ -576,5 +570,4 @@ AVFilter avfilter_vf_deshake = { · 4 unmodified lines
576570 .inputs = deshake_inputs,
577571 .outputs = deshake_outputs,
578572 .priv_class = &deshake_class,
579− .shorthand = shorthand,
580573 };

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