FreeRDP
Loading...
Searching...
No Matches
include/freerdp/codec/progressive.h
1
20#ifndef FREERDP_CODEC_PROGRESSIVE_H
21#define FREERDP_CODEC_PROGRESSIVE_H
22
23#include <freerdp/api.h>
24#include <freerdp/types.h>
25
26#include <winpr/wlog.h>
27#include <winpr/collections.h>
28
29#include <freerdp/codec/rfx.h>
30#include <freerdp/codec/color.h>
31#include <freerdp/codec/region.h>
32
33#ifdef __cplusplus
34extern "C"
35{
36#endif
37
38 typedef struct S_PROGRESSIVE_CONTEXT PROGRESSIVE_CONTEXT;
39
40 WINPR_ATTR_NODISCARD
41 FREERDP_API int progressive_compress(PROGRESSIVE_CONTEXT* WINPR_RESTRICT progressive,
42 const BYTE* WINPR_RESTRICT pSrcData, UINT32 SrcSize,
43 UINT32 SrcFormat, UINT32 Width, UINT32 Height,
44 UINT32 ScanLine,
45 const REGION16* WINPR_RESTRICT invalidRegion,
46 BYTE** WINPR_RESTRICT ppDstData,
47 UINT32* WINPR_RESTRICT pDstSize);
48
49 WINPR_ATTR_NODISCARD
50 FREERDP_API INT32 progressive_decompress(PROGRESSIVE_CONTEXT* WINPR_RESTRICT progressive,
51 const BYTE* WINPR_RESTRICT pSrcData, UINT32 SrcSize,
52 BYTE* WINPR_RESTRICT pDstData, UINT32 DstFormat,
53 UINT32 nDstStep, UINT32 nXDst, UINT32 nYDst,
54 REGION16* WINPR_RESTRICT invalidRegion,
55 UINT16 surfaceId, UINT32 frameId);
56
57 WINPR_ATTR_NODISCARD
58 FREERDP_API INT32
59 progressive_create_surface_context(PROGRESSIVE_CONTEXT* WINPR_RESTRICT progressive,
60 UINT16 surfaceId, UINT32 width, UINT32 height);
61
62 FREERDP_API int
63 progressive_delete_surface_context(PROGRESSIVE_CONTEXT* WINPR_RESTRICT progressive,
64 UINT16 surfaceId);
65
66 WINPR_ATTR_NODISCARD
67 FREERDP_API BOOL progressive_context_reset(PROGRESSIVE_CONTEXT* WINPR_RESTRICT progressive);
68
69 FREERDP_API void progressive_context_free(PROGRESSIVE_CONTEXT* progressive);
70
71 WINPR_ATTR_MALLOC(progressive_context_free, 1)
72 WINPR_ATTR_NODISCARD
73 FREERDP_API PROGRESSIVE_CONTEXT* progressive_context_new(BOOL Compressor);
74
75 WINPR_ATTR_MALLOC(progressive_context_free, 1)
76 WINPR_ATTR_NODISCARD
77 FREERDP_API PROGRESSIVE_CONTEXT* progressive_context_new_ex(BOOL Compressor,
78 UINT32 ThreadingFlags);
79
89 WINPR_ATTR_NODISCARD
90 FREERDP_API BOOL progressive_rfx_write_message_progressive_simple(
91 PROGRESSIVE_CONTEXT* WINPR_RESTRICT progressive, wStream* WINPR_RESTRICT s,
92 const RFX_MESSAGE* WINPR_RESTRICT msg);
93
94#ifdef __cplusplus
95}
96#endif
97
98#endif /* FREERDP_CODEC_PROGRESSIVE_H */