summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_convert_color.h
blob: c3c07a3ca9cae1e6f0b8473acd2ef52e1bda635f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _EVAS_CONVERT_COLOR_H
#define _EVAS_CONVERT_COLOR_H


EAPI DATA32 evas_common_convert_ag_premul                          (DATA16 *data, unsigned int len);
EAPI DATA32 evas_common_convert_argb_premul                        (DATA32 *src, unsigned int len);
EAPI void evas_common_convert_argb_unpremul                        (DATA32 *src, unsigned int len);
EAPI void evas_common_convert_color_argb_premul                    (int a, int *r, int *g, int *b);
EAPI void evas_common_convert_color_argb_unpremul                  (int a, int *r, int *g, int *b);

EAPI void evas_common_convert_color_hsv_to_rgb                     (float h, float s, float v, int *r, int *g, int *b);
EAPI void evas_common_convert_color_rgb_to_hsv                     (int r, int g, int b, float *h, float *s, float *v);
EAPI void evas_common_convert_color_hsv_to_rgb_int                 (int h, int s, int v, int *r, int *g, int *b);
EAPI void evas_common_convert_color_rgb_to_hsv_int                 (int r, int g, int b, int *h, int *s, int *v);


#endif /* _EVAS_CONVERT_COLOR_H */