diff --git a/gst/goom/filters.c b/gst/goom/filters.c index aa04960c6f..b1584f11ed 100644 --- a/gst/goom/filters.c +++ b/gst/goom/filters.c @@ -73,16 +73,6 @@ setPixelRGB_ (Pixel * buffer, Uint x, Color c) buffer[x].channels.b = c.b; } -static inline void -getPixelRGB (PluginInfo * goomInfo, Pixel * buffer, Uint x, Uint y, Color * c) -{ - Pixel i = *(buffer + (x + y * goomInfo->screen.width)); - - c->b = i.channels.b; - c->v = i.channels.g; - c->r = i.channels.r; -} - static inline void getPixelRGB_ (Pixel * buffer, Uint x, Color * c) { diff --git a/gst/goom2k1/filters.c b/gst/goom2k1/filters.c index 1b1ea13efb..016f25bf86 100644 --- a/gst/goom2k1/filters.c +++ b/gst/goom2k1/filters.c @@ -250,39 +250,6 @@ setPixelRGB_ (Uint * buffer, Uint x, Color c, guint32 resolx, guint32 resoly) #endif } - - -static inline void -getPixelRGB (Uint * buffer, Uint x, Uint y, Color * c, - guint32 resolx, guint32 resoly) -{ - register unsigned char *tmp8; - -#ifdef _DEBUG - if (x + y * resolx >= resolx * resoly) { - printf ("getPixel ERROR : hors du tableau... %i, %i\n", x, y); - exit (1); - } -#endif - -#ifdef __BIG_ENDIAN__ - c->b = *(unsigned char *) (tmp8 = - (unsigned char *) (buffer + (x + y * resolx))); - c->r = *(unsigned char *) (++tmp8); - c->v = *(unsigned char *) (++tmp8); - c->b = *(unsigned char *) (++tmp8); - -#else - /* ATTENTION AU PETIT INDIEN */ - c->b = *(unsigned char *) (tmp8 = - (unsigned char *) (buffer + (x + y * resolx))); - c->v = *(unsigned char *) (++tmp8); - c->r = *(unsigned char *) (++tmp8); -/* *c = (Color) buffer[x+y*WIDTH] ; */ -#endif -} - - static inline void getPixelRGB_ (Uint * buffer, Uint x, Color * c, guint32 resolx, guint32 resoly) {