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