21 #define F2I(map_type) \ 22 (map_type == CELL_TYPE ? 0 : (map_type == FCELL_TYPE ? 1 : 2)) 24 static const int type_size[3] =
41 return (type_size[
F2I(data_type)]);
138 sizeof(
unsigned char));
151 G_fatal_error(
_(
"Rast__null_bitstream_size: cols (%d) is negative"),
154 return (cols + 7) / 8;
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
int Rast_input_window_cols(void)
Number of columns in active input window.
char * Rast_allocate_null_input_buf(void)
CELL * Rast_allocate_c_buf(void)
Allocate memory for a CELL type raster map.
char * Rast_allocate_null_buf(void)
Allocates memory for a null buffer.
CELL * Rast_allocate_c_output_buf(void)
FCELL * Rast_allocate_f_buf(void)
Allocates memory for a raster map of type FCELL.
char * Rast_allocate_null_output_buf(void)
CELL * Rast_allocate_c_input_buf(void)
DCELL * Rast_allocate_d_output_buf(void)
FCELL * Rast_allocate_f_output_buf(void)
FCELL * Rast_allocate_f_input_buf(void)
size_t Rast_cell_size(RASTER_MAP_TYPE data_type)
Returns size of a raster cell in bytes.
DCELL * Rast_allocate_d_input_buf(void)
DCELL * Rast_allocate_d_buf(void)
Allocates memory for a raster map of type DCELL.
int cols
Number of columns for 2D data.
int Rast_window_cols(void)
Number of columns in active window.
void * Rast_allocate_buf(RASTER_MAP_TYPE data_type)
Allocate memory for a raster map of given type.
unsigned char * Rast__allocate_null_bits(int cols)
Allocates memory for null bits.
int Rast__null_bitstream_size(int cols)
Determines null bitstream size.
void * Rast_allocate_output_buf(RASTER_MAP_TYPE data_type)
void * Rast_allocate_input_buf(RASTER_MAP_TYPE data_type)
int Rast_output_window_cols(void)
Number of columns in active output window.