summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2015-11-10 15:48:09 +0100
committerStefan Schmidt <stefan@osg.samsung.com>2015-11-10 15:48:09 +0100
commit194a4e90a7f2355700ba3f75d05322ecdb85ca65 (patch)
tree8d9412360a10ff44975d2b10c7d41f30a8b26e26
parentab7d7d7da8e18a5de84fd21bd30c001afc5f5765 (diff)
downloadevas_generic_loaders-194a4e90a7f2355700ba3f75d05322ecdb85ca65.tar.gz
xcf: mark functions static if possible
-rw-r--r--src/bin/xcf/main.c2
-rw-r--r--src/bin/xcf/pixelfuncs.c13
2 files changed, 8 insertions, 7 deletions
diff --git a/src/bin/xcf/main.c b/src/bin/xcf/main.c
index 7b798ca..1cef05b 100644
--- a/src/bin/xcf/main.c
+++ b/src/bin/xcf/main.c
@@ -448,7 +448,7 @@ extern void combine_pixels_diss (DATA8* src, int src_w, int src_h, DATA8* dest,
/* ---------------------------------------------------------------------------- globals ------------ */
/* This makes using the Gimp sources easier */
-struct _GimpImage * image = &_image;
+static struct _GimpImage * image = &_image;
/* ------------------------------------------------------------------------------- code ------------ */
diff --git a/src/bin/xcf/pixelfuncs.c b/src/bin/xcf/pixelfuncs.c
index acddad3..67d66d8 100644
--- a/src/bin/xcf/pixelfuncs.c
+++ b/src/bin/xcf/pixelfuncs.c
@@ -36,7 +36,7 @@
#define INT_MULT(a,b,t) ((t) = (a) * (b) + 0x80, ((((t) >> 8) + (t)) >> 8))
#define LINEAR(x,y,w) ((w*y + x)*4)
-void
+static void
rgb_to_hls (DATA8 *red, DATA8 *green, DATA8 *blue)
{
int r, g, b;
@@ -96,7 +96,7 @@ rgb_to_hls (DATA8 *red, DATA8 *green, DATA8 *blue)
}
-DATA8
+static DATA8
gimp_hls_value (double n1, double n2, double hue)
{
double value;
@@ -118,7 +118,7 @@ gimp_hls_value (double n1, double n2, double hue)
}
-void
+static void
hls_to_rgb (DATA8 *hue, DATA8 *lightness, DATA8 *saturation)
{
double h, l, s;
@@ -152,7 +152,7 @@ hls_to_rgb (DATA8 *hue, DATA8 *lightness, DATA8 *saturation)
}
-void
+static void
rgb_to_hsv (DATA8 *red, DATA8 *green, DATA8 *blue)
{
int r, g, b;
@@ -208,7 +208,7 @@ rgb_to_hsv (DATA8 *red, DATA8 *green, DATA8 *blue)
*blue = v;
}
-void
+static void
hsv_to_rgb (DATA8 *hue, DATA8 *saturation, DATA8 *value)
{
double h, s, v;
@@ -273,6 +273,7 @@ hsv_to_rgb (DATA8 *hue, DATA8 *saturation, DATA8 *value)
}
/* translate negative destinations */
+static
void _clip(int * src_tl_x, int * src_tl_y,
int * src_br_x, int * src_br_y,
int * dest_x, int * dest_y,
@@ -616,7 +617,7 @@ combine_pixels_overlay (DATA8* src, int src_w, int src_h, DATA8* dest, int dest_
}
-void
+static void
combine_pixels_hsv (DATA8* src, int src_w, int src_h, DATA8* dest, int dest_w, int dest_h, int dest_x, int dest_y, int mode)
{
int x, y, s_idx, d_idx;