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;
 
   36  FREERDP_API 
int clear_compress(CLEAR_CONTEXT* WINPR_RESTRICT clear,
 
   37                                 const BYTE* WINPR_RESTRICT pSrcData, UINT32 SrcSize,
 
   38                                 BYTE** WINPR_RESTRICT ppDstData,
 
   39                                 UINT32* WINPR_RESTRICT pDstSize);
 
   41  FREERDP_API INT32 clear_decompress(CLEAR_CONTEXT* WINPR_RESTRICT clear,
 
   42                                     const BYTE* WINPR_RESTRICT pSrcData, UINT32 SrcSize,
 
   43                                     UINT32 nWidth, UINT32 nHeight, BYTE* WINPR_RESTRICT pDstData,
 
   44                                     UINT32 DstFormat, UINT32 nDstStep, UINT32 nXDst,
 
   45                                     UINT32 nYDst, UINT32 nDstWidth, UINT32 nDstHeight,
 
   46                                     const gdiPalette* WINPR_RESTRICT palette);
 
   48  FREERDP_API BOOL clear_context_reset(CLEAR_CONTEXT* WINPR_RESTRICT clear);
 
   50  FREERDP_API 
void clear_context_free(CLEAR_CONTEXT* WINPR_RESTRICT clear);
 
   52  WINPR_ATTR_MALLOC(clear_context_free, 1)
 
   53  FREERDP_API CLEAR_CONTEXT* clear_context_new(BOOL Compressor);