26 static double dst[2][2];
55 return draw_cell(A_row, array, colors, data_type);
69 return draw_cell(A_row, darray, colors,
DCELL_TYPE);
84 return draw_cell(A_row, farray, colors,
FCELL_TYPE);
107 return draw_cell(A_row, carray, colors,
CELL_TYPE);
110 static int draw_cell(
int A_row,
114 static unsigned char *red, *grn, *blu, *
set;
117 int ncols = src[0][1] - src[0][0];
120 if (nalloc < ncols) {
132 for (i = 0; i < ncols; i++) {
140 return (A_row < src[1][1])
178 const void *r_raster,
const void *g_raster,
179 const void *b_raster,
struct Colors *r_colors,
184 static unsigned char *r_buf, *g_buf, *b_buf, *n_buf;
190 int ncols = src[0][1] - src[0][0];
194 if (nalloc < ncols) {
211 for (i = 0; i < ncols; i++) {
221 A_row =
COM_raster(ncols, A_row, r_buf, g_buf, b_buf,
224 return (A_row < src[1][1])
int D_draw_raster(int A_row, const void *array, struct Colors *colors, RASTER_MAP_TYPE data_type)
Draw raster row.
void D_raster_draw_begin(void)
Prepare for raster graphic.
#define G_incr_void_ptr(ptr, size)
void D_raster_draw_end(void)
Finish raster rendering.
void COM_begin_raster(int, int[2][2], double[2][2])
int D_draw_d_raster(int A_row, const DCELL *darray, struct Colors *colors)
Draw raster row (DCELL)
int D_draw_raster_RGB(int A_row, const void *r_raster, const void *g_raster, const void *b_raster, struct Colors *r_colors, struct Colors *g_colors, struct Colors *b_colors, RASTER_MAP_TYPE r_type, RASTER_MAP_TYPE g_type, RASTER_MAP_TYPE b_type)
Draw raster row in RGB mode.
size_t Rast_cell_size(RASTER_MAP_TYPE)
Returns size of a raster cell in bytes.
void Rast_lookup_colors(const void *, unsigned char *, unsigned char *, unsigned char *, unsigned char *, int, struct Colors *, RASTER_MAP_TYPE)
Lookup an array of colors.
int COM_raster(int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
void D_get_d(double [2][2])
int D_draw_f_raster(int A_row, const FCELL *farray, struct Colors *colors)
Draw raster row (FCELL)
void COM_end_raster(void)
int Rast_is_null_value(const void *, RASTER_MAP_TYPE)
To check if a raster value is set to NULL.
int D_draw_c_raster(int A_row, const CELL *carray, struct Colors *colors)
Draw raster row (CELL)