20 #ifndef FREERDP_SERVER_MAC_INFO_H
21 #define FREERDP_SERVER_MAC_INFO_H
23 #define FREERDP_SERVER_MAC_INFO_DEFAULT_FPS 1
24 #define FREERDP_SERVER_MAC_INFO_MAXPEERS 1
26 #include <winpr/wtypes.h>
27 #include <freerdp/codec/rfx.h>
29 #include "mf_interface.h"
31 int mf_info_lock(mfInfo* mfi);
32 int mf_info_try_lock(mfInfo* mfi, UINT32 ms);
33 int mf_info_unlock(mfInfo* mfi);
35 mfInfo* mf_info_get_instance(
void);
36 void mf_info_peer_register(mfInfo* mfi, mfPeerContext* context);
37 void mf_info_peer_unregister(mfInfo* mfi, mfPeerContext* context);
39 BOOL mf_info_have_updates(mfInfo* mfi);
40 void mf_info_update_changes(mfInfo* mfi);
41 void mf_info_find_invalid_region(mfInfo* mfi);
42 void mf_info_clear_invalid_region(mfInfo* mfi);
43 void mf_info_invalidate_full_screen(mfInfo* mfi);
44 BOOL mf_info_have_invalid_region(mfInfo* mfi);
45 void mf_info_getScreenData(mfInfo* mfi,
long* width,
long* height, BYTE** pBits,
int* pitch);