1 #ifndef GRASS_BITMAPDEFS_H
2 #define GRASS_BITMAPDEFS_H
8 int BM_set(
struct BM *,
int,
int,
int);
int BM_get(struct BM *, int, int)
Gets 'val' from the bitmap.
int BM_file_write(FILE *, struct BM *)
Write bitmap out to file.
int BM_dump_map_row_sparse(struct BM *, int)
Debugging code to dump out structure of links for single row.
struct BM * BM_create_sparse(int, int)
Create a sparse bitmap of dimension 'x'/'y'.
int BM_destroy(struct BM *)
Destroy bitmap and free all associated memory.
size_t BM_get_map_size(struct BM *)
Returns size in bytes that bitmap is taking up.
int BM_set(struct BM *, int, int, int)
Sets bitmap value to 'val' at location 'x' 'y'.
int BM_set_sparse(struct BM *, int, int, int)
Set sparse bitmap value to 'val' at location 'x'/'y'.
size_t BM_get_map_size_sparse(struct BM *)
Returns size of sparse bitmap in bytes.
int BM_file_write_sparse(FILE *, struct BM *)
Write sparse bitmap matrix out to disk file 'fp'. NOTE: 'fp' must already be opened and later closed ...
int BM_dump_map_sparse(struct BM *)
Debugging code to dump out structure of links.
int BM_set_mode(int, int)
Specify the type of data structure to use for bitmap. 'mode' can be either BM_FLAT or BM_SPARSE:
int BM_get_sparse(struct BM *, int, int)
Returns sparse bitmap value at location 'x'/'y'.
int BM_destroy_sparse(struct BM *)
Destroy sparse bitmap and free all associated memory.
struct BM * BM_file_read(FILE *)
Create map structure and load it from file.
struct BM * BM_create(int, int)
Create bitmap of dimension x/y and return structure token.