My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
color_manager.h
Go to the documentation of this file.
1 /*
2  * OpenVirtualization:
3  * For additional details and support contact developer@sierraware.com.
4  * Additional documentation can be found at www.openvirtualization.org
5  *
6  * Copyright (C) 2010-2014 SierraWare
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21  *
22  */
23 /*
24  * Header for color manager implementation
25  */
26 
27 #ifndef __COLOR_MANAGER_H__
28 #define __COLOR_MANAGER_H__
29 
30 #include <sw_types.h>
31 
32 #define MAX_COLOR_VALUES 8
33 #define BLACK 0
34 #define WHITE 1
35 #define RED 2
36 #define GREEN 3
37 #define BLUE 4
38 #define GRAY 5
39 #define NAVY 6
40 #define DARK_BLUE 7
41 
42 #define BPP_32_VALUE 32
43 #define BPP_24_VALUE 24
44 #define BPP_16_VALUE 16
45 
53 u32 calc_contrast_color (u32 input_color);
54 
62 u32 color(s32int col);
63 
71 u16 bit32_to_bit16(u32 colour);
72 
80 u16 bit24_to_bit16(u32 colour);
81 
82 int sw_abs(int number);
83 
84 #endif
u16 bit32_to_bit16(u32 colour)
Definition: color_manager.c:96
u32 color(s32int col)
Definition: color_manager.c:81
u32 calc_contrast_color(u32 input_color)
Definition: color_manager.c:60
u16 bit24_to_bit16(u32 colour)
Definition: color_manager.c:111
int sw_abs(int number)
This function returns the absolute value of the number.
Definition: color_manager.c:47