Browse code

Rename --enable-swscaler --> enable-swscale to be consistent with the directory name and other option names. Also rename variables accordingly.

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

Diego Biurrun authored on 2008/03/11 02:54:24
Showing 5 changed files
... ...
@@ -66,7 +66,7 @@ SRCS = $(addsuffix .c, $(PROGS-yes)) cmdutils.c
66 66
 LDFLAGS := -L$(BUILD_ROOT)/libavdevice -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libavutil $(LDFLAGS)
67 67
 EXTRALIBS := -lavdevice$(BUILDSUF) -lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)
68 68
 
69
-ifeq ($(CONFIG_SWSCALER),yes)
69
+ifeq ($(CONFIG_SWSCALE),yes)
70 70
 LDFLAGS+=-L$(BUILD_ROOT)/libswscale
71 71
 EXTRALIBS+=-lswscale$(BUILDSUF)
72 72
 endif
... ...
@@ -87,7 +87,7 @@ lib:
87 87
 	$(MAKE)                    -C libavformat all
88 88
 	$(MAKE)                    -C libavdevice all
89 89
 	$(MAKE-$(CONFIG_POSTPROC)) -C libpostproc all
90
-	$(MAKE-$(CONFIG_SWSCALER)) -C libswscale  all
90
+	$(MAKE-$(CONFIG_SWSCALE))  -C libswscale  all
91 91
 	$(MAKE-$(CONFIG_AVFILTER)) -C libavfilter all
92 92
 
93 93
 ffmpeg_g$(EXESUF): ffmpeg.o cmdutils.o .libs
... ...
@@ -173,7 +173,7 @@ install-libs:
173 173
 	$(MAKE)                    -C libavformat install-libs
174 174
 	$(MAKE)                    -C libavdevice install-libs
175 175
 	$(MAKE-$(CONFIG_POSTPROC)) -C libpostproc install-libs
176
-	$(MAKE-$(CONFIG_SWSCALER)) -C libswscale  install-libs
176
+	$(MAKE-$(CONFIG_SWSCALE))  -C libswscale  install-libs
177 177
 	$(MAKE-$(CONFIG_AVFILTER)) -C libavfilter install-libs
178 178
 
179 179
 install-headers:
... ...
@@ -222,7 +222,7 @@ depend dep: .depend .vhookdep
222 222
 	$(MAKE)                    -C libavformat depend
223 223
 	$(MAKE)                    -C libavdevice depend
224 224
 	$(MAKE-$(CONFIG_POSTPROC)) -C libpostproc depend
225
-	$(MAKE-$(CONFIG_SWSCALER)) -C libswscale  depend
225
+	$(MAKE-$(CONFIG_SWSCALE))  -C libswscale  depend
226 226
 	$(MAKE-$(CONFIG_AVFILTER)) -C libavfilter depend
227 227
 
228 228
 .depend: $(SRCS) version.h
... ...
@@ -409,11 +409,11 @@ test-server: ffserver$(EXESUF) tests/vsynth1/00.pgm tests/asynth1.sw
409 409
 	@echo
410 410
 	$(SRC_PATH)/tests/server-regression.sh $(FFSERVER_REFFILE) $(SRC_PATH)/tests/test.conf
411 411
 
412
-ifeq ($(CONFIG_SWSCALER),yes)
412
+ifeq ($(CONFIG_SWSCALE),yes)
413 413
 test-server codectest $(CODEC_TESTS) libavtest: swscale_error
414 414
 swscale_error:
415 415
 	@echo
416
-	@echo "This regression test is incompatible with --enable-swscaler."
416
+	@echo "This regression test is incompatible with --enable-swscale."
417 417
 	@echo
418 418
 	@exit 1
419 419
 endif
... ...
@@ -71,7 +71,7 @@ show_help(){
71 71
   echo "  --enable-nonfree         allow use of nonfree code, the resulting libav*"
72 72
   echo "                           and ffmpeg will be unredistributable [default=no]"
73 73
   echo "  --enable-postproc        enable GPLed postprocessing support [default=no]"
74
-  echo "  --enable-swscaler        software scaler support [default=no]"
74
+  echo "  --enable-swscale         software scaler support [default=no]"
75 75
   echo "  --enable-avfilter        video filter support (replaces vhook) [default=no]"
76 76
   echo "  --enable-avfilter-lavf   video filters dependant on avformat [default=no]"
77 77
   echo "  --enable-beosthreads     use BeOS threads [default=no]"
... ...
@@ -661,7 +661,7 @@ CONFIG_LIST="
661 661
     postproc
662 662
     powerpc_perf
663 663
     small
664
-    swscaler
664
+    swscale
665 665
     vhook
666 666
     x11grab
667 667
     zlib
... ...
@@ -1214,7 +1214,7 @@ case $targetos in
1214 1214
         shlibdir="$bindir"
1215 1215
         VHOOKSHFLAGS='-shared -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libavutil'
1216 1216
         VHOOKLIBS='-lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)'
1217
-        if enabled swscaler; then
1217
+        if enabled swscale; then
1218 1218
             VHOOKSHFLAGS="$VHOOKSHFLAGS -L\$(BUILD_ROOT)/libswscale"
1219 1219
             VHOOKLIBS="$VHOOKLIBS -lswscale\$(BUILDSUF)"
1220 1220
         fi
... ...
@@ -1234,7 +1234,7 @@ case $targetos in
1234 1234
         shlibdir="$bindir"
1235 1235
         VHOOKSHFLAGS='-shared -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libavutil'
1236 1236
         VHOOKLIBS='-lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)'
1237
-        if enabled swscaler; then
1237
+        if enabled swscale; then
1238 1238
             VHOOKSHFLAGS="$VHOOKSHFLAGS -L\$(BUILD_ROOT)/libswscale"
1239 1239
             VHOOKLIBS="$VHOOKLIBS -lswscale\$(BUILDSUF)"
1240 1240
         fi
... ...
@@ -1355,7 +1355,7 @@ if ! enabled gpl; then
1355 1355
     die_gpl_disabled "libxvidcore"             libxvid
1356 1356
     die_gpl_disabled "FAAD2"                   libfaad2
1357 1357
     die_gpl_disabled "The X11 grabber"         x11grab
1358
-    die_gpl_disabled "The software scaler"     swscaler
1358
+    die_gpl_disabled "The software scaler"     swscale
1359 1359
 fi
1360 1360
 
1361 1361
 if ! enabled nonfree && enabled_any libamr_nb libamr_wb; then
... ...
@@ -1898,7 +1898,7 @@ echo "optimizations             ${optimizations-no}"
1898 1898
 echo "static                    ${static-no}"
1899 1899
 echo "shared                    ${shared-no}"
1900 1900
 echo "postprocessing support    ${postproc-no}"
1901
-echo "software scaler enabled   ${swscaler-no}"
1901
+echo "software scaler enabled   ${swscale-no}"
1902 1902
 echo "new filter support        ${avfilter-no}"
1903 1903
 echo "filters using lavformat   ${avfilter_lavf-no}"
1904 1904
 echo "video hooking             ${vhook-no}"
... ...
@@ -2184,7 +2184,7 @@ if enabled postproc; then
2184 2184
     pkgconfig_generate_uninstalled libpostproc "FFmpeg post processing library" "$LIBPOSTPROC_VERSION"
2185 2185
 fi
2186 2186
 
2187
-if enabled swscaler; then
2187
+if enabled swscale; then
2188 2188
     pkgconfig_generate libswscale "FFmpeg image rescaling library" "$LIBSWSCALE_VERSION" -lswscale "libavutil = $LIBAVUTIL_VERSION"
2189 2189
     pkgconfig_generate_uninstalled libswscale "FFmpeg image rescaling library" "$LIBSWSCALE_VERSION" "" "libavutil = $LIBAVUTIL_VERSION"
2190 2190
 else
... ...
@@ -356,7 +356,7 @@ OBJS-$(HAVE_W32THREADS)                += w32thread.o
356 356
 
357 357
 OBJS-$(HAVE_XVMC_ACCEL)                += xvmcvideo.o
358 358
 
359
-ifneq ($(CONFIG_SWSCALER),yes)
359
+ifneq ($(CONFIG_SWSCALE),yes)
360 360
 OBJS += imgresample.o
361 361
 endif
362 362
 
... ...
@@ -2380,7 +2380,7 @@ int img_pad(AVPicture *dst, const AVPicture *src, int height, int width,
2380 2380
 }
2381 2381
 #endif
2382 2382
 
2383
-#ifndef CONFIG_SWSCALER
2383
+#ifndef CONFIG_SWSCALE
2384 2384
 /* XXX: always use linesize. Return -1 if not supported */
2385 2385
 int img_convert(AVPicture *dst, int dst_pix_fmt,
2386 2386
                 const AVPicture *src, int src_pix_fmt,
... ...
@@ -2,7 +2,7 @@ include ../config.mak
2 2
 
3 3
 NAME = avfilter
4 4
 FFLIBS = avcodec avutil
5
-FFLIBS-$(CONFIG_SWSCALER)      += swscale
5
+FFLIBS-$(CONFIG_SWSCALE)       += swscale
6 6
 FFLIBS-$(CONFIG_AVFILTER_LAVF) += avformat
7 7
 
8 8
 OBJS = allfilters.o \