[FFmpeg-devel] [PATCH] Transpose filter

Stefano Sabatini stefano.sabatini-lala
Mon Oct 18 23:30:35 CEST 2010


On date Monday 2010-10-18 22:29:54 +0200, Michael Niedermayer encoded:
> On Mon, Oct 18, 2010 at 05:42:38PM +0200, Stefano Sabatini wrote:
[...]
> > Subject: [PATCH 1/4] Add transpose filter.
> > 
> > ---
> >  Changelog                  |    1 +
> >  doc/filters.texi           |   35 +++++++
> >  libavfilter/Makefile       |    1 +
> >  libavfilter/allfilters.c   |    1 +
> >  libavfilter/avfilter.h     |    2 +-
> >  libavfilter/vf_transpose.c |  211 ++++++++++++++++++++++++++++++++++++++++++++
> >  6 files changed, 250 insertions(+), 1 deletions(-)
> >  create mode 100644 libavfilter/vf_transpose.c
> > 
> > diff --git a/Changelog b/Changelog
> > index 426a92d..45751fc 100644
> > --- a/Changelog
> > +++ b/Changelog
> > @@ -47,6 +47,7 @@ version <next>:
> >  - SAP (Session Announcement Protocol, RFC 2974) muxer and demuxer
> >  - cropdetect filter
> >  - ffmpeg -crop* options removed
> > +- transpose filter added
> >  
> >  
> >  version 0.6:
> > diff --git a/doc/filters.texi b/doc/filters.texi
> > index 66c1606..f6b262b 100644
> > --- a/doc/filters.texi
> > +++ b/doc/filters.texi
> > @@ -508,6 +508,41 @@ not specified it will use the default value of 16.
> >  Adding this in the beginning of filter chains should make filtering
> >  faster due to better use of the memory cache.
> >  
> > + at section transpose
> > +
> > +Transpose rows with columns in the input video and optionally flip it.
> > +
> > +It accepts a parameter representing an integer, which can assume the
> > +values:
> > +
> > +0    Rotate by 90 degrees clockwise and vertically flip (default), that is:
> > + at example
> > +L.R     r.R
> > +. . ->  . .
> > +l.r     l.L
> > + at end example
> > +
> > +1    Rotate by 90 degrees clockwise, that is:
> > + at example
> > +L.R     l.L
> > +. . ->  . .
> > +l.r     r.R
> > + at end example
> > +
> > +2    Rotate by 90 degrees counterclockwise, that is:
> > + at example
> > +L.R     R.r
> > +. . ->  . .
> > +l.r     L.l
> > + at end example
> > +
> 
> > +3    Rotate by 90 degrees counterclockwise and vertically flip, that is:
> > + at example
> > +L.R     L.l
> > +. . ->  . .
> > +l.r     R.r
> > + at end example
> 
> this should be default i  think
> otherwise ok

Indeed the docs were wrong and so 0 looked like the correct default
(transpose rows with columns). And the MPlayer docs should be fixed
accordingly.

Anyway docs fixed and patch applied, looking forward for the rotate90
filter factorization issue.

Regards.
-- 
FFmpeg = Fast and Frightening Minimal Peaceful EnGine



More information about the ffmpeg-devel mailing list