diff options
author | Bastien Nocera <hadess@hadess.net> | 2008-02-23 02:38:03 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2008-02-23 02:38:03 +0000 |
commit | e8ef50ac94938ee230dd15642b86a332d365a1f4 (patch) | |
tree | a1c0d5bafacc5a855da8c7cc368275d0726434c1 /gst/goom/convolve_fx.c | |
parent | a7bc7485b1a4d7e1b1a12ff593ca4ccb1d59e466 (diff) |
gst/goom/Makefile.am: Remove the warnings being disabled, fix linkage on x86, spotted by Sebastian Dröge
Original commit message from CVS:
* 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)
Diffstat (limited to 'gst/goom/convolve_fx.c')
-rw-r--r-- | gst/goom/convolve_fx.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/gst/goom/convolve_fx.c b/gst/goom/convolve_fx.c index 261c5fa8..fb5e0b55 100644 --- a/gst/goom/convolve_fx.c +++ b/gst/goom/convolve_fx.c @@ -15,8 +15,10 @@ typedef char Motif[CONV_MOTIF_W][CONV_MOTIF_W]; +#if 0 #include "motif_goom1.h" #include "motif_goom2.h" +#endif #define NB_THETA 512 @@ -67,6 +69,7 @@ compute_tables (VisualFX * _this, PluginInfo * info) } } +#if 0 static void set_motif (ConvData * data, Motif motif) { @@ -77,7 +80,7 @@ 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) { @@ -110,7 +113,9 @@ 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; @@ -209,11 +214,12 @@ create_output_with_brightness (VisualFX * _this, Pixel * src, Pixel * dest, 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; @@ -293,6 +299,7 @@ convolve_apply (VisualFX * _this, Pixel * src, Pixel * dest, PluginInfo * info) data->factor_p.change_listener (&data->factor_p); } +#if 0 if (data->visibility < 0.01) { switch (goom_irand (info->gRandom, 300)) { case 1: @@ -305,7 +312,7 @@ convolve_apply (VisualFX * _this, Pixel * src, Pixel * dest, PluginInfo * info) break; } } - +#endif if ((ff > 0.98f) && (ff < 1.02f)) memcpy (dest, src, info->screen.size * sizeof (Pixel)); else |