mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 16:08:51 +00:00
Make libs/idct only build mmx support if available - hopefully makes it compile on PPC.
Original commit message from CVS: Make libs/idct only build mmx support if available - hopefully makes it compile on PPC.
This commit is contained in:
parent
59030bfc59
commit
3bcccbf82e
5 changed files with 25 additions and 8 deletions
|
@ -11,12 +11,11 @@ GSTOBJECT_INCLUDES = \
|
||||||
if HAVE_CPU_I386
|
if HAVE_CPU_I386
|
||||||
GSTARCH_SRCS = gstcpuid_i386.s
|
GSTARCH_SRCS = gstcpuid_i386.s
|
||||||
else
|
else
|
||||||
if HAVE_CPU_PPC
|
|
||||||
GSTARCH_SRCS =
|
|
||||||
else
|
|
||||||
GSTARCH_SRCS =
|
GSTARCH_SRCS =
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
EXTRA_libgst_la_SOURCES = \
|
||||||
|
gstcpuid_i386.s
|
||||||
|
|
||||||
libgst_la_SOURCES = \
|
libgst_la_SOURCES = \
|
||||||
gst.c \
|
gst.c \
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
if HAVE_CPU_I386
|
if HAVE_CPU_I386
|
||||||
GSTARCH_SUBDS = videoscale winloader idct
|
GSTARCH_SUBDS = videoscale winloader
|
||||||
else
|
else
|
||||||
GSTARCH_SUBDS =
|
GSTARCH_SUBDS =
|
||||||
endif
|
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
|
DIST_SUBDIRS = riff colorspace getbits putbits videoscale winloader idct
|
||||||
|
|
|
@ -1,8 +1,20 @@
|
||||||
|
|
||||||
|
if HAVE_LIBMMX
|
||||||
|
GSTIDCTARCH_SRCS = mmxidct.S mmx32idct.c
|
||||||
|
else
|
||||||
|
GSTIDCTARCH_SRCS =
|
||||||
|
endif
|
||||||
|
|
||||||
filterdir = $(libdir)/gst
|
filterdir = $(libdir)/gst
|
||||||
|
|
||||||
filter_LTLIBRARIES = libgstidct.la
|
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
|
libgstidctincludedir = $(includedir)/gst/libs/gstidct
|
||||||
libgstidctinclude_HEADERS = gstidct.h
|
libgstidctinclude_HEADERS = gstidct.h
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
/* define DCT types */
|
/* define DCT types */
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* DCTSIZE underlying (1d) transform size
|
* DCTSIZE underlying (1d) transform size
|
||||||
* DCTSIZE2 DCTSIZE squared
|
* 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_init_fast_int_idct (void);
|
||||||
extern void gst_idct_fast_int_idct (short *block);
|
extern void gst_idct_fast_int_idct (short *block);
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBMMX
|
||||||
extern void gst_idct_mmx_idct (short *block);
|
extern void gst_idct_mmx_idct (short *block);
|
||||||
extern void gst_idct_mmx32_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_init_float_idct(void);
|
||||||
extern void gst_idct_float_idct (short *block);
|
extern void gst_idct_float_idct (short *block);
|
||||||
|
|
|
@ -38,7 +38,7 @@ GstIDCT *gst_idct_new(GstIDCTMethod method)
|
||||||
method = GST_IDCT_MMX;
|
method = GST_IDCT_MMX;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif /* HAVE_LIBMMX */
|
||||||
{
|
{
|
||||||
method = GST_IDCT_FAST_INT;
|
method = GST_IDCT_FAST_INT;
|
||||||
}
|
}
|
||||||
|
@ -61,6 +61,7 @@ GstIDCT *gst_idct_new(GstIDCTMethod method)
|
||||||
gst_idct_init_float_idct();
|
gst_idct_init_float_idct();
|
||||||
new->convert = gst_idct_float_idct;
|
new->convert = gst_idct_float_idct;
|
||||||
break;
|
break;
|
||||||
|
#ifdef HAVE_LIBMMX
|
||||||
case GST_IDCT_MMX:
|
case GST_IDCT_MMX:
|
||||||
g_print("GstIDCT: using MMX_idct\n");
|
g_print("GstIDCT: using MMX_idct\n");
|
||||||
new->convert = gst_idct_mmx_idct;
|
new->convert = gst_idct_mmx_idct;
|
||||||
|
@ -71,6 +72,7 @@ GstIDCT *gst_idct_new(GstIDCTMethod method)
|
||||||
new->convert = gst_idct_mmx32_idct;
|
new->convert = gst_idct_mmx32_idct;
|
||||||
new->need_transpose = TRUE;
|
new->need_transpose = TRUE;
|
||||||
break;
|
break;
|
||||||
|
#endif /* HAVE_LIBMMX */
|
||||||
default:
|
default:
|
||||||
g_print("GstIDCT: method not supported\n");
|
g_print("GstIDCT: method not supported\n");
|
||||||
g_free(new);
|
g_free(new);
|
||||||
|
|
Loading…
Reference in a new issue