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;
42#if !defined(WITHOUT_FREERDP_3x_DEPRECATED)
43 WINPR_DEPRECATED_VAR(
"Broken API definition, compression was never implemented",
44 WINPR_ATTR_NODISCARD FREERDP_API
int clear_compress(
45 CLEAR_CONTEXT* WINPR_RESTRICT clear,
46 const BYTE* WINPR_RESTRICT pSrcData, UINT32 SrcSize,
47 BYTE** WINPR_RESTRICT ppDstData, UINT32* WINPR_RESTRICT pDstSize));
71 FREERDP_API INT32 clear_decompress(CLEAR_CONTEXT* WINPR_RESTRICT clear,
72 const BYTE* WINPR_RESTRICT pSrcData, UINT32 SrcSize,
73 UINT32 nWidth, UINT32 nHeight, BYTE* WINPR_RESTRICT pDstData,
74 UINT32 DstFormat, UINT32 nDstStep, UINT32 nXDst,
75 UINT32 nYDst, UINT32 nDstWidth, UINT32 nDstHeight,
76 const gdiPalette* WINPR_RESTRICT palette);
87 FREERDP_API BOOL clear_context_reset(CLEAR_CONTEXT* WINPR_RESTRICT clear);
93 FREERDP_API
void clear_context_free(CLEAR_CONTEXT* WINPR_RESTRICT clear);
100 WINPR_ATTR_MALLOC(clear_context_free, 1)
101 FREERDP_API CLEAR_CONTEXT* clear_context_new(BOOL Compressor);