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>
30typedef struct s_NCRUSH_CONTEXT NCRUSH_CONTEXT;
38 FREERDP_LOCAL
int ncrush_compress(NCRUSH_CONTEXT* ncrush,
const BYTE* pSrcData, UINT32 SrcSize,
39 BYTE* pDstBuffer,
const BYTE** ppDstData, UINT32* pDstSize,
42 FREERDP_LOCAL
int ncrush_decompress(NCRUSH_CONTEXT* ncrush,
const BYTE* pSrcData,
43 UINT32 SrcSize,
const BYTE** ppDstData, UINT32* pDstSize,
46 FREERDP_LOCAL
void ncrush_context_reset(NCRUSH_CONTEXT* ncrush, BOOL flush);
48 FREERDP_LOCAL
void ncrush_context_free(NCRUSH_CONTEXT* ncrush);
50 WINPR_ATTR_MALLOC(ncrush_context_free, 1)
52 FREERDP_LOCAL NCRUSH_CONTEXT* ncrush_context_new(BOOL Compressor);