mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
goom: Remove unused functions
This commit is contained in:
parent
aafcbbb2fe
commit
4ecccb6ff6
2 changed files with 0 additions and 43 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue