1 /* gstreamer-app-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", gir_namespace = "GstApp", gir_version = "1.0", lower_case_cprefix = "gst_")]
6 [CCode (cheader_filename = "gst/app/app.h", type_id = "gst_app_sink_get_type ()")]
7 [GIR (name = "AppSink")]
8 public class Sink : Gst.Base.Sink, Gst.URIHandler {
9 [CCode (has_construct_function = false)]
11 [Version (since = "1.12")]
12 public bool get_buffer_list_support ();
13 public Gst.Caps get_caps ();
14 public bool get_drop ();
15 public bool get_emit_signals ();
16 public uint get_max_buffers ();
17 public bool get_wait_on_eos ();
18 public bool is_eos ();
19 [Version (since = "1.12")]
20 public void set_buffer_list_support (bool enable_lists);
21 public void set_caps (Gst.Caps caps);
22 public void set_drop (bool drop);
23 public void set_emit_signals (bool emit);
24 public void set_max_buffers (uint max);
25 public void set_wait_on_eos (bool wait);
27 public bool buffer_list { get; set; }
28 public Gst.Caps caps { owned get; set; }
29 public bool drop { get; set; }
30 public bool emit_signals { get; set; }
32 public virtual bool eos { get; }
33 public uint max_buffers { get; set; }
34 public bool wait_on_eos { get; set; }
35 public virtual signal Gst.FlowReturn new_preroll ();
36 public virtual signal Gst.FlowReturn new_sample ();
38 public virtual signal Gst.Sample pull_preroll ();
40 public virtual signal Gst.Sample pull_sample ();
42 [Version (since = "1.10")]
43 public virtual signal Gst.Sample try_pull_preroll (uint64 timeout);
45 [Version (since = "1.10")]
46 public virtual signal Gst.Sample try_pull_sample (uint64 timeout);
48 [CCode (cheader_filename = "gst/app/app.h", type_id = "gst_app_src_get_type ()")]
49 [GIR (name = "AppSrc")]
50 public class Src : Gst.Base.Src, Gst.URIHandler {
51 [CCode (has_construct_function = false)]
53 public Gst.Caps get_caps ();
54 [Version (since = "1.2")]
55 public uint64 get_current_level_bytes ();
56 [Version (since = "1.10")]
57 public Gst.ClockTime get_duration ();
58 public bool get_emit_signals ();
59 public void get_latency (out uint64 min, out uint64 max);
60 public uint64 get_max_bytes ();
61 public int64 get_size ();
62 public Gst.App.StreamType get_stream_type ();
63 public void set_caps (Gst.Caps caps);
64 [Version (since = "1.10")]
65 public void set_duration (Gst.ClockTime duration);
66 public void set_emit_signals (bool emit);
67 public void set_latency (uint64 min, uint64 max);
68 public void set_max_bytes (uint64 max);
69 public void set_size (int64 size);
70 public void set_stream_type (Gst.App.StreamType type);
72 public bool block { get; set; }
73 public Gst.Caps caps { owned get; set; }
74 public uint64 current_level_bytes { get; }
75 public uint64 duration { get; set; }
76 public bool emit_signals { get; set; }
78 public Gst.Format format { get; set; }
80 public bool is_live { get; set; }
81 public uint64 max_bytes { get; set; }
83 public int64 max_latency { get; set; }
85 public int64 min_latency { get; set; }
87 public uint min_percent { get; set; }
88 public int64 size { get; set; }
89 public Gst.App.StreamType stream_type { get; set; }
91 public virtual signal Gst.FlowReturn end_of_stream ();
92 public virtual signal void enough_data ();
93 public virtual signal void need_data (uint length);
95 public virtual signal Gst.FlowReturn push_buffer (Gst.Buffer buffer);
97 [Version (since = "1.14")]
98 public virtual signal Gst.FlowReturn push_buffer_list (Gst.BufferList buffer_list);
100 [Version (since = "1.6")]
101 public virtual signal Gst.FlowReturn push_sample (Gst.Sample sample);
102 public virtual signal bool seek_data (uint64 offset);
104 [CCode (cheader_filename = "gst/app/app.h", cprefix = "GST_APP_STREAM_TYPE_", type_id = "gst_app_stream_type_get_type ()")]
105 [GIR (name = "AppStreamType")]
106 public enum StreamType {