28#include "iclass_local_proto.h"
43 G_debug(3,
"open_band_files()");
46 nbands =
refer->nfiles;
50 for (n = 0; n < nbands; n++) {
53 mapset =
refer->file[n].mapset;
69 G_debug(3,
"close_band_files()");
71 nbands =
refer->nfiles;
72 for (n = 0; n < nbands; n++) {
93 G_debug(5,
"read_band_row(): row = %d", row);
95 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.