[FFmpeg-devel] [PATCH] Add slicify filter

Diego Biurrun diego
Fri Oct 30 19:30:35 CET 2009


On Fri, Oct 30, 2009 at 12:45:57PM +0100, Stefano Sabatini wrote:
> 
> --- ffmpeg.orig/doc/libavfilter.texi	2009-10-30 12:30:34.000000000 +0100
> +++ ffmpeg/doc/libavfilter.texi	2009-10-30 12:32:23.000000000 +0100
> @@ -174,6 +174,20 @@
>  
>  The default value of ``width'' and ``height'' is 0.
>  
> + at section slicify
> +
> +Pass the input video to next filter as multiple slices.
> +
> + at example
> +./ffmpeg -i in.avi -vfilters "slicify=32" out.avi
> + at end example
> +
> +The filter accepts as parameter the slice height (16 if not
> +specified).

The filter accepts the slice height as parameter

> +Adding this in the beginning of filter chains should make filtering
> +faster due to the better use of the memory cache.

due to better use

Your descriptions are improving.  Keep going.

> --- ffmpeg.orig/libavfilter/allfilters.c	2009-10-30 12:29:59.000000000 +0100
> +++ ffmpeg/libavfilter/allfilters.c	2009-10-30 12:32:56.000000000 +0100
> @@ -39,5 +39,6 @@
>      REGISTER_FILTER (SCALE,scale,vf);
> +    REGISTER_FILTER (SLICIFY,slicify,vf);
>      REGISTER_FILTER (VFLIP,vflip,vf);

I insist that there should be spaces after the commas here.

> --- /dev/null	1970-01-01 00:00:00.000000000 +0000
> +++ ffmpeg/libavfilter/vf_slicify.c	2009-10-30 12:45:40.000000000 +0100
> @@ -0,0 +1,102 @@
> +
> +/**
> + * @file libavfilter/vf_slicify.c
> + * slicing video filter

I'm unhappy with "slicing" but I'm at a loss to provide you a better
alternative... :-/

Diego



More information about the ffmpeg-devel mailing list