GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73679
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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,
20  const unsigned char *red, const unsigned char *grn,
21  const unsigned char *blu, 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 }
char * dst
Definition: lz4.h:599
void(* End_raster)(void)
Definition: driver.h:39
void COM_begin_raster(int, int[2][2], double[2][2])
Definition: driver/raster.c:13
void(* Begin_raster)(int, int[2][2], double[2][2])
Definition: driver.h:33
int COM_raster(int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
Definition: driver/raster.c:19
int(* Raster)(int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
Definition: driver.h:34
Definition: driver.h:22
void COM_end_raster(void)
Definition: driver/raster.c:29