GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
bitmap.h
Go to the documentation of this file.
1
#ifndef GRASS_BITMAP_H
2
#define GRASS_BITMAP_H
3
4
#define BM_MAGIC 2
5
6
#define BM_TEXT "BITMAP"
7
#define BM_TEXT_LEN 6
8
9
#define BM_FLAT 0
10
#define BM_NOTSPARSE 0
11
#define BM_SPARSE 1
12
13
#ifndef GRASS_LINKM_H
14
#include <
grass/linkm.h
>
15
#endif
16
17
struct
BM
{
18
int
rows
;
19
int
cols
;
20
size_t
bytes
;
21
unsigned
char
*
data
;
22
int
sparse
;
23
/* char *token; */
24
struct
link_head
*
token
;
25
};
26
27
struct
BMlink
{
28
short
count
;
29
char
val
;
30
struct
BMlink
*
next
;
31
};
32
33
#include <stdio.h>
34
35
#include <
grass/defs/bitmap.h
>
36
37
#endif
/* GRASS_BITMAP_H */
bitmap.h
linkm.h
BM
Definition:
bitmap.h:17
BM::rows
int rows
Definition:
bitmap.h:18
BM::token
struct link_head * token
Definition:
bitmap.h:24
BM::cols
int cols
Definition:
bitmap.h:19
BM::data
unsigned char * data
Definition:
bitmap.h:21
BM::bytes
size_t bytes
Definition:
bitmap.h:20
BM::sparse
int sparse
Definition:
bitmap.h:22
BMlink
Definition:
bitmap.h:27
BMlink::count
short count
Definition:
bitmap.h:28
BMlink::val
char val
Definition:
bitmap.h:29
BMlink::next
struct BMlink * next
Definition:
bitmap.h:30
link_head
Definition:
linkm.h:12
include
grass
bitmap.h
Generated on Thu Nov 21 2024 07:03:25 for GRASS GIS 8 Programmer's Manual by
1.9.1