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/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
48
55typedef unsigned int gfxbitmap_color_t;
56
64typedef unsigned int gfxbitmap_color_pix_t;
65
73
82
94void
96 int x, int y, int w, int h, gfxbitmap_color_pix_t color);
97
115void
118 l4_uint32_t h, l4_uint8_t *bmap,
120 struct gfxbitmap_offset *offset, l4_uint8_t mode);
121
137void
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
157void
159 int x, int y, int w, int h, int dx, int dy);
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:55
unsigned int gfxbitmap_color_pix_t
Specific color type.
Definition bitmap.h:64
signed short int l4_int16_t
Signed 16bit value.
Definition l4int.h:37
unsigned char l4_uint8_t
Unsigned 8bit value.
Definition l4int.h:36
unsigned int l4_uint32_t
Unsigned 32bit value.
Definition l4int.h:40
#define EXTERN_C_BEGIN
Start section with C types and functions.
Definition compiler.h:192
#define EXTERN_C_END
End section with C types and functions.
Definition compiler.h:193
Common L4 ABI Data Types.
offsets in pmap[] and bmap[]
Definition bitmap.h:68
l4_uint32_t preskip_x
skip pixels at beginning of line
Definition bitmap.h:69
l4_uint32_t endskip_x
skip pixels at end of line
Definition bitmap.h:71
l4_uint32_t preskip_y
skip lines
Definition bitmap.h:70
View information structure.
Definition view.h:60