]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/commitdiff
Make libs/idct only build mmx support if available - hopefully makes it compile on...
authorRichard Boulton <richard@tartarus.org>
Thu, 21 Sep 2000 01:34:34 +0000 (01:34 +0000)
committerRichard Boulton <richard@tartarus.org>
Thu, 21 Sep 2000 01:34:34 +0000 (01:34 +0000)
Original commit message from CVS:
Make libs/idct only build mmx support if available - hopefully makes it
compile on PPC.

gst/Makefile.am
libs/Makefile.am
libs/idct/Makefile.am
libs/idct/dct.h
libs/idct/gstidct.c

index f0ab1228a1eab6aadf6c480f742b25482f0183c0..e21c0404edf89bf03fe9ad92f1963177680030af 100644 (file)
@@ -11,12 +11,11 @@ GSTOBJECT_INCLUDES =        \
 if HAVE_CPU_I386
 GSTARCH_SRCS = gstcpuid_i386.s
 else
-if HAVE_CPU_PPC
-GSTARCH_SRCS = 
-else
 GSTARCH_SRCS = 
 endif
-endif
+
+EXTRA_libgst_la_SOURCES =      \
+       gstcpuid_i386.s
 
 libgst_la_SOURCES =    \
        gst.c           \
index 77fae5f1b85c28e1394e809988187848b6cfbfb5..b77eea6fc8ba2623d4bb0f4b06731cf6ae228a9a 100644 (file)
@@ -1,9 +1,9 @@
 if HAVE_CPU_I386
-GSTARCH_SUBDS = videoscale winloader idct
+GSTARCH_SUBDS = videoscale winloader
 else
 GSTARCH_SUBDS =
 endif
 
-SUBDIRS = riff colorspace getbits putbits $(GSTARCH_SUBDS)
+SUBDIRS = riff colorspace getbits putbits idct $(GSTARCH_SUBDS)
 
 DIST_SUBDIRS = riff colorspace getbits putbits videoscale winloader idct
index 9a97325f6aaa6d9f8fe85e493cece7218b149884..7f45549eb5380ee93163b852cd6c01e854703646 100644 (file)
@@ -1,8 +1,20 @@
+
+if HAVE_LIBMMX
+GSTIDCTARCH_SRCS = mmxidct.S mmx32idct.c
+else
+GSTIDCTARCH_SRCS =
+endif
+
 filterdir = $(libdir)/gst
 
 filter_LTLIBRARIES = libgstidct.la
 
-libgstidct_la_SOURCES = fastintidct.c floatidct.c gstidct.c intidct.c mmxidct.S mmx32idct.c
+libgstidct_la_SOURCES = \
+        fastintidct.c \
+       floatidct.c \
+       gstidct.c \
+       intidct.c \
+       $(GSTIDCTARCH_SRCS)
 
 libgstidctincludedir = $(includedir)/gst/libs/gstidct
 libgstidctinclude_HEADERS = gstidct.h
index dddad743a93830496edae5ad6730e6688b6e97ca..71811a11e0e1c78ddff839c0734c8eb6c587338e 100644 (file)
@@ -1,5 +1,7 @@
 /* define DCT types */
 
+#include "config.h"
+
 /*
  * DCTSIZE      underlying (1d) transform size
  * DCTSIZE2     DCTSIZE squared
@@ -21,8 +23,10 @@ extern void gst_idct_int_idct();
 extern void gst_idct_init_fast_int_idct (void);
 extern void gst_idct_fast_int_idct (short *block);
 
+#ifdef HAVE_LIBMMX
 extern void gst_idct_mmx_idct (short *block);
 extern void gst_idct_mmx32_idct (short *block);
+#endif /* HAVE_LIBMMX */
 
 extern void gst_idct_init_float_idct(void);
 extern void gst_idct_float_idct (short *block);
index 4b1807993aba74373d030a9f95332bf91fb18532..701df771e89719673c9299e03d6c2ac96e4c21c6 100644 (file)
@@ -38,7 +38,7 @@ GstIDCT *gst_idct_new(GstIDCTMethod method)
       method = GST_IDCT_MMX;
     }
     else
-#endif
+#endif /* HAVE_LIBMMX */
     {
       method = GST_IDCT_FAST_INT;
     }
@@ -61,6 +61,7 @@ GstIDCT *gst_idct_new(GstIDCTMethod method)
                gst_idct_init_float_idct();
                new->convert = gst_idct_float_idct;
                break;
+#ifdef HAVE_LIBMMX
         case GST_IDCT_MMX:
                g_print("GstIDCT: using MMX_idct\n");
                new->convert = gst_idct_mmx_idct;
@@ -71,6 +72,7 @@ GstIDCT *gst_idct_new(GstIDCTMethod method)
                new->convert = gst_idct_mmx32_idct;
                new->need_transpose = TRUE;
                break;
+#endif /* HAVE_LIBMMX */
         default:
                g_print("GstIDCT: method not supported\n");
                g_free(new);