FreeRDP
Loading...
Searching...
No Matches
ncrush.h
1
20#ifndef FREERDP_CODEC_NCRUSH_H
21#define FREERDP_CODEC_NCRUSH_H
22
23#include <freerdp/api.h>
24#include <freerdp/types.h>
25
26#include "mppc.h"
27
28#include <winpr/bitstream.h>
29
30typedef struct s_NCRUSH_CONTEXT NCRUSH_CONTEXT;
31
32#ifdef __cplusplus
33extern "C"
34{
35#endif
36
37 FREERDP_LOCAL int ncrush_compress(NCRUSH_CONTEXT* ncrush, const BYTE* pSrcData, UINT32 SrcSize,
38 BYTE* pDstBuffer, const BYTE** ppDstData, UINT32* pDstSize,
39 UINT32* pFlags);
40 FREERDP_LOCAL int ncrush_decompress(NCRUSH_CONTEXT* ncrush, const BYTE* pSrcData,
41 UINT32 SrcSize, const BYTE** ppDstData, UINT32* pDstSize,
42 UINT32 flags);
43
44 FREERDP_LOCAL void ncrush_context_reset(NCRUSH_CONTEXT* ncrush, BOOL flush);
45
46 FREERDP_LOCAL NCRUSH_CONTEXT* ncrush_context_new(BOOL Compressor);
47 FREERDP_LOCAL void ncrush_context_free(NCRUSH_CONTEXT* ncrush);
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif /* FREERDP_CODEC_NCRUSH_H */