GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
driver/raster.c
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <grass/gis.h>
4 #include "driver.h"
5 #include "driverlib.h"
6 
7 /******************************************************************************
8  * These routines support the drawing of multi-band images on the graphics
9  * device.
10  ******************************************************************************
11  */
12 
13 void COM_begin_raster(int mask, int src[2][2], double dst[2][2])
14 {
15  if (driver->Begin_raster)
16  (*driver->Begin_raster)(mask, src, dst);
17 }
18 
19 int COM_raster(int n, int row, const unsigned char *red,
20  const unsigned char *grn, const unsigned char *blu,
21  const unsigned char *nul)
22 {
23  if (driver->Raster)
24  return (*driver->Raster)(n, row, red, grn, blu, nul);
25 
26  return -1;
27 }
28 
29 void COM_end_raster(void)
30 {
31  if (driver->End_raster)
32  (*driver->End_raster)();
33 }
int COM_raster(int n, int row, const unsigned char *red, const unsigned char *grn, const unsigned char *blu, const unsigned char *nul)
Definition: driver/raster.c:19
void COM_begin_raster(int mask, int src[2][2], double dst[2][2])
Definition: driver/raster.c:13
void COM_end_raster(void)
Definition: driver/raster.c:29
char * dst
Definition: lz4.h:981
const char * src
Definition: lz4.h:989
Definition: driver.h:21
int(* Raster)(int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
Definition: driver.h:32
void(* End_raster)(void)
Definition: driver.h:34
void(* Begin_raster)(int, int[2][2], double[2][2])
Definition: driver.h:31