[FFmpeg-devel] [PATCH] sws flags for ffmpeg
Michael Niedermayer
michaelni
Mon May 21 21:16:23 CEST 2007
Hi
On Mon, May 21, 2007 at 08:52:41PM +0200, Ivo wrote:
> Hi,
>
> The attached patch adds support for various SWS flags to ffmpeg. One can
> select the type of scaler and override cpuflags, which is mostly useful to
> force swscale to use the C version during benchmarking without recompiling
> and commenting out the SIMD block of code.
>
> It adds two command line options:
> -sws_type <type>
> -sws_cpuflag <flag>
>
> Specifying "help" for type or flag will list all types/flags.
>
> The options are only available with configure --enable-swscaler for obvious
> reasons.
>
> If the patch's reviewcycle(s) is/are over, I will update the docs.
>
> --Ivo
> Index: ffmpeg.c
> ===================================================================
> --- ffmpeg.c (revision 9096)
> +++ ffmpeg.c (working copy)
> @@ -2246,6 +2246,88 @@
> frame_pix_fmt = avcodec_get_pix_fmt(arg);
> }
>
> +#if defined(CONFIG_SWSCALER)
#ifdef
[...]
> +static void opt_sws_type(const char *arg) {
> + struct sws_flags_list sws_type_list[] = {
> + { "fast_bilinear", SWS_FAST_BILINEAR },
> + { "bilinear", SWS_BILINEAR },
> + { "bicubic", SWS_BICUBIC },
> + { "experimental", SWS_X },
> + { "neighbor", SWS_POINT },
> + { "area", SWS_AREA },
> + { "bicubic_bilinear", SWS_BICUBLIN },
> + { "gauss", SWS_GAUSS },
> + { "sinc", SWS_SINC },
> + { "lanczos", SWS_LANCZOS },
> + { "spline", SWS_SPLINE },
> + { NULL, 0 }
> + };
cant AVOption be somehow used for that? same for the mmx*/... stuff ?
and i think that maybe that list should be somewhere in libswscale instead
of ffmpeg.c ...
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Opposition brings concord. Out of discord comes the fairest harmony.
-- Heraclitus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070521/dd950aba/attachment.pgp>
More information about the ffmpeg-devel
mailing list