On Mon, Oct 21, 2013 at 01:41:52PM -0400, Daniel Kang wrote:
> --- /dev/null
> +++ b/libavfilter/x86/vf_gradfun.asm
> @@ -0,0 +1,144 @@
> +;*****************************************************************************
> +;* x86-optimized functions for gradfun filter
> +;*
> +;* This file is part of Libav.
> +;*
> +;* Libav is free software; you can redistribute it and/or modify
> +;* it under the terms of the GNU General Public License as published by
> +;* the Free Software Foundation; either version 2 of the License, or
> +;* (at your option) any later version.
> +;*
> +;* Libav is distributed in the hope that it will be useful,
> +;* but WITHOUT ANY WARRANTY; without even the implied warranty of
> +;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> +;* GNU General Public License for more details.
> +;*
> +;* You should have received a copy of the GNU General Public License along
> +;* with Libav; if not, write to the Free Software Foundation, Inc.,
> +;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
> +;******************************************************************************
> +
> --- a/libavfilter/x86/vf_gradfun.c
> +++ /dev/null
> @@ -1,217 +0,0 @@
> -/*
> - * Copyright (C) 2009 Loren Merritt <[email protected]>
> - *
> - * This file is part of Libav.
> - *
> - * Libav is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * Libav is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with Libav; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
> USA
> - */
Uh, you relicensed the file from LGPL to GPL ...
> --- /dev/null
> +++ b/libavfilter/x86/vf_gradfun_init.c
> @@ -0,0 +1,93 @@
> +
> +av_cold void ff_gradfun_init_x86(GradFunContext *gf)
> +{
> +#if HAVE_YASM
> + int cpu_flags = av_get_cpu_flags();
> +
> + if (EXTERNAL_MMXEXT(cpu_flags))
> + gf->filter_line = gradfun_filter_line_mmxext;
> + if (EXTERNAL_SSSE3(cpu_flags))
> + gf->filter_line = gradfun_filter_line_ssse3;
> + if (EXTERNAL_SSE2(cpu_flags))
> + gf->blur_line = gradfun_blur_line_sse2;
> +#endif /* HAVE_YASM */
Add an empty line between the filter_line and blur_line blocks, I keep
getting confused when I look over this.
Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel