| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
#ifndef FREERDP_CHANNEL_TSMF_CLIENT_MEDIA_H |
| 29 |
#define FREERDP_CHANNEL_TSMF_CLIENT_MEDIA_H |
| 30 |
|
| 31 |
#include <freerdp/freerdp.h> |
| 32 |
|
| 33 |
typedef struct S_TSMF_PRESENTATION TSMF_PRESENTATION; |
| 34 |
|
| 35 |
typedef struct S_TSMF_STREAM TSMF_STREAM; |
| 36 |
|
| 37 |
typedef struct S_TSMF_SAMPLE TSMF_SAMPLE; |
| 38 |
|
| 39 |
FREERDP_LOCAL void tsmf_presentation_free(TSMF_PRESENTATION* presentation); |
| 40 |
|
| 41 |
WINPR_ATTR_MALLOC(tsmf_presentation_free, 1) |
| 42 |
WINPR_ATTR_NODISCARD FREERDP_LOCAL TSMF_PRESENTATION* |
| 43 |
tsmf_presentation_new(const BYTE* guid, IWTSVirtualChannelCallback* pChannelCallback); |
| 44 |
|
| 45 |
WINPR_ATTR_NODISCARD FREERDP_LOCAL TSMF_PRESENTATION* |
| 46 |
tsmf_presentation_find_by_id(const BYTE* guid); |
| 47 |
|
| 48 |
WINPR_ATTR_NODISCARD FREERDP_LOCAL BOOL tsmf_presentation_start(TSMF_PRESENTATION* presentation); |
| 49 |
|
| 50 |
WINPR_ATTR_NODISCARD FREERDP_LOCAL BOOL tsmf_presentation_stop(TSMF_PRESENTATION* presentation); |
| 51 |
|
| 52 |
WINPR_ATTR_NODISCARD FREERDP_LOCAL UINT tsmf_presentation_sync(TSMF_PRESENTATION* presentation); |
| 53 |
|
| 54 |
WINPR_ATTR_NODISCARD FREERDP_LOCAL BOOL tsmf_presentation_paused(TSMF_PRESENTATION* presentation); |
| 55 |
|
| 56 |
WINPR_ATTR_NODISCARD FREERDP_LOCAL BOOL |
| 57 |
tsmf_presentation_restarted(TSMF_PRESENTATION* presentation); |
| 58 |
|
| 59 |
WINPR_ATTR_NODISCARD FREERDP_LOCAL BOOL |
| 60 |
tsmf_presentation_volume_changed(TSMF_PRESENTATION* presentation, UINT32 newVolume, UINT32 muted); |
| 61 |
|
| 62 |
WINPR_ATTR_NODISCARD FREERDP_LOCAL BOOL tsmf_presentation_set_geometry_info( |
| 63 |
TSMF_PRESENTATION* presentation, UINT32 x, UINT32 y, UINT32 width, UINT32 height, |
| 64 |
UINT32 num_rects, const RECTANGLE_32* rects); |
| 65 |
|
| 66 |
FREERDP_LOCAL |
| 67 |
void tsmf_presentation_set_audio_device(TSMF_PRESENTATION* presentation, const char* name, |
| 68 |
const char* device); |
| 69 |
|
| 70 |
FREERDP_LOCAL |
| 71 |
void tsmf_stream_free(TSMF_STREAM* stream); |
| 72 |
|
| 73 |
WINPR_ATTR_MALLOC(tsmf_stream_free, 1) |
| 74 |
WINPR_ATTR_NODISCARD FREERDP_LOCAL TSMF_STREAM* |
| 75 |
tsmf_stream_new(TSMF_PRESENTATION* presentation, UINT32 stream_id, rdpContext* rdpcontext); |
| 76 |
|
| 77 |
WINPR_ATTR_NODISCARD FREERDP_LOCAL TSMF_STREAM* |
| 78 |
tsmf_stream_find_by_id(TSMF_PRESENTATION* presentation, UINT32 stream_id); |
| 79 |
|
| 80 |
WINPR_ATTR_NODISCARD FREERDP_LOCAL BOOL tsmf_stream_set_format(TSMF_STREAM* stream, |
| 81 |
const char* name, wStream* s); |
| 82 |
|
| 83 |
FREERDP_LOCAL |
| 84 |
void tsmf_stream_end(TSMF_STREAM* stream, UINT32 message_id, |
| 85 |
IWTSVirtualChannelCallback* pChannelCallback); |
| 86 |
|
| 87 |
WINPR_ATTR_NODISCARD FREERDP_LOCAL BOOL tsmf_stream_flush(TSMF_STREAM* stream); |
| 88 |
|
| 89 |
WINPR_ATTR_NODISCARD FREERDP_LOCAL BOOL |
| 90 |
tsmf_stream_push_sample(TSMF_STREAM* stream, IWTSVirtualChannelCallback* pChannelCallback, |
| 91 |
UINT32 sample_id, UINT64 start_time, UINT64 end_time, UINT64 duration, |
| 92 |
UINT32 extensions, UINT32 data_size, BYTE* data); |
| 93 |
|
| 94 |
WINPR_ATTR_NODISCARD FREERDP_LOCAL BOOL tsmf_media_init(void); |
| 95 |
|
| 96 |
FREERDP_LOCAL |
| 97 |
void tsmf_stream_start_threads(TSMF_STREAM* stream); |
| 98 |
|
| 99 |
#endif |