20 #ifndef FREERDP_CODEC_XCRUSH_H
21 #define FREERDP_CODEC_XCRUSH_H
23 #include <freerdp/api.h>
24 #include <freerdp/types.h>
28 typedef struct s_XCRUSH_CONTEXT XCRUSH_CONTEXT;
35 FREERDP_LOCAL
int xcrush_compress(XCRUSH_CONTEXT* xcrush,
const BYTE* pSrcData, UINT32 SrcSize,
36 BYTE* pDstBuffer,
const BYTE** ppDstData, UINT32* pDstSize,
38 FREERDP_LOCAL
int xcrush_decompress(XCRUSH_CONTEXT* xcrush,
const BYTE* pSrcData,
39 UINT32 SrcSize,
const BYTE** ppDstData, UINT32* pDstSize,
42 FREERDP_LOCAL
void xcrush_context_reset(XCRUSH_CONTEXT* xcrush, BOOL flush);
44 FREERDP_LOCAL XCRUSH_CONTEXT* xcrush_context_new(BOOL Compressor);
45 FREERDP_LOCAL
void xcrush_context_free(XCRUSH_CONTEXT* xcrush);