20#ifndef FREERDP_CODEC_CLEAR_H
21#define FREERDP_CODEC_CLEAR_H
23#include <freerdp/api.h>
24#include <freerdp/types.h>
25#include <freerdp/config.h>
27#include <freerdp/codec/nsc.h>
28#include <freerdp/codec/color.h>
35 typedef struct S_CLEAR_CONTEXT CLEAR_CONTEXT;
56 FREERDP_API BOOL clear_compress(CLEAR_CONTEXT* WINPR_RESTRICT clear,
57 const BYTE* WINPR_RESTRICT pSrcData, UINT32 SrcFormat,
58 UINT32 nSrcStep, UINT32 nWidth, UINT32 nHeight,
59 BYTE** WINPR_RESTRICT ppDstData,
60 UINT32* WINPR_RESTRICT pDstSize);
83 FREERDP_API INT32 clear_decompress(CLEAR_CONTEXT* WINPR_RESTRICT clear,
84 const BYTE* WINPR_RESTRICT pSrcData, UINT32 SrcSize,
85 UINT32 nWidth, UINT32 nHeight, BYTE* WINPR_RESTRICT pDstData,
86 UINT32 DstFormat, UINT32 nDstStep, UINT32 nXDst,
87 UINT32 nYDst, UINT32 nDstWidth, UINT32 nDstHeight,
88 const gdiPalette* WINPR_RESTRICT palette);
99 FREERDP_API BOOL clear_context_reset(CLEAR_CONTEXT* WINPR_RESTRICT clear);
105 FREERDP_API
void clear_context_free(CLEAR_CONTEXT* WINPR_RESTRICT clear);
112 WINPR_ATTR_MALLOC(clear_context_free, 1)
113 FREERDP_API CLEAR_CONTEXT* clear_context_new(BOOL Compressor);