Classes | Typedefs | Variables
image.cpp File Reference
#include "image.h"
#include <qfile.h>
#include <math.h>
#include "lodepng.h"
#include "config.h"

Go to the source code of this file.

Classes

struct  Color
 

Typedefs

typedef unsigned char Byte
 

Variables

const int charSetWidth =80
 
const int charHeight =12
 
const int numChars =96
 
unsigned short charPos [numChars]
 
unsigned char charWidth [numChars]
 
unsigned char fontRaw [charSetWidth *charHeight]
 
static Color palette []
 
static Color palette2 []
 
static Color palette3 []
 

Typedef Documentation

typedef unsigned char Byte

Definition at line 25 of file image.cpp.

Variable Documentation

const int charHeight =12

Definition at line 37 of file image.cpp.

unsigned short charPos[numChars]
Initial value:
=
{
0, 5, 8, 13, 20, 27, 38, 47,
50, 54, 58, 65, 72, 76, 83, 87,
91, 98,105,112,119,126,133,140,
147,154,161,164,167,174,181,188,
195,207,216,224,233,242,250,258,
267,276,279,286,294,301,312,321,
331,339,349,357,365,372,380,389,
400,409,418,427,430,434,437,443,
450,453,460,467,474,481,488,492,
499,506,509,512,518,521,530,537,
544,551,557,562,568,571,578,585,
594,600,607,613,617,620,624,631
}

Definition at line 40 of file image.cpp.

const int charSetWidth =80

Definition at line 36 of file image.cpp.

unsigned char charWidth[numChars]
Initial value:
=
{
5, 3, 5, 7, 7,11, 9, 3,
4, 4, 7, 7, 4, 7, 4, 4,
7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 3, 3, 7, 7, 7, 7,
12, 9, 8, 9, 9, 8, 8, 9,
9, 3, 7, 8, 7,11, 9,10,
8,10, 8, 8, 7, 8, 9,11,
9, 9, 9, 3, 4, 3, 6, 7,
3, 7, 7, 7, 7, 7, 4, 7,
7, 3, 3, 6, 3, 9, 7, 7,
7, 6, 5, 6, 3, 7, 7, 9,
6, 7, 6, 4, 3, 4, 7, 5
}

Definition at line 56 of file image.cpp.

unsigned char fontRaw[charSetWidth *charHeight]

Definition at line 73 of file image.cpp.

const int numChars =96

Definition at line 38 of file image.cpp.

Color palette[]
static
Initial value:
=
{
{ 0xff, 0xff, 0xff, 0x00 },
{ 0x00, 0x00, 0x00, 0xff },
{ 0xff, 0xff, 0xc0, 0xff },
{ 0x9f, 0x9f, 0x60, 0xff },
{ 0x90, 0x00, 0x00, 0xff },
{ 0x00, 0x90, 0x00, 0xff },
{ 0x00, 0x00, 0x90, 0xff },
{ 0xc0, 0xc0, 0xc0, 0xff }
}

Definition at line 156 of file image.cpp.

Color palette2[]
static
Initial value:
=
{
{ 0x00, 0x00, 0x00, 0x00 },
{ 0x00, 0x00, 0x00, 0x2e },
{ 0x00, 0x00, 0x00, 0x48 },
{ 0x00, 0x00, 0x00, 0x5d },
{ 0x00, 0x00, 0x00, 0x6f },
{ 0x00, 0x00, 0x00, 0x80 },
{ 0x00, 0x00, 0x00, 0x8f },
{ 0x00, 0x00, 0x00, 0x9e },
{ 0x00, 0x00, 0x00, 0xac },
{ 0x00, 0x00, 0x00, 0xb9 },
{ 0x00, 0x00, 0x00, 0xc5 },
{ 0x00, 0x00, 0x00, 0xd2 },
{ 0x00, 0x00, 0x00, 0xdd },
{ 0x00, 0x00, 0x00, 0xe9 },
{ 0x00, 0x00, 0x00, 0xf4 },
{ 0x00, 0x00, 0x00, 0xff }
}

Definition at line 169 of file image.cpp.

Color palette3[]
static
Initial value:
=
{
{ 0xff, 0xff, 0xff, 0xff },
{ 0xe0, 0xe0, 0xe0, 0xff },
{ 0xd0, 0xd0, 0xd0, 0xff },
{ 0xc0, 0xc0, 0xc0, 0xff },
{ 0xb0, 0xb0, 0xb0, 0xff },
{ 0xa0, 0xa0, 0xa0, 0xff },
{ 0x90, 0x90, 0x90, 0xff },
{ 0x80, 0x80, 0x80, 0xff },
{ 0x70, 0x70, 0x70, 0xff },
{ 0x60, 0x60, 0x60, 0xff },
{ 0x50, 0x50, 0x50, 0xff },
{ 0x40, 0x40, 0x40, 0xff },
{ 0x30, 0x30, 0x30, 0xff },
{ 0x20, 0x20, 0x20, 0xff },
{ 0x10, 0x10, 0x10, 0xff },
{ 0x00, 0x00, 0x00, 0xff }
}

Definition at line 189 of file image.cpp.