* commit 'ee0e8d4b15a87932ab6066cd6eae3cab08726319': vf_libopencv: switch to an AVOptions-based system.
Showing the changes to libavfilter/avfilter.c (1 of 3 files). Show all
Unified · Split
| @@ -671,6 +671,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 670 unmodified lines | ||
| 671 | 671 | !strcmp(filter->filter->name, "frei0r_src") || |
| 672 | 672 | !strcmp(filter->filter->name, "gradfun" ) || |
| 673 | 673 | !strcmp(filter->filter->name, "hqdn3d" ) || |
| 674 | + !strcmp(filter->filter->name, "ocv" ) || | |
| 674 | 675 | !strcmp(filter->filter->name, "format") || |
| 675 | 676 | !strcmp(filter->filter->name, "noformat") || |
| 676 | 677 | !strcmp(filter->filter->name, "resample") || |
| @@ -730,7 +731,8 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 53 unmodified lines | ||
| 730 | 731 | } else if (!strcmp(filter->filter->name, "format") || |
| 731 | 732 | !strcmp(filter->filter->name, "noformat") || |
| 732 | 733 | !strcmp(filter->filter->name, "frei0r") || |
| 733 | − !strcmp(filter->filter->name, "frei0r_src")) { | |
| 734 | + !strcmp(filter->filter->name, "frei0r_src") || | |
| 735 | + !strcmp(filter->filter->name, "ocv")) { | |
| 734 | 736 | /* a hack for compatibility with the old syntax |
| 735 | 737 | * replace colons with |s */ |
| 736 | 738 | char *copy = av_strdup(args); |
| @@ -742,7 +744,8 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 5 unmodified lines | ||
| 742 | 744 | goto fail; |
| 743 | 745 | } |
| 744 | 746 | |
| 745 | − if (!strcmp(filter->filter->name, "frei0r")) | |
| 747 | + if (!strcmp(filter->filter->name, "frei0r") || | |
| 748 | + !strcmp(filter->filter->name, "ocv")) | |
| 746 | 749 | nb_leading = 1; |
| 747 | 750 | else if (!strcmp(filter->filter->name, "frei0r_src")) |
| 748 | 751 | nb_leading = 3; |