Chameleon

Chameleon Svn Source Tree

Root/branches/cparm/i386/boot2/graphics.h

1/*
2 * graphics.h
3 *
4 *
5 * Created by fassl on 22.12.08.
6 * Copyright 2008 __MyCompanyName__. All rights reserved.
7 *
8 */
9
10
11#ifndef __BOOT_GRAPHICS_H
12#define __BOOT_GRAPHICS_H
13
14#include "bootstruct.h"
15#include "vbe.h"
16
17int __getVideoMode(void);
18
19
20char * __decodeRLE( const void * rleData, int rleBlocks, int outBytes );
21
22void __drawColorRectangle( unsigned short x, unsigned short y, unsigned short width, unsigned short height, unsigned char colorIndex );
23void __drawDataRectangle( unsigned short x,
24 unsigned short y,
25 unsigned short width,
26 unsigned short height,
27 unsigned char * data );
28int
29__convertImage( unsigned short width,
30 unsigned short height,
31 const unsigned char *imageData,
32 unsigned char **newImageData );
33
34#if UNUSED
35int __setVESAGraphicsMode( unsigned short width, unsigned short height, unsigned char bitsPerPixel, unsigned short refreshRate );
36#else
37int __setVESAGraphicsMode( unsigned short width, unsigned short height, unsigned char bitsPerPixel);
38#endif
39
40int __getNumberArrayFromProperty( const char * propKey,
41 unsigned long numbers[],
42 unsigned long maxArrayCount );
43
44
45unsigned short
46__getVESAModeWithProperties( unsigned short width,
47 unsigned short height,
48 unsigned char bitsPerPixel,
49 unsigned short attributesSet,
50 unsigned short attributesClear,
51 VBEModeInfoBlock * outModeInfo,
52 unsigned short * vesaVersion );
53
54
55#if UNUSED
56void
57__setVideoMode( int mode, int drawgraphics);
58#else
59void
60__setVideoMode( int mode);
61#endif
62
63#endif /* !__BOOT_GRAPHICS_H */
64

Archive Download this file

Revision: 1899