[FFmpeg-devel] [PATCH][RFC] perspective filter port
stefano.sabatini-lala at poste.it
Sat Apr 30 19:04:33 CEST 2011
in attachment a mechanical port of the libmpcodecs perspective filter.
* add support to RGB path
* add support to more formats (many of them should be already
supported out of the box)
* make the filter parametric
* make the filter support outw/h != inw/h
* write an affine transform wrapper (perspective transforms are a
superclass of the affine transforms)
* add support to a fill color for filling the background
* rework the interface, maybe we could make the filter accepts a
matrix textual representation (e.g. adopting the MATLAB/Octave
notation), the parsing routines may be useful in other parts of the
Note that this filter uses float arithmetic, so I believe it is still
a good idea to keep a separate non-float implementation of a rotozoom
filter (I have no idea at this point if the same could be done with
But in order to do this I need to understand the math behind the code.
Michael, can you describe the meaning of
and eventually provide a link to some reference material?
pvStride in particular is defined like the input width, so maybe at
least that parameter may be removed.
The accidental motivation for this patch is adding support to affine
transforms, in order to support transforms annotated in MOV metadata
through the automatic insertion of a filter in the filterchain.
Note: I changed the license from GPL to LGPL, Micheal are you fine
FFmpeg = Fanciful and Foolish Most Prodigious Erroneous Glue
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 14858 bytes
Desc: not available
More information about the ffmpeg-devel