19 #ifndef FREERDP_SERVER_SHADOW_ENCODER_H
20 #define FREERDP_SERVER_SHADOW_ENCODER_H
22 #include <winpr/crt.h>
23 #include <winpr/stream.h>
25 #include <freerdp/freerdp.h>
26 #include <freerdp/codecs.h>
28 #include <freerdp/server/shadow.h>
32 rdpShadowClient* client;
33 rdpShadowServer* server;
50 BITMAP_PLANAR_CONTEXT* planar;
51 BITMAP_INTERLEAVED_CONTEXT* interleaved;
53 PROGRESSIVE_CONTEXT* progressive;
59 UINT32 lastAckframeId;
68 int shadow_encoder_reset(rdpShadowEncoder* encoder);
69 int shadow_encoder_prepare(rdpShadowEncoder* encoder, UINT32 codecs);
70 UINT32 shadow_encoder_create_frame_id(rdpShadowEncoder* encoder);
72 void shadow_encoder_free(rdpShadowEncoder* encoder);
74 WINPR_ATTR_MALLOC(shadow_encoder_free, 1)
75 rdpShadowEncoder* shadow_encoder_new(rdpShadowClient* client);