gst/goom/: As hinted in Bug #518213, revert one change and fix warnings properly.

Original commit message from CVS:
* gst/goom/convolve_fx.c:
* gst/goom/motif_goom1.h:
* gst/goom/motif_goom2.h:
As hinted in Bug #518213, revert one change and fix warnings properly.
This fixes both #518213 and #520073 for me.
This commit is contained in:
Stefan Kost 2008-04-09 13:31:22 +00:00
parent 0db4cb524f
commit debe1baad8
4 changed files with 525 additions and 524 deletions

View file

@ -1,3 +1,11 @@
2008-04-09 Stefan Kost <ensonic@users.sf.net>
* gst/goom/convolve_fx.c:
* gst/goom/motif_goom1.h:
* gst/goom/motif_goom2.h:
As hinted in Bug #518213, revert one change and fix warnings properly.
This fixes both #518213 and #520073 for me.
2008-04-09 Jan Schmidt <Jan.Schmidt@sun.com> 2008-04-09 Jan Schmidt <Jan.Schmidt@sun.com>
* gst/matroska/ebml-read.c: (gst_ebml_read_seek): * gst/matroska/ebml-read.c: (gst_ebml_read_seek):

View file

@ -15,10 +15,8 @@
typedef char Motif[CONV_MOTIF_W][CONV_MOTIF_W]; typedef char Motif[CONV_MOTIF_W][CONV_MOTIF_W];
#if 0
#include "motif_goom1.h" #include "motif_goom1.h"
#include "motif_goom2.h" #include "motif_goom2.h"
#endif
#define NB_THETA 512 #define NB_THETA 512
@ -69,7 +67,6 @@ compute_tables (VisualFX * _this, PluginInfo * info)
} }
} }
#if 0
static void static void
set_motif (ConvData * data, Motif motif) set_motif (ConvData * data, Motif motif)
{ {
@ -80,7 +77,7 @@ set_motif (ConvData * data, Motif motif)
data->conv_motif[i][j] = data->conv_motif[i][j] =
motif[CONV_MOTIF_W - i - 1][CONV_MOTIF_W - j - 1]; motif[CONV_MOTIF_W - i - 1][CONV_MOTIF_W - j - 1];
} }
#endif
static void static void
convolve_init (VisualFX * _this, PluginInfo * info) convolve_init (VisualFX * _this, PluginInfo * info)
{ {
@ -113,9 +110,7 @@ convolve_init (VisualFX * _this, PluginInfo * info)
data->theta = 0; data->theta = 0;
data->ftheta = 0.0; data->ftheta = 0.0;
data->visibility = 1.0; data->visibility = 1.0;
#if 0
set_motif (data, CONV_MOTIF2); set_motif (data, CONV_MOTIF2);
#endif
data->inverse_motif = 0; data->inverse_motif = 0;
_this->params = &data->params; _this->params = &data->params;
@ -214,12 +209,11 @@ create_output_with_brightness (VisualFX * _this, Pixel * src, Pixel * dest,
xtex += c; xtex += c;
ytex -= s; ytex -= s;
iff2 = 0; iff2 =
#if 0 ifftab[(int) data->
ifftab[data->
conv_motif[(ytex >> 16) & CONV_MOTIF_WMASK][(xtex >> 16) & conv_motif[(ytex >> 16) & CONV_MOTIF_WMASK][(xtex >> 16) &
CONV_MOTIF_WMASK]]; CONV_MOTIF_WMASK]];
#endif
#define sat(a) ((a)>0xFF?0xFF:(a)) #define sat(a) ((a)>0xFF?0xFF:(a))
f0 = src[i].val; f0 = src[i].val;
f1 = ((f0 >> R_OFFSET) & 0xFF) * iff2 >> 8; f1 = ((f0 >> R_OFFSET) & 0xFF) * iff2 >> 8;
@ -299,7 +293,6 @@ convolve_apply (VisualFX * _this, Pixel * src, Pixel * dest, PluginInfo * info)
data->factor_p.change_listener (&data->factor_p); data->factor_p.change_listener (&data->factor_p);
} }
#if 0
if (data->visibility < 0.01) { if (data->visibility < 0.01) {
switch (goom_irand (info->gRandom, 300)) { switch (goom_irand (info->gRandom, 300)) {
case 1: case 1:
@ -312,7 +305,7 @@ convolve_apply (VisualFX * _this, Pixel * src, Pixel * dest, PluginInfo * info)
break; break;
} }
} }
#endif
if ((ff > 0.98f) && (ff < 1.02f)) if ((ff > 0.98f) && (ff < 1.02f))
memcpy (dest, src, info->screen.size * sizeof (Pixel)); memcpy (dest, src, info->screen.size * sizeof (Pixel));
else else

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff