[FFmpeg-devel] [PATCH 6/6] Add rotate90 filter.

Michael Niedermayer michaelni
Wed Dec 1 01:36:02 CET 2010


On Tue, Nov 30, 2010 at 11:31:54PM +0100, Stefano Sabatini wrote:
> On date Tuesday 2010-11-23 22:34:01 -0200, Ramiro Polla encoded:
> > On Tue, Nov 23, 2010 at 10:26 PM, Stefano Sabatini
> > <stefano.sabatini-lala at poste.it> wrote:
> > > On date Tuesday 2010-11-23 18:46:17 -0500, Ronald S. Bultje encoded:
> > >> On Tue, Nov 23, 2010 at 6:34 PM, Stefano Sabatini
> > >> <stefano.sabatini-lala at poste.it> wrote:
> > >> > On date Tuesday 2010-11-23 15:18:14 -0800, Baptiste Coudurier encoded:
> > >> >> On 11/23/2010 12:29 PM, Stefano Sabatini wrote:
> > >> > [...]
> > >> >> What's wrong with the rotate filter ?
> > >> >
> > >> > overkill for just rotating by 90 degrees (and slower).
> > >>
> > >> So integrate this as an optimization in that filter.
> > >
> > > That's actually a good idea, but I was thinking about the rotate
> > > filter like something a bit more general, which should take:
> > > angle_expr:output_size:padding_color
> > >
> > > the rotate90 is just simpler and does what the 95% of the users need
> > > (and I want to take some time to actually study the algorithms for
> > > spatial transform of that kind), that's why I thought that having two
> > > separate filters may be a good idea, and would let us to deliver the
> > > simple filter *now*.
> > 
> > Why the rush? An optimization to the rotate filter seems like a better
> > path to me too.
> 
> It's still overkill if you just want to rotate by 90 degrees (which is
> what most users want to do), also the more general rotate should have
> a more complex syntax and I feel like that would just complicate the
> use for the simple case (and lead to more complex code, also the
> rotate90 filter will have a smaller footprint in case you need only
> that feature and you have few memory).
> 
> Michael?

i agree with ramiro and others, implementation details belong in the
implementation. we dont need 2 rotate filters, one optimized for 90deg and
others unoptimized for all cases. one filter with a if() is better and cleaner

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

If you think the mosad wants you dead since a long time then you are either
wrong or dead since a long time.
-------------- 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/20101201/02342ed0/attachment.pgp>



More information about the ffmpeg-devel mailing list