-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathVideo.h
More file actions
47 lines (41 loc) · 710 Bytes
/
Video.h
File metadata and controls
47 lines (41 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include "Uefi.h"
#define LetterWidth 20
#define LetterHeight 36
#define LetterOneRow 32
#define InVisiable 32
#pragma pack(1)
typedef struct
{
UINT32 X;
UINT32 Y;
} POINT;
typedef struct
{
UINT32 X;
UINT32 Y;
UINT32 Color;
} PIXEL;
typedef struct
{
POINT Start;
POINT End;
UINT32 Color;
} BLOCK;
typedef struct
{
UINT16 Horizontal;
UINT16 Vertical;
} RESOLUTION;
typedef struct
{
UINT32 *Start;
UINT32 Width;
UINT32 Height;
}ASCII_BMP;
#pragma pack()
int VideoInitial(BOOT_CONFIG *BootConfig);
int DrawPixel(PIXEL Pixel);
int DrawBlock(BLOCK Block);
int DrawFont();
int DrawLetter(UINT8 Index, POINT Destination);
int DrawBmp(BOOT_CONFIG BootConfig);