[FFmpeg-devel] [PATCH] swscale: Support setting filters through AVOptions

Michael Niedermayer michaelni at gmx.at
Fri Oct 25 15:20:17 CEST 2013


On Mon, Oct 21, 2013 at 05:53:33PM +0200, Stefano Sabatini wrote:
> On date Monday 2013-10-21 17:24:32 +0200, Stefano Sabatini encoded:
> > On date Monday 2013-10-14 19:28:41 +0200, Stefano Sabatini encoded:
> > > On date Sunday 2013-10-13 20:57:40 +0200, Stefano Sabatini encoded:
> > [...]
> > > Updated and more tested, and with some docs.
> > > 
> > > I still need sane documentation telling exactly what source and
> > > destination filter are, and some relevant use cases/examples (I'm not
> > > the best person to tell).
> > 
> > From what I can understand the filters are applied this way:
> > 
> > val(x) = (Sum_i=0:n-1 coeff(i)*val(x-n/2+i)) / n
> > 
> > Is this correct? Shouldn't we require that the size of the filter must
> > be odd?
> > 
> > > Also, what happens if the filter are not specified, what if the input
> > > is not scaled (pixel format conversion?)? Is it possible to apply the
> > > filters *without* rescaling?
> > 
> > When no rescaling and/or conversion is selected no filter is
> > applied. Should I file this as a bug?
> 
> And up.
> -- 
> FFmpeg = Fabulous and Fostering Moronic Programmable Exxagerate Genius

>  doc/scaler.texi               |   35 +++++
>  libswscale/Makefile           |    1 
>  libswscale/options.c          |    3 
>  libswscale/swscale.h          |   27 ++++
>  libswscale/swscale_internal.h |    4 
>  libswscale/utils.c            |  280 +++++++++++++++++++++++++++++++++++++++++-
>  6 files changed, 349 insertions(+), 1 deletion(-)
> 1eb77ba5da5aa5a76c47b2208fecbb7177cd5c27  0002-lsws-support-setting-filters-through-AVOptions.patch
> From 43cfd6ac1504f667f081e92a76b394e2f96816d6 Mon Sep 17 00:00:00 2001
> From: Stefano Sabatini <stefasab at gmail.com>
> Date: Sat, 5 Oct 2013 22:49:55 +0200
> Subject: [PATCH] lsws: support setting filters through AVOptions

should be ok if tested

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

Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131025/28a75c86/attachment.asc>


More information about the ffmpeg-devel mailing list