diff options
Diffstat (limited to 'apps/plugins/lib/rgb_hsv.h')
-rw-r--r-- | apps/plugins/lib/rgb_hsv.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/apps/plugins/lib/rgb_hsv.h b/apps/plugins/lib/rgb_hsv.h new file mode 100644 index 0000000000..30bb206df1 --- /dev/null +++ b/apps/plugins/lib/rgb_hsv.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2006 Antoine Cellerier <dionoea -at- videolan -dot- org> | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | #ifndef LIB_HSV_RGB_H | ||
21 | #define LIB_HSV_RGB_H | ||
22 | |||
23 | /*********************************************************************** | ||
24 | * Colorspace transformations | ||
25 | *********************************************************************** | ||
26 | * r, g and b range from 0 to 255 | ||
27 | * h ranges from 0 to 3599 (which in fact means 0.0 to 359.9). | ||
28 | * 360 is the same as 0 (it loops) | ||
29 | * s and v range from 0 to 255 (which in fact means 0.00 to 1.00) | ||
30 | ***********************************************************************/ | ||
31 | |||
32 | void rgb2hsv( int r, int g, int b, int *h, int *s, int *v ); | ||
33 | void hsv2rgb( int h, int s, int v, int *r, int *g, int *b ); | ||
34 | |||
35 | #endif | ||