1 /* gstreamer-rtp-0.10.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
5 [CCode (cheader_filename = "gst/rtp/gstbasertpaudiopayload.h")]
6 public class BaseRTPAudioPayload : Gst.BaseRTPPayload {
7 public Gst.ClockTime base_ts;
8 public int frame_duration;
10 public int sample_size;
11 public unowned Gst.Adapter get_adapter ();
12 public Gst.FlowReturn push (uchar data, uint payload_len, Gst.ClockTime timestamp);
13 public void set_frame_based ();
14 public void set_frame_options (int frame_duration, int frame_size);
15 public void set_sample_based ();
16 public void set_sample_options (int sample_size);
17 public void set_samplebits_options (int sample_size);
19 [CCode (cheader_filename = "gst/rtp/gstbasertpdepayload.h")]
20 public class BaseRTPDepayload : Gst.Element {
21 public uint clock_rate;
22 public bool need_newsegment;
23 public weak GLib.Queue queue;
24 public void* queuelock;
25 public weak Gst.Segment segment;
26 public weak Gst.Pad sinkpad;
27 public weak Gst.Pad srcpad;
28 public weak GLib.Thread thread;
29 public bool thread_running;
31 public virtual Gst.FlowReturn add_to_queue (Gst.Buffer @in);
33 public virtual bool packet_lost (Gst.Event event);
35 public virtual unowned Gst.Buffer process (Gst.Buffer @in);
36 public Gst.FlowReturn push (Gst.Buffer out_buf);
37 public Gst.FlowReturn push_ts (uint32 timestamp, Gst.Buffer out_buf);
39 public virtual bool set_caps (Gst.Caps caps);
41 public virtual void set_gst_timestamp (uint32 timestamp, Gst.Buffer buf);
43 public uint queue_delay { get; set; }
45 [CCode (cheader_filename = "gst/rtp/gstbasertpaudiopayload.h")]
46 public class BaseRTPPayload : Gst.Element {
47 public uint32 clock_rate;
48 public uint current_ssrc;
50 public weak string encoding_name;
51 public weak string media;
52 public weak Gst.Segment segment;
53 public weak GLib.Rand seq_rand;
54 public uint16 seqnum_base;
55 public weak Gst.Pad sinkpad;
56 public weak Gst.Pad srcpad;
57 public weak GLib.Rand ssrc_rand;
58 public uint32 ts_base;
59 public int32 ts_offset;
60 public weak GLib.Rand ts_rand;
62 public virtual unowned Gst.Caps get_caps (Gst.Pad pad);
64 public virtual Gst.FlowReturn handle_buffer (Gst.Buffer buffer);
66 public virtual bool handle_event (Gst.Pad pad, Gst.Event event);
67 [CCode (cname = "gst_basertppayload_is_filled")]
68 public bool is_filled (uint size, Gst.ClockTime duration);
69 [CCode (cname = "gst_basertppayload_push")]
70 public Gst.FlowReturn push (Gst.Buffer buffer);
72 public virtual bool set_caps (Gst.Caps caps);
73 [CCode (cname = "gst_basertppayload_set_options")]
74 public void set_options (string media, bool @dynamic, string encoding_name, uint32 clock_rate);
75 [CCode (cname = "gst_basertppayload_set_outcaps")]
76 public bool set_outcaps (string fieldname);
78 public int64 max_ptime { get; set; }
80 public int64 min_ptime { get; set; }
82 public uint mtu { get; set; }
84 public uint pt { get; set; }
86 public uint seqnum { get; }
88 public int seqnum_offset { get; set; }
90 public uint ssrc { get; set; }
92 public uint timestamp { get; }
94 public uint timestamp_offset { get; set; }
97 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
98 public class RTPPayloadInfo {
100 public uint clock_rate;
101 public weak string encoding_name;
102 public weak string encoding_parameters;
103 public weak string media;
104 public uchar payload_type;
105 public static unowned Gst.RTPPayloadInfo for_name (string media, string encoding_name);
106 public static unowned Gst.RTPPayloadInfo for_pt (uchar payload_type);
108 [CCode (type_id = "GST_TYPE_RTCP_PACKET", cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
109 public struct RTCPPacket {
110 public weak Gst.Buffer buffer;
114 public Gst.RTCPType type;
115 public uint16 length;
116 public uint item_offset;
117 public uint item_count;
118 public uint entry_offset;
119 public bool add_rb (uint32 ssrc, uchar fractionlost, int32 packetslost, uint32 exthighestseq, uint32 jitter, uint32 lsr, uint32 dlsr);
120 public bool bye_add_ssrc (uint32 ssrc);
121 public bool bye_add_ssrcs (uint32 ssrc, uint len);
122 public uint32 bye_get_nth_ssrc (uint nth);
123 public unowned string bye_get_reason ();
124 public uchar bye_get_reason_len ();
125 public uint bye_get_ssrc_count ();
126 public bool bye_set_reason (string reason);
127 public uchar get_count ();
128 public uint16 get_length ();
129 public bool get_padding ();
130 public void get_rb (uint nth, uint32 ssrc, uchar fractionlost, int32 packetslost, uint32 exthighestseq, uint32 jitter, uint32 lsr, uint32 dlsr);
131 public uint get_rb_count ();
132 public bool move_to_next ();
133 public bool remove ();
134 public uint32 rr_get_ssrc ();
135 public void rr_set_ssrc (uint32 ssrc);
136 public bool sdes_add_entry (Gst.RTCPSDESType type, uchar len, uchar data);
137 public bool sdes_add_item (uint32 ssrc);
138 public bool sdes_copy_entry (Gst.RTCPSDESType type, uchar len, uchar data);
139 public bool sdes_first_entry ();
140 public bool sdes_first_item ();
141 public bool sdes_get_entry (Gst.RTCPSDESType type, uchar len, uchar data);
142 public uint sdes_get_item_count ();
143 public uint32 sdes_get_ssrc ();
144 public bool sdes_next_entry ();
145 public bool sdes_next_item ();
146 public void set_rb (uint nth, uint32 ssrc, uchar fractionlost, int32 packetslost, uint32 exthighestseq, uint32 jitter, uint32 lsr, uint32 dlsr);
147 public void sr_get_sender_info (uint32 ssrc, uint64 ntptime, uint32 rtptime, uint32 packet_count, uint32 octet_count);
148 public void sr_set_sender_info (uint32 ssrc, uint64 ntptime, uint32 rtptime, uint32 packet_count, uint32 octet_count);
150 [CCode (cprefix = "GST_RTCP_SDES_", has_type_id = "0", cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
151 public enum RTCPSDESType {
163 [CCode (cprefix = "GST_RTCP_TYPE_", has_type_id = "0", cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
164 public enum RTCPType {
172 [CCode (cprefix = "GST_RTP_PAYLOAD_", has_type_id = "0", cheader_filename = "gst/rtp/gstbasertpaudiopayload.h")]
173 public enum RTPPayload {
201 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
202 public const int RTCP_MAX_BYE_SSRC_COUNT;
203 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
204 public const int RTCP_MAX_RB_COUNT;
205 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
206 public const int RTCP_MAX_SDES;
207 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
208 public const int RTCP_MAX_SDES_ITEM_COUNT;
209 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
210 public const int RTCP_VALID_MASK;
211 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
212 public const int RTCP_VALID_VALUE;
213 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
214 public const int RTCP_VERSION;
215 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
216 public const string RTP_PAYLOAD_1016_STRING;
217 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
218 public const string RTP_PAYLOAD_CELLB_STRING;
219 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
220 public const string RTP_PAYLOAD_CN_STRING;
221 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
222 public const string RTP_PAYLOAD_DVI4_11025_STRING;
223 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
224 public const string RTP_PAYLOAD_DVI4_16000_STRING;
225 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
226 public const string RTP_PAYLOAD_DVI4_22050_STRING;
227 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
228 public const string RTP_PAYLOAD_DVI4_8000_STRING;
229 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
230 public const string RTP_PAYLOAD_DYNAMIC_STRING;
231 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
232 public const string RTP_PAYLOAD_G721_STRING;
233 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
234 public const string RTP_PAYLOAD_G722_STRING;
235 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
236 public const int RTP_PAYLOAD_G723_53;
237 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
238 public const string RTP_PAYLOAD_G723_53_STRING;
239 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
240 public const int RTP_PAYLOAD_G723_63;
241 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
242 public const string RTP_PAYLOAD_G723_63_STRING;
243 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
244 public const string RTP_PAYLOAD_G723_STRING;
245 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
246 public const string RTP_PAYLOAD_G728_STRING;
247 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
248 public const string RTP_PAYLOAD_G729_STRING;
249 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
250 public const string RTP_PAYLOAD_GSM_STRING;
251 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
252 public const string RTP_PAYLOAD_H261_STRING;
253 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
254 public const string RTP_PAYLOAD_H263_STRING;
255 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
256 public const string RTP_PAYLOAD_JPEG_STRING;
257 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
258 public const string RTP_PAYLOAD_L16_MONO_STRING;
259 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
260 public const string RTP_PAYLOAD_L16_STEREO_STRING;
261 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
262 public const string RTP_PAYLOAD_LPC_STRING;
263 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
264 public const string RTP_PAYLOAD_MP2T_STRING;
265 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
266 public const string RTP_PAYLOAD_MPA_STRING;
267 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
268 public const string RTP_PAYLOAD_MPV_STRING;
269 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
270 public const string RTP_PAYLOAD_NV_STRING;
271 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
272 public const string RTP_PAYLOAD_PCMA_STRING;
273 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
274 public const string RTP_PAYLOAD_PCMU_STRING;
275 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
276 public const string RTP_PAYLOAD_QCELP_STRING;
277 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
278 public const int RTP_PAYLOAD_TS41;
279 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
280 public const string RTP_PAYLOAD_TS41_STRING;
281 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
282 public const int RTP_PAYLOAD_TS48;
283 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
284 public const string RTP_PAYLOAD_TS48_STRING;
285 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
286 public const int RTP_VERSION;
287 [CCode (cheader_filename = "gst/gst.h")]
288 public static bool rtcp_buffer_add_packet (Gst.Buffer buffer, Gst.RTCPType type, ref Gst.RTCPPacket packet);
289 [CCode (cheader_filename = "gst/gst.h")]
290 public static void rtcp_buffer_end (Gst.Buffer buffer);
291 [CCode (cheader_filename = "gst/gst.h")]
292 public static bool rtcp_buffer_get_first_packet (Gst.Buffer buffer, ref Gst.RTCPPacket packet);
293 [CCode (cheader_filename = "gst/gst.h")]
294 public static uint rtcp_buffer_get_packet_count (Gst.Buffer buffer);
295 [CCode (cheader_filename = "gst/gst.h")]
296 public static unowned Gst.Buffer rtcp_buffer_new (uint mtu);
297 [CCode (cheader_filename = "gst/gst.h")]
298 public static unowned Gst.Buffer rtcp_buffer_new_copy_data (void* data, uint len);
299 [CCode (cheader_filename = "gst/gst.h")]
300 public static unowned Gst.Buffer rtcp_buffer_new_take_data (void* data, uint len);
301 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
302 public static bool rtcp_buffer_validate (Gst.Buffer buffer);
303 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
304 public static bool rtcp_buffer_validate_data (uchar data, uint len);
305 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
306 public static uint64 rtcp_ntp_to_unix (uint64 ntptime);
307 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
308 public static uint64 rtcp_unix_to_ntp (uint64 unixtime);
309 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
310 public static void rtp_buffer_allocate_data (Gst.Buffer buffer, uint payload_len, uchar pad_len, uchar csrc_count);
311 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
312 public static uint rtp_buffer_calc_header_len (uchar csrc_count);
313 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
314 public static uint rtp_buffer_calc_packet_len (uint payload_len, uchar pad_len, uchar csrc_count);
315 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
316 public static uint rtp_buffer_calc_payload_len (uint packet_len, uchar pad_len, uchar csrc_count);
317 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
318 public static int rtp_buffer_compare_seqnum (uint16 seqnum1, uint16 seqnum2);
319 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
320 public static uint32 rtp_buffer_default_clock_rate (uchar payload_type);
321 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
322 public static uint64 rtp_buffer_ext_timestamp (uint64 exttimestamp, uint32 timestamp);
323 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
324 public static uint32 rtp_buffer_get_csrc (Gst.Buffer buffer, uchar idx);
325 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
326 public static uchar rtp_buffer_get_csrc_count (Gst.Buffer buffer);
327 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
328 public static bool rtp_buffer_get_extension (Gst.Buffer buffer);
329 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
330 public static bool rtp_buffer_get_extension_data (Gst.Buffer buffer, out uint16 bits, out void* data, out uint wordlen);
331 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
332 public static uint rtp_buffer_get_header_len (Gst.Buffer buffer);
333 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
334 public static bool rtp_buffer_get_marker (Gst.Buffer buffer);
335 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
336 public static uint rtp_buffer_get_packet_len (Gst.Buffer buffer);
337 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
338 public static bool rtp_buffer_get_padding (Gst.Buffer buffer);
339 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
340 public static void* rtp_buffer_get_payload (Gst.Buffer buffer);
341 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
342 public static unowned Gst.Buffer rtp_buffer_get_payload_buffer (Gst.Buffer buffer);
343 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
344 public static uint rtp_buffer_get_payload_len (Gst.Buffer buffer);
345 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
346 public static unowned Gst.Buffer rtp_buffer_get_payload_subbuffer (Gst.Buffer buffer, uint offset, uint len);
347 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
348 public static uchar rtp_buffer_get_payload_type (Gst.Buffer buffer);
349 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
350 public static uint16 rtp_buffer_get_seq (Gst.Buffer buffer);
351 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
352 public static uint32 rtp_buffer_get_ssrc (Gst.Buffer buffer);
353 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
354 public static uint32 rtp_buffer_get_timestamp (Gst.Buffer buffer);
355 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
356 public static uchar rtp_buffer_get_version (Gst.Buffer buffer);
357 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
358 public static unowned Gst.Buffer rtp_buffer_new_allocate (uint payload_len, uchar pad_len, uchar csrc_count);
359 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
360 public static unowned Gst.Buffer rtp_buffer_new_allocate_len (uint packet_len, uchar pad_len, uchar csrc_count);
361 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
362 public static unowned Gst.Buffer rtp_buffer_new_copy_data (void* data, uint len);
363 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
364 public static unowned Gst.Buffer rtp_buffer_new_take_data (void* data, uint len);
365 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
366 public static void rtp_buffer_pad_to (Gst.Buffer buffer, uint len);
367 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
368 public static void rtp_buffer_set_csrc (Gst.Buffer buffer, uchar idx, uint32 csrc);
369 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
370 public static void rtp_buffer_set_extension (Gst.Buffer buffer, bool extension);
371 [CCode (cheader_filename = "gst/gst.h")]
372 public static bool rtp_buffer_set_extension_data (Gst.Buffer buffer, uint16 bits, uint16 length);
373 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
374 public static void rtp_buffer_set_marker (Gst.Buffer buffer, bool marker);
375 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
376 public static void rtp_buffer_set_packet_len (Gst.Buffer buffer, uint len);
377 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
378 public static void rtp_buffer_set_padding (Gst.Buffer buffer, bool padding);
379 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
380 public static void rtp_buffer_set_payload_type (Gst.Buffer buffer, uchar payload_type);
381 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
382 public static void rtp_buffer_set_seq (Gst.Buffer buffer, uint16 seq);
383 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
384 public static void rtp_buffer_set_ssrc (Gst.Buffer buffer, uint32 ssrc);
385 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
386 public static void rtp_buffer_set_timestamp (Gst.Buffer buffer, uint32 timestamp);
387 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
388 public static void rtp_buffer_set_version (Gst.Buffer buffer, uchar version);
389 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
390 public static bool rtp_buffer_validate (Gst.Buffer buffer);
391 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
392 public static bool rtp_buffer_validate_data (uchar data, uint len);