FreeRDP
client/tsmf.h
1 
20 /* DEPRECATION WARNING:
21  *
22  * This channel is unmaintained and not used since windows 7.
23  * Only compile and use it if absolutely necessary, otherwise
24  * deactivate it or use the newer [MS-RDPEVOR] video redirection.
25  */
26 
27 #ifndef FREERDP_CHANNEL_TSMF_CLIENT_TSMF_H
28 #define FREERDP_CHANNEL_TSMF_CLIENT_TSMF_H
29 
30 #include <freerdp/codec/region.h>
31 
32 #include <freerdp/channels/tsmf.h>
33 
34 /* RDP_VIDEO_FRAME_EVENT.frame_pixfmt */
35 /* http://www.fourcc.org/yuv.php */
36 #define RDP_PIXFMT_I420 0x30323449
37 #define RDP_PIXFMT_YV12 0x32315659
38 
39 #ifdef __cplusplus
40 extern "C"
41 {
42 #endif
43 
44  typedef struct
45  {
46  BYTE* frameData;
47  UINT32 frameSize;
48  UINT32 framePixFmt;
49  INT16 frameWidth;
50  INT16 frameHeight;
51  INT16 x;
52  INT16 y;
53  INT16 width;
54  INT16 height;
55  UINT16 numVisibleRects;
56  RECTANGLE_16* visibleRects;
58 
63  typedef struct s_tsmf_client_context TsmfClientContext;
64 
65  typedef int (*pcTsmfFrameEvent)(TsmfClientContext* context, TSMF_VIDEO_FRAME_EVENT* event);
66 
68  {
69  void* handle;
70  void* custom;
71 
72  pcTsmfFrameEvent FrameEvent;
73  };
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif /* FREERDP_CHANNEL_TSMF_CLIENT_TSMF_H */