mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
gst/goom/: Make inline functions either 'static inline' or 'extern inline', otherwise the Forte compiler apparently w...
Original commit message from CVS: * gst/goom/filters.c: * gst/goom/graphic.h: * gst/goom/lines.c: Make inline functions either 'static inline' or 'extern inline', otherwise the Forte compiler apparently won't inline them (#317300).
This commit is contained in:
parent
6142c0c147
commit
97f39d4647
4 changed files with 18 additions and 8 deletions
|
@ -1,3 +1,11 @@
|
|||
2005-10-19 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/goom/filters.c:
|
||||
* gst/goom/graphic.h:
|
||||
* gst/goom/lines.c:
|
||||
Make inline functions either 'static inline' or 'extern inline',
|
||||
otherwise the Forte compiler apparently won't inline them (#317300).
|
||||
|
||||
2005-10-19 Julien MOUTTE <julien@moutte.net>
|
||||
|
||||
* ext/libpng/gstpngdec.c: (gst_pngdec_class_init),
|
||||
|
|
|
@ -75,7 +75,7 @@ static int *firedec = 0;
|
|||
|
||||
|
||||
/* retourne x>>s , en testant le signe de x */
|
||||
inline int
|
||||
static inline int
|
||||
ShiftRight (int x, const unsigned char s)
|
||||
{
|
||||
if (x < 0)
|
||||
|
@ -182,7 +182,7 @@ calculatePXandPY (int x, int y, int *px, int *py)
|
|||
|
||||
/*#define _DEBUG */
|
||||
|
||||
inline void
|
||||
extern inline void
|
||||
setPixelRGB (Uint * buffer, Uint x, Uint y, Color c)
|
||||
{
|
||||
/* buffer[ y*WIDTH + x ] = (c.r<<16)|(c.v<<8)|c.b */
|
||||
|
@ -201,7 +201,7 @@ setPixelRGB (Uint * buffer, Uint x, Uint y, Color c)
|
|||
}
|
||||
|
||||
|
||||
inline void
|
||||
static inline void
|
||||
setPixelRGB_ (Uint * buffer, Uint x, Color c)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
|
@ -220,7 +220,7 @@ setPixelRGB_ (Uint * buffer, Uint x, Color c)
|
|||
|
||||
|
||||
|
||||
inline void
|
||||
extern inline void
|
||||
getPixelRGB (Uint * buffer, Uint x, Uint y, Color * c)
|
||||
{
|
||||
register unsigned char *tmp8;
|
||||
|
@ -250,7 +250,7 @@ getPixelRGB (Uint * buffer, Uint x, Uint y, Color * c)
|
|||
}
|
||||
|
||||
|
||||
inline void
|
||||
static inline void
|
||||
getPixelRGB_ (Uint * buffer, Uint x, Color * c)
|
||||
{
|
||||
register unsigned char *tmp8;
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef GRAPHIC_H
|
||||
#define GRAPHIC_H
|
||||
|
||||
#include <glib.h> /* defines inline for better portability */
|
||||
|
||||
typedef unsigned int Uint;
|
||||
|
||||
typedef struct
|
||||
|
@ -18,7 +20,7 @@ extern const Color YELLOW;
|
|||
extern const Color ORANGE;
|
||||
extern const Color VIOLET;
|
||||
|
||||
inline void setPixelRGB (Uint *buffer, Uint x, Uint y, Color c) ;
|
||||
inline void getPixelRGB (Uint *buffer, Uint x, Uint y, Color *c) ;
|
||||
extern inline void setPixelRGB (Uint *buffer, Uint x, Uint y, Color c) ;
|
||||
extern inline void getPixelRGB (Uint *buffer, Uint x, Uint y, Color *c) ;
|
||||
|
||||
#endif /*GRAPHIC_H*/
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
extern unsigned int resolx, resoly;
|
||||
|
||||
inline unsigned char
|
||||
static inline unsigned char
|
||||
lighten (unsigned char value, unsigned char power)
|
||||
{
|
||||
unsigned char i;
|
||||
|
|
Loading…
Reference in a new issue