forked from mapic91/MpcAsfTool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmydefs.hpp
84 lines (76 loc) · 1.75 KB
/
mydefs.hpp
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#ifndef MYDEFS_HPP_INCLUDED
#define MYDEFS_HPP_INCLUDED
const unsigned long FrameDataHeadLength = 14;
struct MpcFileHead
{
char VersionInfo[64];//"MPC File Ver2.0"
unsigned long FramesDataLengthSum;
long GlobleWidth;
long GlobleHeight;
unsigned long FrameCounts;
long Direction;
unsigned long ColourCounts;
long Interval;
long Bottom;
char Reserved[32];//Must be 0
};
struct ShdFileHead
{
char VersionInfo[64];//"MPC File Ver2.0"
unsigned long FramesDataLengthSum;
long GlobleWidth;
long GlobleHeight;
unsigned long FrameCounts;
long Direction;
unsigned long ColourCounts;
long Interval;
long Bottom;
char Reserved[32];//Must be 0
};
struct AsfFileHead
{
char VersionInfo[16];//"Asf File Verx.xx"
long GlobleWidth;
long GlobleHeight;
unsigned long FrameCounts;
long Direction;
unsigned long ColourCounts;
long Interval;
long Bottom;
long Left;
char Reserved[16];//Must be 0
};
struct SprFileHead
{
char VersionInfo[4];
unsigned short GlobleWidth;
unsigned short GlobleHeight;
unsigned short OffX;
unsigned short OffY;
unsigned short FrameCounts;
unsigned short ColourCounts;
unsigned short DirectionCount;
unsigned short Interval;
char Reserved[12];
};
struct Palette_Colour
{
unsigned char Blue;
unsigned char Green;
unsigned char Red;
unsigned char Alpha;
};
struct Palette
{
unsigned long Size;//Palette_Colour counts, must less than 257
Palette_Colour Data[256];
};
struct FrameData
{
unsigned long DataLength;
long Width;
long Height;
char Reserved[8];//Must be 0
unsigned char* Data;
};
#endif // MYDEFS_HPP_INCLUDED