[Ffmpeg-devel] About swscale
Michael Niedermayer
michaelni
Wed Jun 21 13:42:00 CEST 2006
Hi
On Wed, Jun 14, 2006 at 01:15:40PM +0200, Luca Abeni wrote:
[...]
> Index: main/configure
> ===================================================================
> --- main.orig/configure 2006-05-19 07:41:28.000000000 +0200
> +++ main/configure 2006-05-19 11:09:59.000000000 +0200
> @@ -7343,6 +7343,30 @@
> fi
> echores "$_lircc"
>
> +echocheck "Software Scaler"
> +_swscaler=no
> +cat > $TMPC <<EOF
> +#include <stdint.h>
> +#include "libswscale/swscale.h"
> +int main(void) { return 0; }
> +EOF
> +cc_check -I . && _swscaler=yes
> +echores "$_swscaler"
> +if test "$_swscaler" = no ; then
> +die "Software Scaler not found. Please copy libswscale from FFMpeg"
> +fi
> +echocheck "New software scaler"
> +_new_swscaler=no
> +cat > $TMPC <<EOF
> +#include <stdint.h>
> +#include "libswscale/swscale.h"
> +#ifndef LIBSWSCALE_BUILD
> +#error Old Software Scaler
> +#endif
> +int main(void) { return 0; }
> +EOF
> +cc_check -I . && _new_swscaler=yes
> +echores "$_new_swscaler"
is this check good for anything? mplayer doesnt support compiling without
sws anyway ...
> #############################################################################
> echo "Creating config.mak"
> cat > config.mak << EOF
> @@ -7537,6 +7561,7 @@
> AMR_NB=$_amr_nb
> AMR_NB_FIXED=$_amr_nb_fixed
> AMR_WB=$_amr_wb
> +NEW_SWSCALER=$_new_swscaler
this seems unused?
[...]
> Index: main/sws_interface.c
> ===================================================================
> --- /dev/null 1970-01-01 00:00:00.000000000 +0000
> +++ main/sws_interface.c 2006-05-19 11:11:56.000000000 +0200
> @@ -0,0 +1,39 @@
> +#include <stdint.h>
> +#include <stdarg.h>
> +#include "mp_msg.h"
> +#include "libswscale/swscale.h"
> +
> +#ifdef HAVE_MALLOC_H
> +#include <malloc.h>
> +#endif
> +
> +#ifdef LIBSWSCALE_BUILD
wont that always be true?
[...]
except these iam fine with that patch, ill look at the next one after
we applied this
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is
More information about the ffmpeg-devel
mailing list