Browse code

Add a Makefile variable for the old scaler that gets enabled when the new scaler is disabled to get rid of a Makefile ifdef.

Originally committed as revision 15867 to svn://svn.ffmpeg.org/ffmpeg/trunk

Diego Biurrun authored on 2008/11/18 07:51:59
Showing 2 changed files
... ...
@@ -872,6 +872,7 @@ HAVE_LIST="
872 872
 # options emitted with CONFIG_ prefix but not available on command line
873 873
 CONFIG_EXTRA="
874 874
     fft_mmx
875
+    oldscaler
875 876
 "
876 877
 
877 878
 CMDLINE_SELECT="
... ...
@@ -928,6 +929,7 @@ vis_deps="sparc"
928 928
 # common features
929 929
 fft_suggest="fft_mmx"
930 930
 fft_mmx_deps="mmx yasm"
931
+oldscaler_deps="!swscale"
931 932
 
932 933
 # decoders / encoders
933 934
 aac_decoder_select="fft mdct"
... ...
@@ -1084,6 +1086,7 @@ enable ffserver
1084 1084
 enable ipv6
1085 1085
 enable mpegaudio_hp
1086 1086
 enable network
1087
+enable oldscaler
1087 1088
 enable optimizations
1088 1089
 enable protocols
1089 1090
 enable static
... ...
@@ -27,6 +27,7 @@ OBJS-$(CONFIG_ENCODERS)                += faandct.o jfdctfst.o jfdctint.o
27 27
 OBJS-$(CONFIG_FFT)                     += fft.o
28 28
 OBJS-$(CONFIG_GOLOMB)                  += golomb.o
29 29
 OBJS-$(CONFIG_MDCT)                    += mdct.o
30
+OBJS-$(CONFIG_OLDSCALER)               += imgresample.o
30 31
 
31 32
 OBJS-$(CONFIG_AAC_DECODER)             += aac.o aactab.o
32 33
 OBJS-$(CONFIG_AASC_DECODER)            += aasc.o msrledec.o
... ...
@@ -383,10 +384,6 @@ OBJS-$(HAVE_W32THREADS)                += w32thread.o
383 383
 
384 384
 OBJS-$(HAVE_XVMC)                      += xvmcvideo.o
385 385
 
386
-ifndef CONFIG_SWSCALE
387
-OBJS += imgresample.o
388
-endif
389
-
390 386
 # processor-specific code
391 387
 ifdef HAVE_MMX
392 388
 OBJS += i386/fdct_mmx.o                                                 \