forked from mapic91/MpcAsfTool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRpcDecode.hpp
64 lines (59 loc) · 1.09 KB
/
RpcDecode.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
#ifndef RPCDECODE_HPP_INCLUDED
#define RPCDECODE_HPP_INCLUDED
#include "wx/string.h"
#include "FreeImage.h"
struct DataInfo
{
long beginPos;
long dataLength;
};
class RpcDecode
{
public:
RpcDecode()
{
m_frameDataInfo = NULL;
}
~RpcDecode()
{
if(m_frameDataInfo != NULL)delete []m_frameDataInfo;
}
bool ReadFile(wxString filePath);
//Mode RGBA
unsigned char* GetDecodedFrameData(int index);
FILOCRGBQUAD* GetFIDecodedFrameData(int index);
unsigned long GetFramesCounts()
{
return m_frameCount;
}
long GetGlobleWidth()
{
return m_globalWidth;
}
long GetGlobleHeight()
{
return m_globalHeight;
}
long GetDirection()
{
return m_direction;
}
unsigned long GetInterval()
{
return m_interval;
}
long GetBottom()
{
return m_bottom;
}
private:
wxString m_filePath;
long m_globalWidth;
long m_globalHeight;
long m_direction;
long m_interval;
long m_bottom;
long m_frameCount;
DataInfo *m_frameDataInfo;
};
#endif // RPCDECODE_HPP_INCLUDED