MPPC_CONTEXT now opaque

This commit is contained in:
Armin Novak 2019-11-14 15:14:59 +01:00
parent e83f65b062
commit 68ed1276c2
2 changed files with 12 additions and 11 deletions

View File

@ -27,17 +27,6 @@
#include <freerdp/codec/bulk.h> #include <freerdp/codec/bulk.h>
struct _MPPC_CONTEXT
{
wBitStream* bs;
BOOL Compressor;
BYTE* HistoryPtr;
UINT32 HistoryOffset;
UINT32 HistoryBufferSize;
BYTE HistoryBuffer[65536];
UINT16 MatchBuffer[32768];
UINT32 CompressionLevel;
};
typedef struct _MPPC_CONTEXT MPPC_CONTEXT; typedef struct _MPPC_CONTEXT MPPC_CONTEXT;
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -37,6 +37,18 @@
0x07FFF000) >> \ 0x07FFF000) >> \
12) 12)
struct _MPPC_CONTEXT
{
wBitStream* bs;
BOOL Compressor;
BYTE* HistoryPtr;
UINT32 HistoryOffset;
UINT32 HistoryBufferSize;
BYTE HistoryBuffer[65536];
UINT16 MatchBuffer[32768];
UINT32 CompressionLevel;
};
static const UINT32 MPPC_MATCH_TABLE[256] = { static const UINT32 MPPC_MATCH_TABLE[256] = {
0x00000000, 0x009CCF93, 0x01399F26, 0x01D66EB9, 0x02733E4C, 0x03100DDF, 0x03ACDD72, 0x0449AD05, 0x00000000, 0x009CCF93, 0x01399F26, 0x01D66EB9, 0x02733E4C, 0x03100DDF, 0x03ACDD72, 0x0449AD05,
0x04E67C98, 0x05834C2B, 0x06201BBE, 0x06BCEB51, 0x0759BAE4, 0x07F68A77, 0x08935A0A, 0x0930299D, 0x04E67C98, 0x05834C2B, 0x06201BBE, 0x06BCEB51, 0x0759BAE4, 0x07F68A77, 0x08935A0A, 0x0930299D,