L4Re - L4 Runtime Environment
bitmap.h
Go to the documentation of this file.
1 
5 /*
6  * (c) 2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>
7  * economic rights: Technische Universit├Ąt Dresden (Germany)
8  * This file is part of TUD:OS and distributed under the terms of the
9  * GNU Lesser General Public License 2.1.
10  * Please see the COPYING-LGPL-2.1 file for details.
11  */
12 #pragma once
13 
14 #include <l4/sys/types.h>
15 #include <l4/re/c/video/view.h>
16 
38 #define pSLIM_BMAP_START_MSB 0x02
41 #define pSLIM_BMAP_START_LSB 0x01
43 
44 
48 
55 typedef unsigned int gfxbitmap_color_t;
56 
64 typedef unsigned int gfxbitmap_color_pix_t;
65 
67 struct gfxbitmap_offset
68 {
72 };
73 
82 
94 void
96  int x, int y, int w, int h, gfxbitmap_color_pix_t color);
97 
115 void
118  l4_uint32_t h, l4_uint8_t *bmap,
120  struct gfxbitmap_offset *offset, l4_uint8_t mode);
121 
137 void
140  l4_uint32_t h, l4_uint32_t xoffs, l4_uint32_t yoffs,
141  l4_uint8_t *pmap, struct gfxbitmap_offset *offset,
142  l4_uint32_t pwidth);
143 
157 void
159  int x, int y, int w, int h, int dx, int dy);
offsets in pmap[] and bmap[]
Definition: bitmap.h:69
Common L4 ABI Data Types.
void gfxbitmap_fill(l4_uint8_t *vfb, l4re_video_view_info_t *vi, int x, int y, int w, int h, gfxbitmap_color_pix_t color)
Fill a rectangular area with a color.
#define EXTERN_C_END
End section with C types and functions.
Definition: compiler.h:187
View information structure.
Definition: view.h:59
unsigned int gfxbitmap_color_t
Standard color type.
Definition: bitmap.h:57
void gfxbitmap_bmap(l4_uint8_t *vfb, l4re_video_view_info_t *vi, l4_int16_t x, l4_int16_t y, l4_uint32_t w, l4_uint32_t h, l4_uint8_t *bmap, gfxbitmap_color_pix_t fgc, gfxbitmap_color_pix_t bgc, struct gfxbitmap_offset *offset, l4_uint8_t mode)
Fill a rectangular area with a bicolor bitmap pattern.
l4_uint32_t preskip_y
skip lines
Definition: bitmap.h:72
unsigned int gfxbitmap_color_pix_t
Specific color type.
Definition: bitmap.h:66
void gfxbitmap_set(l4_uint8_t *vfb, l4re_video_view_info_t *vi, l4_int16_t x, l4_int16_t y, l4_uint32_t w, l4_uint32_t h, l4_uint32_t xoffs, l4_uint32_t yoffs, l4_uint8_t *pmap, struct gfxbitmap_offset *offset, l4_uint32_t pwidth)
Set area from source area.
signed short int l4_int16_t
Signed 16bit value.
Definition: l4int.h:37
#define EXTERN_C_BEGIN
Start section with C types and functions.
Definition: compiler.h:186
l4_uint32_t endskip_x
skip pixels at end of line
Definition: bitmap.h:73
unsigned char l4_uint8_t
Unsigned 8bit value.
Definition: l4int.h:36
void gfxbitmap_copy(l4_uint8_t *dest, l4_uint8_t *src, l4re_video_view_info_t *vi, int x, int y, int w, int h, int dx, int dy)
Copy a rectangular area.
l4_uint32_t preskip_x
skip pixels at beginning of line
Definition: bitmap.h:71
gfxbitmap_color_pix_t gfxbitmap_convert_color(l4re_video_view_info_t *vi, gfxbitmap_color_t rgb)
Convert a color.
unsigned int l4_uint32_t
Unsigned 32bit value.
Definition: l4int.h:40