20 #ifndef FREERDP_CODEC_NCRUSH_H
21 #define FREERDP_CODEC_NCRUSH_H
23 #include <freerdp/api.h>
24 #include <freerdp/types.h>
28 #include <winpr/bitstream.h>
30 typedef struct s_NCRUSH_CONTEXT NCRUSH_CONTEXT;
37 FREERDP_LOCAL
int ncrush_compress(NCRUSH_CONTEXT* ncrush,
const BYTE* pSrcData, UINT32 SrcSize,
38 BYTE* pDstBuffer,
const BYTE** ppDstData, UINT32* pDstSize,
40 FREERDP_LOCAL
int ncrush_decompress(NCRUSH_CONTEXT* ncrush,
const BYTE* pSrcData,
41 UINT32 SrcSize,
const BYTE** ppDstData, UINT32* pDstSize,
44 FREERDP_LOCAL
void ncrush_context_reset(NCRUSH_CONTEXT* ncrush, BOOL flush);
46 FREERDP_LOCAL NCRUSH_CONTEXT* ncrush_context_new(BOOL Compressor);
47 FREERDP_LOCAL
void ncrush_context_free(NCRUSH_CONTEXT* ncrush);