Chameleon

Chameleon Svn Source Tree

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

Archive Download this file

Revision: 946