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
32int __setVESAGraphicsMode( unsigned short width, unsigned short height, unsigned char bitsPerPixel);
33
34int __getNumberArrayFromProperty( const char * propKey,
35 unsigned long numbers[],
36 unsigned long maxArrayCount );
37
38
39unsigned short
40__getVESAModeWithProperties( unsigned short width,
41 unsigned short height,
42 unsigned char bitsPerPixel,
43 unsigned short attributesSet,
44 unsigned short attributesClear,
45 VBEModeInfoBlock * outModeInfo,
46 unsigned short * vesaVersion );
47
48void
49__setVideoMode( int mode);
50
51#endif /* !__BOOT_GRAPHICS_H */
52

Archive Download this file

Revision: 2006