2008-02-23 Bastien Nocera <hadess@hadess.net>
+ * gst/goom/Makefile.am: Remove the warnings being disabled,
+ fix linkage on x86, spotted by Sebastian Dröge
+ <slomo@circular-chaos.org>
+
+ * gst/goom/convolve_fx.c (convolve_init),
+ (create_output_with_brightness), (convolve_apply):
+ * gst/goom/filters.c (zoomFilterVisualFXWrapper_create):
+ * gst/goom/goomsl.c:
+ * gst/goom/ifs.c (ifs_update), (ifs_visualfx_create):
+ * gst/goom/plugin_info.c:
+ * gst/goom/tentacle3d.c (tentacle_fx_create):
+ Fix warnings, and disable the motifs in the convolve_fx
+ plugin (they were causing warnings, and they were just
+ "Goom" in funny letterring)
+
+2008-02-23 Bastien Nocera <hadess@hadess.net>
+
* configure.ac: Add checks for Flex/Yacc/Bison and other
furry animals, for the new goom 2k4 based plugin
endif
if HAVE_CPU_I386
ARCH_FILES = $(MMX_FILES)
+ARCH_CFLAGS = -DHAVE_MMX
endif
libgstgoom_la_SOURCES = \
goom_tools.h goom_tools.h goom_config.h \
$(ARCH_FILES)
-ERROR_CFLAGS=
-libgstgoom_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GOOM_FILTER_CFLAGS) $(LIBOIL_CFLAGS)
+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) libgstgoomconfigparse.la
libgstgoom_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
typedef char Motif[CONV_MOTIF_W][CONV_MOTIF_W];
+#if 0
#include "motif_goom1.h"
#include "motif_goom2.h"
+#endif
#define NB_THETA 512
}
}
+#if 0
static void
set_motif (ConvData * data, Motif motif)
{
data->conv_motif[i][j] =
motif[CONV_MOTIF_W - i - 1][CONV_MOTIF_W - j - 1];
}
-
+#endif
static void
convolve_init (VisualFX * _this, PluginInfo * info)
{
data->theta = 0;
data->ftheta = 0.0;
data->visibility = 1.0;
+#if 0
set_motif (data, CONV_MOTIF2);
+#endif
data->inverse_motif = 0;
_this->params = &data->params;
xtex += c;
ytex -= s;
- iff2 =
- ifftab[data->
+ iff2 = 0;
+#if 0
+ ifftab[data->
conv_motif[(ytex >> 16) & CONV_MOTIF_WMASK][(xtex >> 16) &
CONV_MOTIF_WMASK]];
-
+#endif
#define sat(a) ((a)>0xFF?0xFF:(a))
f0 = src[i].val;
f1 = ((f0 >> R_OFFSET) & 0xFF) * iff2 >> 8;
data->factor_p.change_listener (&data->factor_p);
}
+#if 0
if (data->visibility < 0.01) {
switch (goom_irand (info->gRandom, 300)) {
case 1:
break;
}
}
-
+#endif
if ((ff > 0.98f) && (ff < 1.02f))
memcpy (dest, src, info->screen.size * sizeof (Pixel));
else
fx.init = zoomFilterVisualFXWrapper_init;
fx.free = zoomFilterVisualFXWrapper_free;
fx.apply = zoomFilterVisualFXWrapper_apply;
+ fx.params = NULL;
+ fx.fx_data = NULL;
return fx;
}
}
} /* }}} */
+#ifdef USE_JITC_X86
static int
powerOfTwo (int i)
{
return b;
return 0;
}
+#endif
/* Cree un flow d'instruction optimise */
static void
static int cycle = 0;
int cycle10;
- int nbpt;
+ int nbpt = 0;
IFSPoint *points;
int i;
vfx.init = ifs_vfx_init;
vfx.free = ifs_vfx_free;
vfx.apply = ifs_vfx_apply;
+ vfx.fx_data = NULL;
+ vfx.params = NULL;
return vfx;
}
#include <liboil/liboil.h>
#include <liboil/liboilfunction.h>
+#include <liboil/liboilcpu.h>
#define VERBOSE 1
static void
fx.init = tentacle_fx_init;
fx.apply = tentacle_fx_apply;
fx.free = tentacle_fx_free;
+ fx.fx_data = NULL;
+ fx.params = NULL;
return fx;
}
float val =
(float) (ShiftRight (data[0][goom_irand (goomInfo->gRandom, 511)],
10)) * rapport;
+
fx_data->vals[tmp2] = val;
}