[FFmpeg-devel] [PATCH 3/4] Factorize dilate and smooth end frame common code.
Michael Niedermayer
michaelni
Sun Sep 12 12:51:18 CEST 2010
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
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- 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/20100912/8b037643/attachment.pgp>
More information about the ffmpeg-devel
mailing list