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
17char * __decodeRLE( const void * rleData, int rleBlocks, int outBytes );
18
19void __drawColorRectangle( unsigned short x, unsigned short y, unsigned short width, unsigned short height, unsigned char colorIndex );
20void __drawDataRectangle( unsigned short x,
21 unsigned short y,
22 unsigned short width,
23 unsigned short height,
24 unsigned char * data );
25int
26__convertImage( unsigned short width,
27 unsigned short height,
28 const unsigned char *imageData,
29 unsigned char **newImageData );
30
31#if UNUSED
32int __setVESAGraphicsMode( unsigned short width, unsigned short height, unsigned char bitsPerPixel, unsigned short refreshRate );
33#else
34int __setVESAGraphicsMode( unsigned short width, unsigned short height, unsigned char bitsPerPixel);
35#endif
36
37int __getNumberArrayFromProperty( const char * propKey,
38 unsigned long numbers[],
39 unsigned long maxArrayCount );
40
41
42unsigned short
43__getVESAModeWithProperties( unsigned short width,
44 unsigned short height,
45 unsigned char bitsPerPixel,
46 unsigned short attributesSet,
47 unsigned short attributesClear,
48 VBEModeInfoBlock * outModeInfo,
49 unsigned short * vesaVersion );
50
51
52#if UNUSED
53void
54__setVideoMode( int mode, int drawgraphics);
55#else
56void
57__setVideoMode( int mode);
58#endif
59
60#endif /* !__BOOT_GRAPHICS_H */
61

Archive Download this file

Revision: 1913