pike.git/
src/
modules/
Image/
layers.c
Branch:
Tag:
Non-build tags
All tags
No tags
2016-01-12
2016-01-12 18:09:27 by Per Hedbor <ph@opera.com>
01b9216dc7703fe549b03c4a7fa322d3f6af6371 (
27
lines) (+
14
/-
13
)
[
Show
|
Annotate
]
Branch:
8.1
inline is part of c99
We do have.. excessive amounts of inline, incidentally. :)
458:
} while (0)
-
static
INLINE
void smear_color(rgb_group *d,rgb_group s,int len)
+
static
inline
void smear_color(rgb_group *d,rgb_group s,int len)
{ while (len--) *(d++)=s;
468:
#define MIN3(X,Y,Z) MINIMUM(MINIMUM(X,Y),Z) /* Pike_sp was renamed to not_sp by hubbe */
-
static
INLINE
void rgb_to_hsv(rgb_group color,
+
static
inline
void rgb_to_hsv(rgb_group color,
double *hp, double *not_sp, double *vp)
501:
else /*if(b==max)*/ *hp = 4+(r-g)/delta; }
-
static
INLINE
void hsv_to_rgb(double h,double s,double v,rgb_group *colorp)
+
static
inline
void hsv_to_rgb(double h,double s,double v,rgb_group *colorp)
{ if (s==0.0) {
535:
#undef t }
-
static
INLINE
int hls_value(double n1, double n2, double hue)
+
static
inline
int hls_value(double n1, double n2, double hue)
{ double value;
556:
}
-
static
INLINE
void hls_to_rgb(double h,double l,double s,rgb_group *rgb)
+
static
inline
void hls_to_rgb(double h,double l,double s,rgb_group *rgb)
{ double m1, m2;
583:
} }
-
static
INLINE
void rgb_to_hls(rgb_group color,
+
static
inline
void rgb_to_hls(rgb_group color,
double *hue, double *lightness, double *saturation)
1305:
**! */
-
static
INLINE
void try_parameter(char *a,void (*f)(INT32))
+
static
inline
void try_parameter(char *a,void (*f)(INT32))
{ stack_dup(); push_text(a);
1316:
pop_stack(); }
-
static
INLINE
void try_parameter_pair(char *a,char *b,void (*f)(INT32))
+
static
inline
void try_parameter_pair(char *a,char *b,void (*f)(INT32))
{ stack_dup(); /* map map */ stack_dup(); /* map map map */
2465:
/*** the add-layer function ***************************/
-
static
INLINE
void img_lay_first_line(struct layer *l,
+
static
inline
void img_lay_first_line(struct layer *l,
int xoffs,int xsize, int y, /* in _this_ layer */ rgb_group *d,rgb_group *da)
2563:
} }
-
static
INLINE
void img_lay_stroke(struct layer *ly,
+
static
inline
void img_lay_stroke(struct layer *ly,
rgb_group *l, rgb_group *la, rgb_group *s,
2631:
} }
-
static
INLINE
void img_lay_line(struct layer *ly,
+
static
inline
void img_lay_line(struct layer *ly,
rgb_group *s,rgb_group *sa, int xoffs,int xsize, int y, /* y in ly layer */
3003:
/** image-object operations *************************/
-
static
INLINE
struct layer *push_new_layer(void)
+
static
inline
struct layer *push_new_layer(void)
{ push_object(clone_object(image_layer_program,0)); return get_storage(Pike_sp[-1].u.object,image_layer_program); }
-
static
INLINE
struct layer *clone_this_layer(void)
+
static
inline
struct layer *clone_this_layer(void)
{ struct layer *l; l=push_new_layer();