30#include "iclass_local_proto.h"
45 G_debug(3,
"open_band_files()");
48 nbands =
refer->nfiles;
52 for (n = 0; n < nbands; n++) {
55 mapset =
refer->file[n].mapset;
71 G_debug(3,
"close_band_files()");
73 nbands =
refer->nfiles;
74 for (n = 0; n < nbands; n++) {
95 G_debug(5,
"read_band_row(): row = %d", row);
97 for (i = 0; i < nbands; i++)
AMI_err name(char **stream_name)
void G_free(void *)
Free allocated memory.
int G_debug(int, const char *,...) __attribute__((format(printf
CELL * Rast_allocate_c_buf(void)
Allocate memory for a CELL type raster map.
void Rast_get_c_row_nomask(int, CELL *, int)
Read raster row without masking (CELL type)
void Rast_close(int)
Close a raster map.
int Rast_open_old(const char *, const char *)
Open an existing integer raster map (cell)
void read_band_row(CELL **band_buffer, int *band_fd, int nbands, int row)
Read one row of each band.
void close_band_files(struct Ref *refer, CELL **band_buffer, int *band_fd)
Close and free space for the group band files.
void open_band_files(struct Ref *refer, CELL ***band_buffer, int **band_fd)
Open and allocate space for the group band files.