Wireshark
4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
wsutil
color.h
Go to the documentation of this file.
1
11
#ifndef __COLOR_H__
12
#define __COLOR_H__
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
/* __cplusplus */
17
18
#include <inttypes.h>
19
27
typedef
struct
{
28
uint16_t
red
;
29
uint16_t
green
;
30
uint16_t
blue
;
31
}
color_t
;
32
33
43
inline
static
unsigned
int
44
color_t_to_rgb(
const
color_t
*color) {
45
return
(((color->
red
>> 8) << 16)
46
| ((color->
green
>> 8) << 8)
47
| (color->
blue
>> 8));
48
}
49
50
#ifdef __cplusplus
51
}
52
#endif
/* __cplusplus */
53
54
#endif
55
56
/*
57
* Editor modelines - https://www.wireshark.org/tools/modelines.html
58
*
59
* Local variables:
60
* c-basic-offset: 4
61
* tab-width: 8
62
* indent-tabs-mode: nil
63
* End:
64
*
65
* vi: set shiftwidth=4 tabstop=8 expandtab:
66
* :indentSize=4:tabSize=8:noTabs=true:
67
*/
color_t
RGB color representation with 16-bit precision per channel.
Definition
color.h:27
color_t::red
uint16_t red
Definition
color.h:28
color_t::blue
uint16_t blue
Definition
color.h:30
color_t::green
uint16_t green
Definition
color.h:29
Generated by
1.9.8