26 static double dst[2][2];
54 return draw_cell(A_row, array, colors, data_type);
68 return draw_cell(A_row, darray, colors,
DCELL_TYPE);
83 return draw_cell(A_row, farray, colors,
FCELL_TYPE);
106 return draw_cell(A_row, carray, colors,
CELL_TYPE);
109 static int draw_cell(
int A_row,
const void *array,
struct Colors *colors,
112 static unsigned char *red, *grn, *blu, *set;
115 int ncols =
src[0][1] -
src[0][0];
118 if (nalloc < ncols) {
129 for (i = 0; i < ncols; i++) {
137 return (A_row <
src[1][1]) ? A_row : -1;
174 const void *b_raster,
struct Colors *r_colors,
179 static unsigned char *r_buf, *g_buf, *b_buf, *n_buf;
185 int ncols =
src[0][1] -
src[0][0];
189 if (nalloc < ncols) {
206 for (i = 0; i < ncols; i++) {
216 A_row =
COM_raster(ncols, A_row, r_buf, g_buf, b_buf,
219 return (A_row <
src[1][1]) ? A_row : -1;
void D_get_d(double[2][2])
#define G_incr_void_ptr(ptr, size)
int Rast_is_null_value(const void *, RASTER_MAP_TYPE)
To check if a raster value is set to NULL.
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.
size_t Rast_cell_size(RASTER_MAP_TYPE)
Returns size of a raster cell in bytes.
void D_raster_draw_end(void)
Finish raster rendering.
void D_raster_draw_begin(void)
Prepare for raster graphic.
int D_draw_f_raster(int A_row, const FCELL *farray, struct Colors *colors)
Draw raster row (FCELL)
int D_draw_raster(int A_row, const void *array, struct Colors *colors, RASTER_MAP_TYPE data_type)
Draw raster row.
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.
int D_draw_d_raster(int A_row, const DCELL *darray, struct Colors *colors)
Draw raster row (DCELL)
int D_draw_c_raster(int A_row, const CELL *carray, struct Colors *colors)
Draw raster row (CELL)
int COM_raster(int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
void COM_end_raster(void)
void COM_begin_raster(int, int[2][2], double[2][2])