20#ifndef FREERDP_CODEC_CLEAR_H
21#define FREERDP_CODEC_CLEAR_H
23#include <freerdp/api.h>
24#include <freerdp/types.h>
26#include <freerdp/codec/nsc.h>
27#include <freerdp/codec/color.h>
34 typedef struct S_CLEAR_CONTEXT CLEAR_CONTEXT;
37 FREERDP_API
int clear_compress(CLEAR_CONTEXT* WINPR_RESTRICT clear,
38 const BYTE* WINPR_RESTRICT pSrcData, UINT32 SrcSize,
39 BYTE** WINPR_RESTRICT ppDstData,
40 UINT32* WINPR_RESTRICT pDstSize);
43 FREERDP_API INT32 clear_decompress(CLEAR_CONTEXT* WINPR_RESTRICT clear,
44 const BYTE* WINPR_RESTRICT pSrcData, UINT32 SrcSize,
45 UINT32 nWidth, UINT32 nHeight, BYTE* WINPR_RESTRICT pDstData,
46 UINT32 DstFormat, UINT32 nDstStep, UINT32 nXDst,
47 UINT32 nYDst, UINT32 nDstWidth, UINT32 nDstHeight,
48 const gdiPalette* WINPR_RESTRICT palette);
51 FREERDP_API BOOL clear_context_reset(CLEAR_CONTEXT* WINPR_RESTRICT clear);
53 FREERDP_API
void clear_context_free(CLEAR_CONTEXT* WINPR_RESTRICT clear);
55 WINPR_ATTR_MALLOC(clear_context_free, 1)
57 FREERDP_API CLEAR_CONTEXT* clear_context_new(BOOL Compressor);