L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
Functions for rendering bitmap data in frame buffers
Collaboration diagram for Functions for rendering bitmap data in frame buffers:

Data Structures

struct  gfxbitmap_offset
 offsets in pmap[] and bmap[] More...

Typedefs

typedef unsigned int gfxbitmap_color_t
 Standard color type.
typedef unsigned int gfxbitmap_color_pix_t
 Specific color type.

Functions

gfxbitmap_color_pix_t gfxbitmap_convert_color (l4re_video_view_info_t *vi, gfxbitmap_color_t rgb)
 Convert a color.
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.
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_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.
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.

Detailed Description

Typedef Documentation

◆ gfxbitmap_color_pix_t

typedef unsigned int gfxbitmap_color_pix_t

Specific color type.

This color type is specific for a particular framebuffer, it can be use to write pixel on a framebuffer. Use gfxbitmap_convert_color to convert from gfxbitmap_color_t to gfxbitmap_color_pix_t.

Definition at line 67 of file bitmap.h.

◆ gfxbitmap_color_t

typedef unsigned int gfxbitmap_color_t

Standard color type.

It's a RGB type with 8bits for each channel, regardless of the framebuffer used.

Definition at line 58 of file bitmap.h.

Function Documentation

◆ gfxbitmap_bmap()

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.

Parameters
vfbFrame buffer.
viFrame buffer information structure.
xX position of area.
yY position of area.
wWidth of area.
hHeight of area.
bmapBitmap pattern.
fgcForeground color.
bgcBackground color.
offsetOffsets.
modeMode
See also
pSLIM_BMAP_START_MSB and pSLIM_BMAP_START_LSB.

◆ gfxbitmap_convert_color()

gfxbitmap_color_pix_t gfxbitmap_convert_color ( l4re_video_view_info_t * vi,
gfxbitmap_color_t rgb )

Convert a color.

Converts a given color in standard format to the format used in the framebuffer.

◆ gfxbitmap_copy()

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.

Parameters
destDestination frame buffer.
srcSource frame buffer.
viFrame buffer information structure.
xSource X position of area.
ySource Y position of area.
wWidth of area.
hHeight of area.
dxSource X position of area.
dySource Y position of area.

References L4_END_DECLS.

◆ gfxbitmap_fill()

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.

Parameters
vfbFrame buffer.
viFrame buffer information structure.
xX position of area.
yY position of area.
wWidth of area.
hHeight of area.
colorColor of area.

◆ gfxbitmap_set()

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.

Parameters
vfbFrame buffer.
viFrame buffer information structure.
xX position of area.
yY position of area.
wWidth of area.
hHeight of area.
pmapSource.
xoffsX offset.
yoffsY offset.
offsetOffsets.
pwidthWidth of source in bytes.