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
59 WINPR_ATTR_NODISCARD
60 FREERDP_API int progressive_compress(PROGRESSIVE_CONTEXT* WINPR_RESTRICT progressive,
61 const BYTE* WINPR_RESTRICT pSrcData, UINT32 SrcSize,
62 UINT32 SrcFormat, UINT32 Width, UINT32 Height,
63 UINT32 ScanLine,
64 const REGION16* WINPR_RESTRICT invalidRegion,
65 BYTE** WINPR_RESTRICT ppDstData,
66 UINT32* WINPR_RESTRICT pDstSize);
67
68 WINPR_ATTR_NODISCARD
69 FREERDP_API INT32 progressive_decompress(PROGRESSIVE_CONTEXT* WINPR_RESTRICT progressive,
70 const BYTE* WINPR_RESTRICT pSrcData, UINT32 SrcSize,
71 BYTE* WINPR_RESTRICT pDstData, UINT32 DstFormat,
72 UINT32 nDstStep, UINT32 nXDst, UINT32 nYDst,
73 REGION16* WINPR_RESTRICT invalidRegion,
74 UINT16 surfaceId, UINT32 frameId);
75
76 WINPR_ATTR_NODISCARD
77 FREERDP_API INT32
78 progressive_create_surface_context(PROGRESSIVE_CONTEXT* WINPR_RESTRICT progressive,
79 UINT16 surfaceId, UINT32 width, UINT32 height);
80
81 FREERDP_API int
82 progressive_delete_surface_context(PROGRESSIVE_CONTEXT* WINPR_RESTRICT progressive,
83 UINT16 surfaceId);
84
85 WINPR_ATTR_NODISCARD
86 FREERDP_API BOOL progressive_context_reset(PROGRESSIVE_CONTEXT* WINPR_RESTRICT progressive);
87
88 FREERDP_API void progressive_context_free(PROGRESSIVE_CONTEXT* progressive);
89
90 WINPR_ATTR_MALLOC(progressive_context_free, 1)
91 WINPR_ATTR_NODISCARD
92 FREERDP_API PROGRESSIVE_CONTEXT* progressive_context_new(BOOL Compressor);
93
94 WINPR_ATTR_MALLOC(progressive_context_free, 1)
95 WINPR_ATTR_NODISCARD
96 FREERDP_API PROGRESSIVE_CONTEXT* progressive_context_new_ex(BOOL Compressor,
97 UINT32 ThreadingFlags);
98
108 WINPR_ATTR_NODISCARD
109 FREERDP_API BOOL progressive_rfx_write_message_progressive_simple(
110 PROGRESSIVE_CONTEXT* WINPR_RESTRICT progressive, wStream* WINPR_RESTRICT s,
111 const RFX_MESSAGE* WINPR_RESTRICT msg);
112
113#ifdef __cplusplus
114}
115#endif
116
117#endif /* FREERDP_CODEC_PROGRESSIVE_H */