Chameleon

Chameleon Svn Source Tree

Root/branches/azimutz/Chazi/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#ifndef __BOOT_GRAPHICS_H
11#define __BOOT_GRAPHICS_H
12
13//#include "libsaio.h"
14//#include "bootstruct.h"
15//#include "boot.h"
16#include "saio_types.h"
17#include "graphic_utils.h"
18#include "vbe.h"
19
20#define DEFAULT_SCREEN_WIDTH 1024
21#define DEFAULT_SCREEN_HEIGHT 768
22
23int loadPngImage(const char *filename, uint16_t *width, uint16_t *height, uint8_t **imageData);
24
25unsigned long lookUpCLUTIndex( unsigned char index, unsigned char depth );
26
27void drawColorRectangle( unsigned short x, unsigned short y, unsigned short width, unsigned short height, unsigned char colorIndex );
28void drawDataRectangle( unsigned short x, unsigned short y, unsigned short width, unsigned short height, unsigned char * data );
29int convertImage( unsigned short width, unsigned short height, const unsigned char *imageData, unsigned char **newImageData );
30
31int initGraphicsMode ();
32
33void drawCheckerBoard();
34
35void blendImage(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t *data);
36
37void drawCheckerBoard();
38void blendImage(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t *data);
39
40int loadEmbeddedPngImage(uint8_t *pngData, int pngSize, uint16_t *width, uint16_t *height, uint8_t **imageData);
41
42//Azi:autoresolution ??
43int getNumberArrayFromProperty( const char * propKey,
44unsigned long numbers[],
45unsigned long maxArrayCount );
46
47char *getVBEInfoString();
48char *getVBEModeInfoString();
49
50//Azi:autoresolution ??
51unsigned short getVESAModeWithProperties( unsigned short width,
52 unsigned short height,
53 unsigned char bitsPerPixel,
54 unsigned short attributesSet,
55 unsigned short attributesClear,
56 VBEModeInfoBlock * outModeInfo,
57 unsigned short * vesaVersion );
58
59void getGraphicModeParams(unsigned long params[]);
60
61#endif /* !__BOOT_GRAPHICS_H */
62

Archive Download this file

Revision: 847