History

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

Clément Bœsch committed 13 years ago

Commit b2d58911 parent d5226fc3 files · +2 −4Browse files

Unified · Split

3 files
  1. doc/filters.texi +1 −1
  2. libavfilter/avfilter.c +1 −0
  3. libavfilter/vf_histogram.c +0 −3
doc/filters.texi+1−1
@@ -3474,7 +3474,7 @@ Compute and draw a color distribution histogram for the input video. · 3473 unmodified lines
3474The computed histogram is a representation of distribution of color components3474The computed histogram is a representation of distribution of color components
3475in an image.3475in an image.
3476 3476
3477The filter accepts the following named parameters:3477The filter accepts the following options:
3478 3478
3479@table @option3479@table @option
3480@item mode3480@item mode
libavfilter/avfilter.c+1−0
@@ -680,6 +680,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 679 unmodified lines
680 !strcmp(filter->filter->name, "geq" ) ||680 !strcmp(filter->filter->name, "geq" ) ||
681 !strcmp(filter->filter->name, "gradfun" ) ||681 !strcmp(filter->filter->name, "gradfun" ) ||
682 !strcmp(filter->filter->name, "histeq" ) ||682 !strcmp(filter->filter->name, "histeq" ) ||
683 !strcmp(filter->filter->name, "histogram" ) ||
683 !strcmp(filter->filter->name, "hqdn3d" ) ||684 !strcmp(filter->filter->name, "hqdn3d" ) ||
684 !strcmp(filter->filter->name, "ocv" ) ||685 !strcmp(filter->filter->name, "ocv" ) ||
685 !strcmp(filter->filter->name, "life" ) ||686 !strcmp(filter->filter->name, "life" ) ||
libavfilter/vf_histogram.c+0−3
@@ -311,8 +311,6 @@ static const AVFilterPad outputs[] = { · 310 unmodified lines
311 { NULL }311 { NULL }
312};312};
313 313
314static const char *const shorthand[] = { NULL };
315
316AVFilter avfilter_vf_histogram = {314AVFilter avfilter_vf_histogram = {
317 .name = "histogram",315 .name = "histogram",
318 .description = NULL_IF_CONFIG_SMALL("Compute and draw a histogram."),316 .description = NULL_IF_CONFIG_SMALL("Compute and draw a histogram."),
@@ -321,5 +319,4 @@ AVFilter avfilter_vf_histogram = { · 2 unmodified lines
321 .inputs = inputs,319 .inputs = inputs,
322 .outputs = outputs,320 .outputs = outputs,
323 .priv_class = &histogram_class,321 .priv_class = &histogram_class,
324 .shorthand = shorthand,
325};322};

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