summaryrefslogtreecommitdiff
path: root/vapi/gstreamer-play-1.0.vapi
blob: 5cbe8cccce51c087f01ce88cb839f2cd15dfcf6f (plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
/* gstreamer-play-1.0.vapi generated by vapigen, do not modify. */

[CCode (cprefix = "Gst", gir_namespace = "GstPlay", gir_version = "1.0", lower_case_cprefix = "gst_")]
namespace Gst {
	namespace Play {
		[CCode (cheader_filename = "gst/play/play.h", type_id = "gst_play_audio_info_get_type ()")]
		[GIR (name = "PlayAudioInfo")]
		[Version (since = "1.20")]
		public sealed class AudioInfo : Gst.Play.StreamInfo {
			[CCode (has_construct_function = false)]
			protected AudioInfo ();
			public int get_bitrate ();
			public int get_channels ();
			public unowned string? get_language ();
			public int get_max_bitrate ();
			public int get_sample_rate ();
		}
		[CCode (cheader_filename = "gst/play/play.h", type_id = "gst_play_media_info_get_type ()")]
		[GIR (name = "PlayMediaInfo")]
		[Version (since = "1.20")]
		public sealed class MediaInfo : GLib.Object {
			[CCode (has_construct_function = false)]
			protected MediaInfo ();
			public unowned GLib.List<Gst.Play.AudioInfo> get_audio_streams ();
			public unowned string? get_container_format ();
			public Gst.ClockTime get_duration ();
			public unowned Gst.Sample? get_image_sample ();
			public uint get_number_of_audio_streams ();
			public uint get_number_of_streams ();
			public uint get_number_of_subtitle_streams ();
			public uint get_number_of_video_streams ();
			public unowned GLib.List<Gst.Play.StreamInfo> get_stream_list ();
			public unowned GLib.List<Gst.Play.SubtitleInfo> get_subtitle_streams ();
			public unowned Gst.TagList? get_tags ();
			public unowned string? get_title ();
			public unowned string get_uri ();
			public unowned GLib.List<Gst.Play.VideoInfo> get_video_streams ();
			public bool is_live ();
			public bool is_seekable ();
		}
		[CCode (cheader_filename = "gst/play/play.h", cname = "GstPlay", lower_case_cprefix = "gst_play_", type_id = "gst_play_get_type ()")]
		[GIR (name = "Play")]
		[Version (since = "1.20")]
		public sealed class Play : Gst.Object {
			[CCode (has_construct_function = false)]
			public Play (owned Gst.Play.VideoRenderer? video_renderer);
			public static uint config_get_position_update_interval (Gst.Structure config);
			public static bool config_get_seek_accurate (Gst.Structure config);
			public static string? config_get_user_agent (Gst.Structure config);
			public static void config_set_position_update_interval (Gst.Structure config, uint interval);
			public static void config_set_seek_accurate (Gst.Structure config, bool accurate);
			public static void config_set_user_agent (Gst.Structure config, string? agent);
			public static unowned GLib.List<Gst.Play.AudioInfo> get_audio_streams (Gst.Play.MediaInfo info);
			public int64 get_audio_video_offset ();
			public double get_color_balance (Gst.Play.ColorBalanceType type);
			public Gst.Structure get_config ();
			public Gst.Play.AudioInfo? get_current_audio_track ();
			public Gst.Play.SubtitleInfo? get_current_subtitle_track ();
			public Gst.Play.VideoInfo? get_current_video_track ();
			public string? get_current_visualization ();
			public Gst.ClockTime get_duration ();
			public Gst.Play.MediaInfo? get_media_info ();
			public Gst.Bus get_message_bus ();
			public Gst.Video.MultiviewFlags get_multiview_flags ();
			public Gst.Video.MultiviewFramePacking get_multiview_mode ();
			public bool get_mute ();
			public Gst.Element get_pipeline ();
			public Gst.ClockTime get_position ();
			public double get_rate ();
			public static unowned GLib.List<Gst.Play.SubtitleInfo> get_subtitle_streams (Gst.Play.MediaInfo info);
			public string? get_subtitle_uri ();
			public int64 get_subtitle_video_offset ();
			public string? get_uri ();
			public Gst.Sample? get_video_snapshot (Gst.Play.SnapshotFormat format, Gst.Structure? config);
			public static unowned GLib.List<Gst.Play.VideoInfo> get_video_streams (Gst.Play.MediaInfo info);
			public double get_volume ();
			public bool has_color_balance ();
			public static bool is_play_message (Gst.Message msg);
			public void pause ();
			public void play ();
			public void seek (Gst.ClockTime position);
			public bool set_audio_track (int stream_index);
			public void set_audio_track_enabled (bool enabled);
			public void set_audio_video_offset (int64 offset);
			public void set_color_balance (Gst.Play.ColorBalanceType type, double value);
			public bool set_config (owned Gst.Structure config);
			public void set_multiview_flags (Gst.Video.MultiviewFlags flags);
			public void set_multiview_mode (Gst.Video.MultiviewFramePacking mode);
			public void set_mute (bool val);
			public void set_rate (double rate);
			public bool set_subtitle_track (int stream_index);
			public void set_subtitle_track_enabled (bool enabled);
			public void set_subtitle_uri (string? uri);
			public void set_subtitle_video_offset (int64 offset);
			public void set_uri (string? uri);
			public bool set_video_track (int stream_index);
			public void set_video_track_enabled (bool enabled);
			public bool set_visualization (string? name);
			public void set_visualization_enabled (bool enabled);
			public void set_volume (double val);
			public void stop ();
			public static void visualizations_free (Gst.Play.Visualization viss);
			[CCode (array_length = false, array_null_terminated = true)]
			public static Gst.Play.Visualization[] visualizations_get ();
			public int64 audio_video_offset { get; set; }
			public Gst.Play.AudioInfo current_audio_track { owned get; }
			public Gst.Play.SubtitleInfo current_subtitle_track { owned get; }
			public Gst.Play.VideoInfo current_video_track { owned get; }
			public uint64 duration { get; }
			public Gst.Play.MediaInfo media_info { owned get; }
			public bool mute { get; set; }
			public Gst.Element pipeline { owned get; }
			public uint64 position { get; }
			public double rate { get; set; }
			public int64 subtitle_video_offset { get; set; }
			[NoAccessorMethod]
			public string suburi { owned get; set; }
			public string uri { owned get; set; }
			[NoAccessorMethod]
			public Gst.Video.MultiviewFlags video_multiview_flags { get; set; }
			[NoAccessorMethod]
			public Gst.Video.MultiviewFramePacking video_multiview_mode { get; set; }
			[NoAccessorMethod]
			public Gst.Play.VideoRenderer video_renderer { owned get; set; }
			public double volume { get; set; }
		}
		[CCode (cheader_filename = "gst/play/play.h", type_id = "gst_play_signal_adapter_get_type ()")]
		[GIR (name = "PlaySignalAdapter")]
		[Version (since = "1.20")]
		public sealed class SignalAdapter : GLib.Object {
			[CCode (has_construct_function = false)]
			public SignalAdapter (Gst.Play.Play play);
			public unowned Gst.Play.Play get_play ();
			[CCode (has_construct_function = false)]
			public SignalAdapter.sync_emit (Gst.Play.Play play);
			[CCode (has_construct_function = false)]
			public SignalAdapter.with_main_context (Gst.Play.Play play, GLib.MainContext context);
			public Gst.Play.Play play { get; }
			public signal void buffering (int object);
			public signal void duration_changed (uint64 object);
			public signal void end_of_stream ();
			public signal void error (GLib.Error error, Gst.Structure? details);
			public signal void media_info_updated (Gst.Play.MediaInfo object);
			public signal void mute_changed (bool object);
			public signal void position_updated (uint64 object);
			public signal void seek_done (uint64 object);
			public signal void state_changed (Gst.Play.State object);
			public signal void uri_loaded (string object);
			public signal void video_dimensions_changed (uint object, uint p0);
			public signal void volume_changed (double object);
			public signal void warning (GLib.Error error, Gst.Structure? details);
		}
		[CCode (cheader_filename = "gst/play/play.h", type_id = "gst_play_stream_info_get_type ()")]
		[GIR (name = "PlayStreamInfo")]
		[Version (since = "1.20")]
		public abstract class StreamInfo : GLib.Object {
			[CCode (has_construct_function = false)]
			protected StreamInfo ();
			public unowned Gst.Caps? get_caps ();
			public unowned string? get_codec ();
			public int get_index ();
			public unowned string get_stream_type ();
			public unowned Gst.TagList? get_tags ();
		}
		[CCode (cheader_filename = "gst/play/play.h", type_id = "gst_play_subtitle_info_get_type ()")]
		[GIR (name = "PlaySubtitleInfo")]
		[Version (since = "1.20")]
		public sealed class SubtitleInfo : Gst.Play.StreamInfo {
			[CCode (has_construct_function = false)]
			protected SubtitleInfo ();
			public unowned string? get_language ();
		}
		[CCode (cheader_filename = "gst/play/play.h", type_id = "gst_play_video_info_get_type ()")]
		[GIR (name = "PlayVideoInfo")]
		[Version (since = "1.20")]
		public sealed class VideoInfo : Gst.Play.StreamInfo {
			[CCode (has_construct_function = false)]
			protected VideoInfo ();
			public int get_bitrate ();
			public void get_framerate (out int fps_n, out int fps_d);
			public int get_height ();
			public int get_max_bitrate ();
			public void get_pixel_aspect_ratio (out uint par_n, out uint par_d);
			public int get_width ();
		}
		[CCode (cheader_filename = "gst/play/play.h", type_id = "gst_play_video_overlay_video_renderer_get_type ()")]
		[GIR (name = "PlayVideoOverlayVideoRenderer")]
		[Version (since = "1.20")]
		public sealed class VideoOverlayVideoRenderer : GLib.Object, Gst.Play.VideoRenderer {
			[CCode (has_construct_function = false, type = "GstPlayVideoRenderer*")]
			public VideoOverlayVideoRenderer (void* window_handle);
			public void expose ();
			public void get_render_rectangle (out int x, out int y, out int width, out int height);
			public void* get_window_handle ();
			public void set_render_rectangle (int x, int y, int width, int height);
			public void set_window_handle (void* window_handle);
			[CCode (has_construct_function = false, type = "GstPlayVideoRenderer*")]
			public VideoOverlayVideoRenderer.with_sink (void* window_handle, Gst.Element video_sink);
			[NoAccessorMethod]
			public Gst.Element video_sink { owned get; set; }
			public void* window_handle { get; set construct; }
		}
		[CCode (cheader_filename = "gst/play/play.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gst_play_visualization_get_type ()")]
		[Compact]
		[GIR (name = "PlayVisualization")]
		[Version (since = "1.20")]
		public class Visualization {
			public weak string description;
			public weak string name;
			public Gst.Play.Visualization copy ();
			public void free ();
		}
		[CCode (cheader_filename = "gst/play/play.h", type_cname = "GstPlayVideoRendererInterface", type_id = "gst_play_video_renderer_get_type ()")]
		[GIR (name = "PlayVideoRenderer")]
		[Version (since = "1.20")]
		public interface VideoRenderer : GLib.Object {
		}
		[CCode (cheader_filename = "gst/play/play.h", cprefix = "GST_PLAY_COLOR_BALANCE_", type_id = "gst_play_color_balance_type_get_type ()")]
		[GIR (name = "PlayColorBalanceType")]
		[Version (since = "1.20")]
		public enum ColorBalanceType {
			HUE,
			BRIGHTNESS,
			SATURATION,
			CONTRAST;
			public unowned string get_name ();
		}
		[CCode (cheader_filename = "gst/play/play.h", cprefix = "GST_PLAY_MESSAGE_", type_id = "gst_play_message_get_type ()")]
		[GIR (name = "PlayMessage")]
		[Version (since = "1.20")]
		public enum Message {
			URI_LOADED,
			POSITION_UPDATED,
			DURATION_CHANGED,
			STATE_CHANGED,
			BUFFERING,
			END_OF_STREAM,
			ERROR,
			WARNING,
			VIDEO_DIMENSIONS_CHANGED,
			MEDIA_INFO_UPDATED,
			VOLUME_CHANGED,
			MUTE_CHANGED,
			SEEK_DONE;
			public unowned string get_name ();
			public static void parse_buffering_percent (Gst.Message msg, out uint percent);
			public static void parse_duration_updated (Gst.Message msg, out Gst.ClockTime duration);
			public static void parse_error (Gst.Message msg, out GLib.Error error, out Gst.Structure? details);
			public static void parse_media_info_updated (Gst.Message msg, out Gst.Play.MediaInfo info);
			public static void parse_muted_changed (Gst.Message msg, out bool muted);
			public static void parse_position_updated (Gst.Message msg, out Gst.ClockTime position);
			public static void parse_state_changed (Gst.Message msg, out Gst.Play.State state);
			public static void parse_type (Gst.Message msg, out Gst.Play.Message type);
			public static void parse_video_dimensions_changed (Gst.Message msg, out uint width, out uint height);
			public static void parse_volume_changed (Gst.Message msg, out double volume);
			public static void parse_warning (Gst.Message msg, out GLib.Error error, out Gst.Structure? details);
		}
		[CCode (cheader_filename = "gst/play/play.h", cprefix = "GST_PLAY_THUMBNAIL_", has_type_id = false)]
		[GIR (name = "PlaySnapshotFormat")]
		[Version (since = "1.20")]
		public enum SnapshotFormat {
			RAW_NATIVE,
			[CCode (cname = "GST_PLAY_THUMBNAIL_RAW_xRGB")]
			RAW_XRGB,
			[CCode (cname = "GST_PLAY_THUMBNAIL_RAW_BGRx")]
			RAW_BGRX,
			JPG,
			PNG
		}
		[CCode (cheader_filename = "gst/play/play.h", cprefix = "GST_PLAY_STATE_", type_id = "gst_play_state_get_type ()")]
		[GIR (name = "PlayState")]
		[Version (since = "1.20")]
		public enum State {
			STOPPED,
			BUFFERING,
			PAUSED,
			PLAYING;
			public unowned string get_name ();
		}
		[CCode (cheader_filename = "gst/play/play.h", cprefix = "GST_PLAY_ERROR_", type_id = "gst_play_error_get_type ()")]
		[GIR (name = "PlayError")]
		[Version (since = "1.20")]
		public errordomain Error {
			FAILED;
			public unowned string get_name ();
			public static GLib.Quark quark ();
		}
		[CCode (cheader_filename = "gst/play/play.h", cname = "gst_play_color_balance_type_get_name")]
		[Version (replacement = "PlayColorBalanceType.get_name", since = "1.20")]
		public static unowned string play_color_balance_type_get_name (Gst.Play.ColorBalanceType type);
		[CCode (cheader_filename = "gst/play/play.h", cname = "gst_play_error_get_name")]
		[Version (replacement = "PlayError.get_name", since = "1.20")]
		public static unowned string play_error_get_name (Gst.Play.Error error);
		[CCode (cheader_filename = "gst/play/play.h", cname = "gst_play_error_quark")]
		[Version (replacement = "PlayError.quark", since = "1.20")]
		public static GLib.Quark play_error_quark ();
		[CCode (cheader_filename = "gst/play/play.h", cname = "gst_play_message_get_name")]
		[Version (replacement = "PlayMessage.get_name", since = "1.20")]
		public static unowned string play_message_get_name (Gst.Play.Message message_type);
		[CCode (cheader_filename = "gst/play/play.h", cname = "gst_play_message_parse_buffering_percent")]
		[Version (replacement = "PlayMessage.parse_buffering_percent", since = "1.20")]
		public static void play_message_parse_buffering_percent (Gst.Message msg, out uint percent);
		[CCode (cheader_filename = "gst/play/play.h", cname = "gst_play_message_parse_duration_updated")]
		[Version (replacement = "PlayMessage.parse_duration_updated", since = "1.20")]
		public static void play_message_parse_duration_updated (Gst.Message msg, out Gst.ClockTime duration);
		[CCode (cheader_filename = "gst/play/play.h", cname = "gst_play_message_parse_error")]
		[Version (replacement = "PlayMessage.parse_error", since = "1.20")]
		public static void play_message_parse_error (Gst.Message msg, out GLib.Error error, out Gst.Structure? details);
		[CCode (cheader_filename = "gst/play/play.h", cname = "gst_play_message_parse_media_info_updated")]
		[Version (replacement = "PlayMessage.parse_media_info_updated", since = "1.20")]
		public static void play_message_parse_media_info_updated (Gst.Message msg, out Gst.Play.MediaInfo info);
		[CCode (cheader_filename = "gst/play/play.h", cname = "gst_play_message_parse_muted_changed")]
		[Version (replacement = "PlayMessage.parse_muted_changed", since = "1.20")]
		public static void play_message_parse_muted_changed (Gst.Message msg, out bool muted);
		[CCode (cheader_filename = "gst/play/play.h", cname = "gst_play_message_parse_position_updated")]
		[Version (replacement = "PlayMessage.parse_position_updated", since = "1.20")]
		public static void play_message_parse_position_updated (Gst.Message msg, out Gst.ClockTime position);
		[CCode (cheader_filename = "gst/play/play.h", cname = "gst_play_message_parse_state_changed")]
		[Version (replacement = "PlayMessage.parse_state_changed", since = "1.20")]
		public static void play_message_parse_state_changed (Gst.Message msg, out Gst.Play.State state);
		[CCode (cheader_filename = "gst/play/play.h", cname = "gst_play_message_parse_type")]
		[Version (replacement = "PlayMessage.parse_type", since = "1.20")]
		public static void play_message_parse_type (Gst.Message msg, out Gst.Play.Message type);
		[CCode (cheader_filename = "gst/play/play.h", cname = "gst_play_message_parse_video_dimensions_changed")]
		[Version (replacement = "PlayMessage.parse_video_dimensions_changed", since = "1.20")]
		public static void play_message_parse_video_dimensions_changed (Gst.Message msg, out uint width, out uint height);
		[CCode (cheader_filename = "gst/play/play.h", cname = "gst_play_message_parse_volume_changed")]
		[Version (replacement = "PlayMessage.parse_volume_changed", since = "1.20")]
		public static void play_message_parse_volume_changed (Gst.Message msg, out double volume);
		[CCode (cheader_filename = "gst/play/play.h", cname = "gst_play_message_parse_warning")]
		[Version (replacement = "PlayMessage.parse_warning", since = "1.20")]
		public static void play_message_parse_warning (Gst.Message msg, out GLib.Error error, out Gst.Structure? details);
		[CCode (cheader_filename = "gst/play/play.h", cname = "gst_play_state_get_name")]
		[Version (replacement = "PlayState.get_name", since = "1.20")]
		public static unowned string play_state_get_name (Gst.Play.State state);
	}
}