FreeRDP
Loading...
Searching...
No Matches
clear.h
1
20#ifndef FREERDP_CODEC_CLEAR_H
21#define FREERDP_CODEC_CLEAR_H
22
23#include <freerdp/api.h>
24#include <freerdp/types.h>
25
26#include <freerdp/codec/nsc.h>
27#include <freerdp/codec/color.h>
28
29#ifdef __cplusplus
30extern "C"
31{
32#endif
33
34 typedef struct S_CLEAR_CONTEXT CLEAR_CONTEXT;
35
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);
40
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);
47
48 FREERDP_API BOOL clear_context_reset(CLEAR_CONTEXT* WINPR_RESTRICT clear);
49
50 FREERDP_API void clear_context_free(CLEAR_CONTEXT* WINPR_RESTRICT clear);
51
52 WINPR_ATTR_MALLOC(clear_context_free, 1)
53 FREERDP_API CLEAR_CONTEXT* clear_context_new(BOOL Compressor);
54
55#ifdef __cplusplus
56}
57#endif
58
59#endif /* FREERDP_CODEC_CLEAR_H */