[FFmpeg-devel] [PATCH] Implement histogram equalization filter.

Stefano Sabatini stefano.sabatini-lala
Thu Nov 25 01:59:06 CET 2010


On date Sunday 2010-11-21 18:57:46 +0100, Michael Niedermayer encoded:
> On Sat, Nov 20, 2010 at 04:44:01PM +0100, Stefano Sabatini wrote:
> > ---
> >  configure                |    1 +
> >  libavfilter/Makefile     |    1 +
> >  libavfilter/allfilters.c |    1 +
> >  libavfilter/vf_histeq.c  |  217 ++++++++++++++++++++++++++++++++++++++++++++++
> >  4 files changed, 220 insertions(+), 0 deletions(-)
> >  create mode 100644 libavfilter/vf_histeq.c
> 
> if you confirmed that this is binary identical to donalds filter then ok

Uhm no, VirtualDub works in RGB colorspace this in YUV colorspace. I
tried the image and since my variant works in YUV colorspace (while
basically the original filter manually converts RGB->Y there is no
much hope for binary compatibility (and I have yet to install VD).

Anyway my variant don't touch chroma values, and it results
desaturated with respect to the filtered images in:
http://neuron2.net/histogram.html

so I suppose I'm missing that part.

> [...]
> > +AVFilter avfilter_vf_histeq = {
> > +    .name        = "histeq",
> 
> maybe call it dg_histeq, and we could do similar for other ported filters
> that is put the initials of the author in the filter name and
> when we improve a filter we could fork it into a second filter and play with
> that.That way the original stays available for testing-

Uhm as you wish.
-- 
FFmpeg = Frightening and Frightening Mastering Power Elected Governor



More information about the ffmpeg-devel mailing list