FreeRDP
xcrush.h
1 
20 #ifndef FREERDP_CODEC_XCRUSH_H
21 #define FREERDP_CODEC_XCRUSH_H
22 
23 #include <freerdp/api.h>
24 #include <freerdp/types.h>
25 
26 #include "mppc.h"
27 
28 typedef struct s_XCRUSH_CONTEXT XCRUSH_CONTEXT;
29 
30 #ifdef __cplusplus
31 extern "C"
32 {
33 #endif
34 
35  FREERDP_LOCAL int xcrush_compress(XCRUSH_CONTEXT* xcrush, const BYTE* pSrcData, UINT32 SrcSize,
36  BYTE* pDstBuffer, const BYTE** ppDstData, UINT32* pDstSize,
37  UINT32* pFlags);
38  FREERDP_LOCAL int xcrush_decompress(XCRUSH_CONTEXT* xcrush, const BYTE* pSrcData,
39  UINT32 SrcSize, const BYTE** ppDstData, UINT32* pDstSize,
40  UINT32 flags);
41 
42  FREERDP_LOCAL void xcrush_context_reset(XCRUSH_CONTEXT* xcrush, BOOL flush);
43 
44  FREERDP_LOCAL XCRUSH_CONTEXT* xcrush_context_new(BOOL Compressor);
45  FREERDP_LOCAL void xcrush_context_free(XCRUSH_CONTEXT* xcrush);
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 
51 #endif /* FREERDP_CODEC_XCRUSH_H */