Add "elfzip" target to make which creates a zip of all elf files, as mapzip does...
[maemo-rb.git] / apps / plugins / lib / rgb_hsv.h
blob9e9e2285add4f96c274d7bc358513934842cd7e1
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006 Antoine Cellerier <dionoea -at- videolan -dot- org>
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef LIB_HSV_RGB_H
23 #define LIB_HSV_RGB_H
25 /***********************************************************************
26 * Colorspace transformations
27 ***********************************************************************
28 * r, g and b range from 0 to 255
29 * h ranges from 0 to 3599 (which in fact means 0.0 to 359.9).
30 * 360 is the same as 0 (it loops)
31 * s and v range from 0 to 255 (which in fact means 0.00 to 1.00)
32 ***********************************************************************/
34 void rgb2hsv( int r, int g, int b, int *h, int *s, int *v );
35 void hsv2rgb( int h, int s, int v, int *r, int *g, int *b );
37 #endif