-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmydefs.hpp
81 lines (72 loc) · 1.68 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
#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 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;
};
struct Frame_Data
{
long width;
long height;
unsigned char* data;//color model RGBA
Frame_Data *next;
};
#define MAGIC_FILE_PROPERTY_NAME wxT("Magic File")
#define SAFE_DELETE(p) delete p; p = nullptr;
#endif // MYDEFS_HPP_INCLUDED