20#ifndef FREERDP_CODEC_PROGRESSIVE_H
21#define FREERDP_CODEC_PROGRESSIVE_H
23#include <freerdp/api.h>
24#include <freerdp/types.h>
26#include <winpr/wlog.h>
27#include <winpr/collections.h>
29#include <freerdp/codec/rfx.h>
30#include <freerdp/codec/color.h>
31#include <freerdp/codec/region.h>
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,
64 const REGION16* WINPR_RESTRICT invalidRegion,
65 BYTE** WINPR_RESTRICT ppDstData,
66 UINT32* WINPR_RESTRICT pDstSize);
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);
78 progressive_create_surface_context(PROGRESSIVE_CONTEXT* WINPR_RESTRICT progressive,
79 UINT16 surfaceId, UINT32 width, UINT32 height);
82 progressive_delete_surface_context(PROGRESSIVE_CONTEXT* WINPR_RESTRICT progressive,
86 FREERDP_API BOOL progressive_context_reset(PROGRESSIVE_CONTEXT* WINPR_RESTRICT progressive);
88 FREERDP_API
void progressive_context_free(PROGRESSIVE_CONTEXT* progressive);
90 WINPR_ATTR_MALLOC(progressive_context_free, 1)
92 FREERDP_API PROGRESSIVE_CONTEXT* progressive_context_new(BOOL Compressor);
94 WINPR_ATTR_MALLOC(progressive_context_free, 1)
96 FREERDP_API PROGRESSIVE_CONTEXT* progressive_context_new_ex(BOOL Compressor,
97 UINT32 ThreadingFlags);
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);