goom_tools.h goom_tools.h goom_config.h \
$(ARCH_FILES)
-libgstgoom_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GOOM_FILTER_CFLAGS) $(LIBOIL_CFLAGS) $(ARCH_CFLAGS)
-libgstgoom_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) $(LIBM) $(LIBOIL_LIBS)
+libgstgoom_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GOOM_FILTER_CFLAGS) $(ARCH_CFLAGS) $(ORC_CFLAGS)
+libgstgoom_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) $(LIBM) $(ORC_LIBS)
libgstgoom_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstgoom_la_LIBTOOLFLAGS = --tag=disable-static
#include <gst/video/video.h>
#include "goom.h"
-#include <liboil/liboil.h>
-
GST_DEBUG_CATEGORY (goom_debug);
#define GST_CAT_DEFAULT goom_debug
{
GST_DEBUG_CATEGORY_INIT (goom_debug, "goom", 0, "goom visualisation element");
- oil_init ();
-
return gst_element_register (plugin, "goom", GST_RANK_NONE, GST_TYPE_GOOM);
}
#include "drawmethods.h"
#include <math.h>
#include <stdio.h>
+#ifdef HAVE_ORC
+#include <orc/orc.h>
+#endif
#if defined (HAVE_CPU_PPC64) || defined (HAVE_CPU_PPC)
#include "mmx.h"
#endif /* HAVE_MMX */
-#include <liboil/liboil.h>
-#include <liboil/liboilfunction.h>
-#include <liboil/liboilcpu.h>
GST_DEBUG_CATEGORY_EXTERN (goom_debug);
#define GST_CAT_DEFAULT goom_debug
static void
setOptimizedMethods (PluginInfo * p)
{
-
- unsigned int cpuFlavour = oil_cpu_get_flags ();
+#ifdef HAVE_ORC
+ unsigned int cpuFlavour =
+ orc_target_get_default_flags (orc_target_get_by_name ("mmx"));
+#else
+ unsigned int cpuFlavour = 0;
+#endif
/* set default methods */
p->methods.draw_line = draw_line;
p->methods.zoom_filter = zoom_filter_c;
/* p->methods.create_output_with_brightness = create_output_with_brightness;*/
- GST_INFO ("liboil cpu flags: 0x%08x", cpuFlavour);
+ GST_INFO ("orc cpu flags: 0x%08x", cpuFlavour);
/* FIXME: what about HAVE_CPU_X86_64 ? */
#ifdef HAVE_CPU_I386
#ifdef HAVE_MMX
+#ifdef HAVE_ORC
GST_INFO ("have an x86");
- if (cpuFlavour & OIL_IMPL_FLAG_MMXEXT) {
+ if (cpuFlavour & ORC_TARGET_MMX_MMXEXT) {
GST_INFO ("Extended MMX detected. Using the fastest methods!");
p->methods.draw_line = draw_line_xmmx;
p->methods.zoom_filter = zoom_filter_xmmx;
- } else if (cpuFlavour & OIL_IMPL_FLAG_MMX) {
+ } else if (cpuFlavour & ORC_TARGET_MMX_MMX) {
GST_INFO ("MMX detected. Using fast methods!");
p->methods.draw_line = draw_line_mmx;
p->methods.zoom_filter = zoom_filter_mmx;
GST_INFO ("Too bad ! No SIMD optimization available for your CPU.");
}
#endif
+#endif
#endif /* HAVE_CPU_I386 */
/* disable all PPC stuff until someone finds out what to use here instead of
#endif /* HAVE_CPU_PPC64 */
#ifdef HAVE_CPU_PPC
- if ((cpuFlavour & OIL_IMPL_FLAG_ALTIVEC) != 0) {
+ if ((cpuFlavour & ORC_TARGET_ALTIVEC_ALTIVEC) != 0) {
/* p->methods.create_output_with_brightness = ppc_brightness_G4; */
p->methods.zoom_filter = ppc_zoom_G4;
} else {