GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
zero_cell.c File Reference

Raster Library - Zero cell buffer functions. More...

#include <string.h>
#include <grass/gis.h>
#include <grass/raster.h>
Include dependency graph for zero_cell.c:

Go to the source code of this file.

Functions

void Rast_zero_buf (void *rast, RASTER_MAP_TYPE data_type)
 Zero a raster buffer. More...
 
void Rast_zero_input_buf (void *rast, RASTER_MAP_TYPE data_type)
 
void Rast_zero_output_buf (void *rast, RASTER_MAP_TYPE data_type)
 

Detailed Description

Raster Library - Zero cell buffer functions.

(C) 2001-2009 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
Original author CERL

Definition in file zero_cell.c.

Function Documentation

◆ Rast_zero_buf()

void Rast_zero_buf ( void *  rast,
RASTER_MAP_TYPE  data_type 
)

Zero a raster buffer.

This routines assigns each member of the raster buffer array rast to zero. It assumes that rast has been allocated using Rast_allocate_c_buf().

Parameters
rastdata buffer
data_typeraster type (CELL_TYPE, FCELL_TYPE, DCELL_TYPE)

Definition at line 28 of file zero_cell.c.

References Rast_cell_size(), and Rast_window_cols().

◆ Rast_zero_input_buf()

void Rast_zero_input_buf ( void *  rast,
RASTER_MAP_TYPE  data_type 
)

Definition at line 33 of file zero_cell.c.

References Rast_cell_size(), and Rast_input_window_cols().

◆ Rast_zero_output_buf()

void Rast_zero_output_buf ( void *  rast,
RASTER_MAP_TYPE  data_type 
)

Definition at line 38 of file zero_cell.c.

References Rast_cell_size(), and Rast_output_window_cols().