GRASS GIS 8 Programmer's Manual
8.5.0dev(2025)-565e82de51
Main Page
Related Pages
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
x
y
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
r
s
t
u
v
w
y
Enumerations
a
c
d
e
h
i
j
l
m
n
o
p
r
s
t
v
y
Enumerator
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
rgbpack.h
Go to the documentation of this file.
1
#ifndef _RGBPACK_H
2
#define _RGBPACK_H
3
4
#define RED_MASK 0x000000FF
5
#define GRN_MASK 0x0000FF00
6
#define BLU_MASK 0x00FF0000
7
8
#define INT_TO_RED(i, r) (r = (i & RED_MASK))
9
#define INT_TO_GRN(i, g) (g = (i & GRN_MASK) >> 8)
10
#define INT_TO_BLU(i, b) (b = (i & BLU_MASK) >> 16)
11
12
#define RGB_TO_INT(r, g, b, i) \
13
(i = (((r) & RED_MASK) + ((int)((g) << 8) & GRN_MASK) + \
14
((int)((b) << 16) & BLU_MASK)))
15
16
#define CONST_COLS 45
17
#define COLUMNS 9
18
19
#endif
/* _RGBPACK_H */
lib
ogsf
rgbpack.h
Generated on Thu Mar 20 2025 07:33:29 for GRASS GIS 8 Programmer's Manual by
1.9.1