L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
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/compiler.h>
15#include <l4/sys/types.h>
16#include <l4/re/c/video/view.h>
17
27
32
39#define pSLIM_BMAP_START_MSB 0x02
42#define pSLIM_BMAP_START_LSB 0x01
44
49
56typedef unsigned int gfxbitmap_color_t;
57
65typedef unsigned int gfxbitmap_color_pix_t;
66
74
83
95void
97 int x, int y, int w, int h, gfxbitmap_color_pix_t color);
98
116void
119 l4_uint32_t h, l4_uint8_t *bmap,
121 struct gfxbitmap_offset *offset, l4_uint8_t mode);
122
138void
141 l4_uint32_t h, l4_uint32_t xoffs, l4_uint32_t yoffs,
142 l4_uint8_t *pmap, struct gfxbitmap_offset *offset,
143 l4_uint32_t pwidth);
144
158void
160 int x, int y, int w, int h, int dx, int dy);
162
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.
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.
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.
gfxbitmap_color_pix_t gfxbitmap_convert_color(l4re_video_view_info_t *vi, gfxbitmap_color_t rgb)
Convert a color.
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.
unsigned int gfxbitmap_color_t
Standard color type.
Definition bitmap.h:56
unsigned int gfxbitmap_color_pix_t
Specific color type.
Definition bitmap.h:65
L4 compiler related defines.
signed short int l4_int16_t
Signed 16bit value.
Definition l4int.h:26
unsigned char l4_uint8_t
Unsigned 8bit value.
Definition l4int.h:25
unsigned int l4_uint32_t
Unsigned 32bit value.
Definition l4int.h:29
#define L4_BEGIN_DECLS
Start section with C types and functions.
Definition compiler.h:165
#define L4_END_DECLS
End section with C types and functions.
Definition compiler.h:166
Common L4 ABI Data Types.
offsets in pmap[] and bmap[]
Definition bitmap.h:69
l4_uint32_t preskip_x
skip pixels at beginning of line
Definition bitmap.h:70
l4_uint32_t endskip_x
skip pixels at end of line
Definition bitmap.h:72
l4_uint32_t preskip_y
skip lines
Definition bitmap.h:71
View information structure.
Definition view.h:50