cell_funcs.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /***************************************************************************
  2. *
  3. * MODULE: r.fill.stats
  4. * FILE: cell_funcs.h
  5. * AUTHOR(S): Benjamin Ducke
  6. * PURPOSE: See cell_funcs.c
  7. *
  8. * COPYRIGHT: (C) 2011 by the GRASS Development Team
  9. *
  10. * This program is free software under the GPL (>=v2)
  11. * Read the file COPYING that comes with GRASS for details.
  12. *
  13. ****************************************************************************
  14. */
  15. #ifndef CELL_FUNCS_H
  16. #define CELL_FUNCS_H
  17. #include <grass/raster.h>
  18. void init_cell_funcs();
  19. extern RASTER_MAP_TYPE IN_TYPE; /* stuff for cell input and output data */
  20. extern RASTER_MAP_TYPE OUT_TYPE;
  21. /* below are the sizes (in bytes) for the different GRASS cell types */
  22. extern unsigned char CELL_IN_SIZE;
  23. extern unsigned char CELL_IN_PTR_SIZE;
  24. extern unsigned char CELL_OUT_SIZE;
  25. extern unsigned char CELL_OUT_PTR_SIZE;
  26. extern unsigned char CELL_ERR_SIZE;
  27. extern void (*WRITE_CELL_VAL) (void *, void *); /* write a cell value of any type into an output cell */
  28. extern void (*WRITE_DOUBLE_VAL) (void *, double); /* write a double value into an output cell */
  29. extern int (*IS_NULL) (void *); /* check if a cell is "no data" */
  30. extern void (*SET_NULL) (void *, unsigned long); /* write null value(s) */
  31. #endif /* CELL_FUNCS_H */