mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
gaudieffects: Mark inline functions as static inline
Otherwise it fails to correctly link them in some cases. https://bugzilla.gnome.org/show_bug.cgi?id=626670
This commit is contained in:
parent
8486430ee5
commit
db44c62acb
2 changed files with 4 additions and 4 deletions
|
@ -105,7 +105,7 @@ gint cosTable[2 * 512];
|
|||
static gint gate_int (gint value, gint min, gint max);
|
||||
void setup_cos_table (void);
|
||||
static gint cos_from_table (int angle);
|
||||
inline int abs_int (int val);
|
||||
static inline int abs_int (int val);
|
||||
static void transform (guint32 * src, guint32 * dest, gint video_area);
|
||||
|
||||
/* The capabilities of the inputs and outputs. */
|
||||
|
@ -280,7 +280,7 @@ setup_cos_table (void)
|
|||
}
|
||||
|
||||
/* Keep the values absolute. */
|
||||
inline int
|
||||
static inline int
|
||||
abs_int (int val)
|
||||
{
|
||||
if (val > 0) {
|
||||
|
|
|
@ -95,7 +95,7 @@ enum
|
|||
|
||||
static void transform (guint32 * src, guint32 * dest, gint video_area,
|
||||
gint width, gint height);
|
||||
inline guint32 get_luminance (guint32 in);
|
||||
static inline guint32 get_luminance (guint32 in);
|
||||
|
||||
/* The capabilities of the inputs and outputs. */
|
||||
|
||||
|
@ -254,7 +254,7 @@ gst_dilate_plugin_init (GstPlugin * dilate)
|
|||
/*** Now the image processing work.... ***/
|
||||
|
||||
/* Return luminance of the color */
|
||||
inline guint32
|
||||
static inline guint32
|
||||
get_luminance (guint32 in)
|
||||
{
|
||||
guint32 red, green, blue, luminance;
|
||||
|
|
Loading…
Reference in a new issue