Debian Codegraph @

channels/tsmf/client/tsmf_media.h

raw symbols SCIP
1 /**
2 * FreeRDP: A Remote Desktop Protocol Implementation
3 * Video Redirection Virtual Channel - Media Container
4 *
5 * Copyright 2010-2011 Vic Lee
6 * Copyright 2012 Hewlett-Packard Development Company, L.P.
7 * Copyright 2015 Thincast Technologies GmbH
8 * Copyright 2015 DI (FH) Martin Haimberger <[email protected]>
9 *
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
13 *
14 * http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
21 */
22
23 /**
24 * The media container maintains a global list of presentations, and a list of
25 * streams in each presentation.
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 /* FREERDP_CHANNEL_TSMF_CLIENT_MEDIA_H */