gtk+-4.0: Update to 3.94.0+4e868584
[vala-gnome.git] / vapi / gstreamer-player-1.0.vapi
blob80a328671304f81336f3b9bbef0f370c327f3357
1 /* gstreamer-player-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", gir_namespace = "GstPlayer", gir_version = "1.0", lower_case_cprefix = "gst_")]
4 namespace Gst {
5         [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_get_type ()")]
6         public class Player : Gst.Object {
7                 [CCode (has_construct_function = false)]
8                 public Player (owned Gst.PlayerVideoRenderer? video_renderer, owned Gst.PlayerSignalDispatcher? signal_dispatcher);
9                 public static uint config_get_position_update_interval (Gst.Structure config);
10                 public static bool config_get_seek_accurate (Gst.Structure config);
11                 public static string config_get_user_agent (Gst.Structure config);
12                 public static void config_set_position_update_interval (Gst.Structure config, uint interval);
13                 [Version (since = "1.12")]
14                 public static void config_set_seek_accurate (Gst.Structure config, bool accurate);
15                 public static void config_set_user_agent (Gst.Structure config, string agent);
16                 public static unowned GLib.List<Gst.PlayerAudioInfo> get_audio_streams (Gst.PlayerMediaInfo info);
17                 public int64 get_audio_video_offset ();
18                 public double get_color_balance (Gst.PlayerColorBalanceType type);
19                 public Gst.Structure get_config ();
20                 public Gst.PlayerAudioInfo get_current_audio_track ();
21                 public unowned Gst.PlayerSubtitleInfo get_current_subtitle_track ();
22                 public Gst.PlayerVideoInfo get_current_video_track ();
23                 public string get_current_visualization ();
24                 public Gst.ClockTime get_duration ();
25                 public Gst.PlayerMediaInfo get_media_info ();
26                 [Version (since = "1.10")]
27                 public Gst.Video.MultiviewFlags get_multiview_flags ();
28                 [Version (since = "1.10")]
29                 public Gst.Video.MultiviewFramePacking get_multiview_mode ();
30                 public bool get_mute ();
31                 public Gst.Element get_pipeline ();
32                 public Gst.ClockTime get_position ();
33                 public double get_rate ();
34                 public static unowned GLib.List<Gst.PlayerSubtitleInfo> get_subtitle_streams (Gst.PlayerMediaInfo info);
35                 public string get_subtitle_uri ();
36                 public string get_uri ();
37                 public Gst.Sample get_video_snapshot (Gst.PlayerSnapshotFormat format, Gst.Structure? config);
38                 public static unowned GLib.List<Gst.PlayerVideoInfo> get_video_streams (Gst.PlayerMediaInfo info);
39                 public double get_volume ();
40                 public bool has_color_balance ();
41                 public void pause ();
42                 public void play ();
43                 public void seek (Gst.ClockTime position);
44                 public bool set_audio_track (int stream_index);
45                 public void set_audio_track_enabled (bool enabled);
46                 public void set_audio_video_offset (int64 offset);
47                 public void set_color_balance (Gst.PlayerColorBalanceType type, double value);
48                 public bool set_config (owned Gst.Structure config);
49                 [Version (since = "1.10")]
50                 public void set_multiview_flags (Gst.Video.MultiviewFlags flags);
51                 [Version (since = "1.10")]
52                 public void set_multiview_mode (Gst.Video.MultiviewFramePacking mode);
53                 public void set_mute (bool val);
54                 public void set_rate (double rate);
55                 public bool set_subtitle_track (int stream_index);
56                 public void set_subtitle_track_enabled (bool enabled);
57                 public void set_subtitle_uri (string uri);
58                 public void set_uri (string uri);
59                 public bool set_video_track (int stream_index);
60                 public void set_video_track_enabled (bool enabled);
61                 public bool set_visualization (string name);
62                 public void set_visualization_enabled (bool enabled);
63                 public void set_volume (double val);
64                 public void stop ();
65                 public static void visualizations_free (Gst.PlayerVisualization viss);
66                 [CCode (array_length = false, array_null_terminated = true)]
67                 public static Gst.PlayerVisualization[] visualizations_get ();
68                 public int64 audio_video_offset { get; set; }
69                 public Gst.PlayerAudioInfo current_audio_track { owned get; }
70                 public Gst.PlayerSubtitleInfo current_subtitle_track { get; }
71                 public Gst.PlayerVideoInfo current_video_track { owned get; }
72                 public uint64 duration { get; }
73                 public Gst.PlayerMediaInfo media_info { owned get; }
74                 public bool mute { get; set; }
75                 public Gst.Element pipeline { owned get; }
76                 public uint64 position { get; }
77                 public double rate { get; set; }
78                 [NoAccessorMethod]
79                 public Gst.PlayerSignalDispatcher signal_dispatcher { construct; }
80                 [NoAccessorMethod]
81                 public string suburi { owned get; set; }
82                 public string uri { owned get; set; }
83                 [NoAccessorMethod]
84                 public Gst.Video.MultiviewFlags video_multiview_flags { get; set; }
85                 [NoAccessorMethod]
86                 public Gst.Video.MultiviewFramePacking video_multiview_mode { get; set; }
87                 [NoAccessorMethod]
88                 public Gst.PlayerVideoRenderer video_renderer { construct; }
89                 public double volume { get; set; }
90                 public signal void buffering (int object);
91                 public signal void duration_changed (uint64 object);
92                 public signal void end_of_stream ();
93                 public signal void error (GLib.Error object);
94                 public signal void media_info_updated (Gst.PlayerMediaInfo object);
95                 public signal void mute_changed ();
96                 public signal void position_updated (uint64 object);
97                 public signal void seek_done (uint64 object);
98                 public signal void state_changed (Gst.PlayerState object);
99                 public signal void uri_loaded (string object);
100                 public signal void video_dimensions_changed (int object, int p0);
101                 public signal void volume_changed ();
102                 public signal void warning (GLib.Error object);
103         }
104         [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_audio_info_get_type ()")]
105         public class PlayerAudioInfo : Gst.PlayerStreamInfo {
106                 [CCode (has_construct_function = false)]
107                 protected PlayerAudioInfo ();
108                 public int get_bitrate ();
109                 public int get_channels ();
110                 public unowned string get_language ();
111                 public int get_max_bitrate ();
112                 public int get_sample_rate ();
113         }
114         [CCode (cheader_filename = "gst/player/player.h", lower_case_csuffix = "player_g_main_context_signal_dispatcher", type_id = "gst_player_g_main_context_signal_dispatcher_get_type ()")]
115         public class PlayerGMainContextSignalDispatcher : GLib.Object, Gst.PlayerSignalDispatcher {
116                 [CCode (has_construct_function = false, type = "GstPlayerSignalDispatcher*")]
117                 public PlayerGMainContextSignalDispatcher (GLib.MainContext? application_context);
118                 [NoAccessorMethod]
119                 public GLib.MainContext application_context { owned get; construct; }
120         }
121         [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_media_info_get_type ()")]
122         public class PlayerMediaInfo : GLib.Object {
123                 [CCode (has_construct_function = false)]
124                 protected PlayerMediaInfo ();
125                 public unowned GLib.List<Gst.PlayerAudioInfo> get_audio_streams ();
126                 public unowned string get_container_format ();
127                 public Gst.ClockTime get_duration ();
128                 public unowned Gst.Sample get_image_sample ();
129                 [Version (since = "1.12")]
130                 public uint get_number_of_audio_streams ();
131                 [Version (since = "1.12")]
132                 public uint get_number_of_streams ();
133                 [Version (since = "1.12")]
134                 public uint get_number_of_subtitle_streams ();
135                 [Version (since = "1.12")]
136                 public uint get_number_of_video_streams ();
137                 public unowned GLib.List<Gst.PlayerStreamInfo> get_stream_list ();
138                 public unowned GLib.List<Gst.PlayerSubtitleInfo> get_subtitle_streams ();
139                 public unowned Gst.TagList get_tags ();
140                 public unowned string get_title ();
141                 public unowned string get_uri ();
142                 public unowned GLib.List<Gst.PlayerVideoInfo> get_video_streams ();
143                 public bool is_live ();
144                 public bool is_seekable ();
145         }
146         [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_stream_info_get_type ()")]
147         public abstract class PlayerStreamInfo : GLib.Object {
148                 [CCode (has_construct_function = false)]
149                 protected PlayerStreamInfo ();
150                 public unowned Gst.Caps get_caps ();
151                 public unowned string get_codec ();
152                 public int get_index ();
153                 public unowned string get_stream_type ();
154                 public unowned Gst.TagList get_tags ();
155         }
156         [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_subtitle_info_get_type ()")]
157         public class PlayerSubtitleInfo : Gst.PlayerStreamInfo {
158                 [CCode (has_construct_function = false)]
159                 protected PlayerSubtitleInfo ();
160                 public unowned string get_language ();
161         }
162         [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_video_info_get_type ()")]
163         public class PlayerVideoInfo : Gst.PlayerStreamInfo {
164                 [CCode (has_construct_function = false)]
165                 protected PlayerVideoInfo ();
166                 public int get_bitrate ();
167                 public void get_framerate (out int fps_n, out int fps_d);
168                 public int get_height ();
169                 public int get_max_bitrate ();
170                 public void get_pixel_aspect_ratio (out uint par_n, out uint par_d);
171                 public int get_width ();
172         }
173         [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_video_overlay_video_renderer_get_type ()")]
174         public class PlayerVideoOverlayVideoRenderer : GLib.Object, Gst.PlayerVideoRenderer {
175                 [CCode (has_construct_function = false, type = "GstPlayerVideoRenderer*")]
176                 public PlayerVideoOverlayVideoRenderer (void* window_handle);
177                 public void expose ();
178                 public void get_render_rectangle (out int x, out int y, out int width, out int height);
179                 public void* get_window_handle ();
180                 public static Gst.PlayerVideoRenderer new_with_sink (void* window_handle, Gst.Element video_sink);
181                 public void set_render_rectangle (int x, int y, int width, int height);
182                 public void set_window_handle (void* window_handle);
183                 [NoAccessorMethod]
184                 public Gst.Element video_sink { owned get; set; }
185                 public void* window_handle { get; set construct; }
186         }
187         [CCode (cheader_filename = "gst/player/player.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gst_player_visualization_get_type ()")]
188         [Compact]
189         public class PlayerVisualization {
190                 public weak string description;
191                 public weak string name;
192                 public Gst.PlayerVisualization copy ();
193                 public void free ();
194         }
195         [CCode (cheader_filename = "gst/player/player.h", type_cname = "GstPlayerSignalDispatcherInterface", type_id = "gst_player_signal_dispatcher_get_type ()")]
196         public interface PlayerSignalDispatcher : GLib.Object {
197                 [NoWrapper]
198                 public abstract void dispatch (Gst.Player player, owned Gst.PlayerSignalDispatcherFunc emitter);
199         }
200         [CCode (cheader_filename = "gst/player/player.h", type_cname = "GstPlayerVideoRendererInterface", type_id = "gst_player_video_renderer_get_type ()")]
201         public interface PlayerVideoRenderer : GLib.Object {
202                 [NoWrapper]
203                 public abstract unowned Gst.Element create_video_sink (Gst.Player player);
204         }
205         [CCode (cheader_filename = "gst/player/player.h", cprefix = "GST_PLAYER_COLOR_BALANCE_", type_id = "gst_player_color_balance_type_get_type ()")]
206         public enum PlayerColorBalanceType {
207                 HUE,
208                 BRIGHTNESS,
209                 SATURATION,
210                 CONTRAST;
211                 public unowned string get_name ();
212         }
213         [CCode (cheader_filename = "gst/player/player.h", cprefix = "GST_PLAYER_THUMBNAIL_", has_type_id = false)]
214         public enum PlayerSnapshotFormat {
215                 RAW_NATIVE,
216                 [CCode (cname = "GST_PLAYER_THUMBNAIL_RAW_xRGB")]
217                 RAW_XRGB,
218                 [CCode (cname = "GST_PLAYER_THUMBNAIL_RAW_BGRx")]
219                 RAW_BGRX,
220                 JPG,
221                 PNG
222         }
223         [CCode (cheader_filename = "gst/player/player.h", cprefix = "GST_PLAYER_STATE_", type_id = "gst_player_state_get_type ()")]
224         public enum PlayerState {
225                 STOPPED,
226                 BUFFERING,
227                 PAUSED,
228                 PLAYING;
229                 public unowned string get_name ();
230         }
231         [CCode (cheader_filename = "gst/player/player.h", cprefix = "GST_PLAYER_ERROR_")]
232         public errordomain PlayerError {
233                 FAILED;
234                 public unowned string get_name ();
235                 public static GLib.Quark quark ();
236         }
237         [CCode (cheader_filename = "gst/player/player.h", has_target = false)]
238         public delegate void PlayerSignalDispatcherFunc (void* data);