[FFmpeg-devel] [WIP] lavfi: port mp/eq to a regular filter
Timothy Gu
timothygu99 at gmail.com
Mon Sep 15 02:03:21 CEST 2014
On Sep 14, 2014 3:46 PM, "James Darnley" <james.darnley at gmail.com> wrote:
>
> ---
>
> Still a couple of things on the todo list (see the top of the new file)
but I
> thought I would send the basics along for people to nit pick.
>
> configure | 1 +
> libavfilter/Makefile | 1 +
> libavfilter/allfilters.c | 1 +
> libavfilter/vf_eq.c | 157
+++++++++++++++++++++++++++++++++++++++++++++++
> 4 files changed, 160 insertions(+)
> create mode 100644 libavfilter/vf_eq.c
[...]
> +#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
> +static const AVOption eq_options[] = {
> + { "brightness", "", OFFSET(brightness), AV_OPT_TYPE_INT, {.i64 = 0},
-100, 100, FLAGS },
> + { "contrast", "", OFFSET(contrast), AV_OPT_TYPE_INT, {.i64 = 0},
-100, 100, FLAGS },
> + { NULL }
> +};
Can vf_hue be improved to support changing contrast instead of writing a
new filter just for that?
Timothy
More information about the ffmpeg-devel
mailing list