bitmap.h 561 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef GRASS_BITMAP_H
  2. #define GRASS_BITMAP_H
  3. #define BM_MAGIC 2
  4. #define BM_TEXT "BITMAP"
  5. #define BM_TEXT_LEN 6
  6. #define BM_FLAT 0
  7. #define BM_NOTSPARSE 0
  8. #define BM_SPARSE 1
  9. #ifndef GRASS_LINKM_H
  10. #include <grass/linkm.h>
  11. #endif
  12. struct BM
  13. {
  14. int rows;
  15. int cols;
  16. size_t bytes;
  17. unsigned char *data;
  18. int sparse;
  19. /* char *token; */
  20. struct link_head *token;
  21. };
  22. struct BMlink
  23. {
  24. short count;
  25. char val;
  26. struct BMlink *next;
  27. };
  28. #include <stdio.h>
  29. #include <grass/defs/bitmap.h>
  30. #endif /* GRASS_BITMAP_H */