[FFmpeg-devel] [PATCH 3/4] Factorize dilate and smooth end frame common code.

Michael Niedermayer michaelni
Mon Oct 11 20:19:55 CEST 2010


On Sun, Oct 10, 2010 at 06:50:51PM +0200, Stefano Sabatini wrote:
> On date Sunday 2010-09-12 12:51:18 +0200, Michael Niedermayer encoded:
> > On Sat, Sep 11, 2010 at 03:59:24PM +0200, Stefano Sabatini wrote:
> > > ---
> > >  libavfilter/vf_libopencv.c |   63 +++++++++++++++++++++++---------------------
> > >  1 files changed, 33 insertions(+), 30 deletions(-)
> > > 
> > > diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c
> > > index 6c535f0..b0b80d0 100644
> > > --- a/libavfilter/vf_libopencv.c
> > > +++ b/libavfilter/vf_libopencv.c
> > > @@ -63,6 +63,25 @@ static int query_formats(AVFilterContext *ctx)
> > >  
> > >  static void null_draw_slice(AVFilterLink *link, int y, int h, int slice_dir) { }
> > >  
> > > +static void ocv_end_frame(AVFilterLink *inlink, void filter_fn(void *, IplImage *, IplImage *))
> > 
> > imho we need a table, one entry for each filter, filter_fn goes in that table
> > and a pointer to the table entry in the context
> 
> Updated.
> -- 
> FFmpeg = Faithless Freak Murdering Porno Ecletic Gadget

>  vf_libopencv.c |    8 ++++++++
>  1 file changed, 8 insertions(+)
> b5ab9776403255c2c8a5bdb56cf3c4f7f59e70f5  0003-Add-erode-libopencv-filter.patch
> From c931d063d59234f5ea1d853981a47e43ee2740ae Mon Sep 17 00:00:00 2001
> From: Stefano Sabatini <stefano.sabatini-lala at poste.it>
> Date: Sat, 2 Oct 2010 17:06:46 +0200
> Subject: [PATCH 3/3] Add erode libopencv filter.

if it works ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101011/c7d7f9be/attachment.pgp>



More information about the ffmpeg-devel mailing list