Skip to content

Commit

Permalink
avfilter: add temporal midway equalizer filter
Browse files Browse the repository at this point in the history
  • Loading branch information
richardpl committed Jan 1, 2021
1 parent 63505fc commit 54cd025
Show file tree
Hide file tree
Showing 6 changed files with 466 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelog
Expand Up @@ -54,6 +54,7 @@ version <next>:
- AV1 monochrome encoding support via libaom >= 2.0.1
- asuperpass and asuperstop filter
- shufflepixels filter
- tmidequalizer filter


version 4.3:
Expand Down
22 changes: 22 additions & 0 deletions doc/filters.texi
Expand Up @@ -19323,6 +19323,28 @@ minimum values, and @code{1} maximum values.

This filter supports all above options as @ref{commands}, excluding option @code{radius}.

@section tmidequalizer

Apply Temporal Midway Video Equalization effect.

Midway Video Equalization adjusts a sequence of video frames to have the same
histograms, while maintaining their dynamics as much as possible. It's
useful for e.g. matching exposures from a video frames sequence.

This filter accepts the following option:

@table @option
@item radius
Set filtering radius. Default is @code{5}. Allowed range is from 1 to 127.

@item sigma
Set filtering sigma. Default is @code{0.5}. This controls strength of filtering.
Setting this option to 0 effectively does nothing.

@item planes
Set which planes to process. Default is @code{15}, which is all available planes.
@end table

@section tmix

Mix successive video frames.
Expand Down
1 change: 1 addition & 0 deletions libavfilter/Makefile
Expand Up @@ -433,6 +433,7 @@ OBJS-$(CONFIG_TILE_FILTER) += vf_tile.o
OBJS-$(CONFIG_TINTERLACE_FILTER) += vf_tinterlace.o
OBJS-$(CONFIG_TLUT2_FILTER) += vf_lut2.o framesync.o
OBJS-$(CONFIG_TMEDIAN_FILTER) += vf_xmedian.o framesync.o
OBJS-$(CONFIG_TMIDEQUALIZER_FILTER) += vf_tmidequalizer.o
OBJS-$(CONFIG_TMIX_FILTER) += vf_mix.o framesync.o
OBJS-$(CONFIG_TONEMAP_FILTER) += vf_tonemap.o colorspace.o
OBJS-$(CONFIG_TONEMAP_OPENCL_FILTER) += vf_tonemap_opencl.o colorspace.o opencl.o \
Expand Down
1 change: 1 addition & 0 deletions libavfilter/allfilters.c
Expand Up @@ -413,6 +413,7 @@ extern AVFilter ff_vf_tile;
extern AVFilter ff_vf_tinterlace;
extern AVFilter ff_vf_tlut2;
extern AVFilter ff_vf_tmedian;
extern AVFilter ff_vf_tmidequalizer;
extern AVFilter ff_vf_tmix;
extern AVFilter ff_vf_tonemap;
extern AVFilter ff_vf_tonemap_opencl;
Expand Down
2 changes: 1 addition & 1 deletion libavfilter/version.h
Expand Up @@ -30,7 +30,7 @@
#include "libavutil/version.h"

#define LIBAVFILTER_VERSION_MAJOR 7
#define LIBAVFILTER_VERSION_MINOR 94
#define LIBAVFILTER_VERSION_MINOR 95
#define LIBAVFILTER_VERSION_MICRO 100


Expand Down

0 comments on commit 54cd025

Please sign in to comment.