1 /* gstreamer-rtp-0.10.vapi generated by lt-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/gstrtcpbuffer.h")]
98 public class RTCPPacket {
99 public weak Gst.Buffer buffer;
101 public uint entry_offset;
102 public uint item_count;
103 public uint item_offset;
104 public uint16 length;
107 public Gst.RTCPType type;
108 public bool add_rb (uint32 ssrc, uchar fractionlost, int32 packetslost, uint32 exthighestseq, uint32 jitter, uint32 lsr, uint32 dlsr);
109 public bool bye_add_ssrc (uint32 ssrc);
110 public bool bye_add_ssrcs (uint32 ssrc, uint len);
111 public uint32 bye_get_nth_ssrc (uint nth);
112 public unowned string bye_get_reason ();
113 public uchar bye_get_reason_len ();
114 public uint bye_get_ssrc_count ();
115 public bool bye_set_reason (string reason);
116 public uchar get_count ();
117 public uint16 get_length ();
118 public bool get_padding ();
119 public void get_rb (uint nth, uint32 ssrc, uchar fractionlost, int32 packetslost, uint32 exthighestseq, uint32 jitter, uint32 lsr, uint32 dlsr);
120 public uint get_rb_count ();
121 public bool move_to_next ();
122 public void remove ();
123 public uint32 rr_get_ssrc ();
124 public void rr_set_ssrc (uint32 ssrc);
125 public bool sdes_add_entry (Gst.RTCPSDESType type, uchar len, uchar data);
126 public bool sdes_add_item (uint32 ssrc);
127 public bool sdes_copy_entry (Gst.RTCPSDESType type, uchar len, uchar data);
128 public bool sdes_first_entry ();
129 public bool sdes_first_item ();
130 public bool sdes_get_entry (Gst.RTCPSDESType type, uchar len, uchar data);
131 public uint sdes_get_item_count ();
132 public uint32 sdes_get_ssrc ();
133 public bool sdes_next_entry ();
134 public bool sdes_next_item ();
135 public void set_rb (uint nth, uint32 ssrc, uchar fractionlost, int32 packetslost, uint32 exthighestseq, uint32 jitter, uint32 lsr, uint32 dlsr);
136 public void sr_get_sender_info (uint32 ssrc, uint64 ntptime, uint32 rtptime, uint32 packet_count, uint32 octet_count);
137 public void sr_set_sender_info (uint32 ssrc, uint64 ntptime, uint32 rtptime, uint32 packet_count, uint32 octet_count);
140 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
141 public class RTPPayloadInfo {
143 public uint clock_rate;
144 public weak string encoding_name;
145 public weak string encoding_parameters;
146 public weak string media;
147 public uchar payload_type;
148 public static unowned Gst.RTPPayloadInfo for_name (string media, string encoding_name);
149 public static unowned Gst.RTPPayloadInfo for_pt (uchar payload_type);
151 [CCode (cprefix = "GST_RTCP_SDES_", has_type_id = "0", cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
152 public enum RTCPSDESType {
164 [CCode (cprefix = "GST_RTCP_TYPE_", has_type_id = "0", cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
165 public enum RTCPType {
173 [CCode (cprefix = "GST_RTP_PAYLOAD_", has_type_id = "0", cheader_filename = "gst/rtp/gstbasertpaudiopayload.h")]
174 public enum RTPPayload {
202 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
203 public const int RTCP_MAX_BYE_SSRC_COUNT;
204 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
205 public const int RTCP_MAX_RB_COUNT;
206 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
207 public const int RTCP_MAX_SDES;
208 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
209 public const int RTCP_MAX_SDES_ITEM_COUNT;
210 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
211 public const int RTCP_VALID_MASK;
212 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
213 public const int RTCP_VALID_VALUE;
214 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
215 public const int RTCP_VERSION;
216 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
217 public const string RTP_PAYLOAD_1016_STRING;
218 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
219 public const string RTP_PAYLOAD_CELLB_STRING;
220 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
221 public const string RTP_PAYLOAD_CN_STRING;
222 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
223 public const string RTP_PAYLOAD_DVI4_11025_STRING;
224 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
225 public const string RTP_PAYLOAD_DVI4_16000_STRING;
226 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
227 public const string RTP_PAYLOAD_DVI4_22050_STRING;
228 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
229 public const string RTP_PAYLOAD_DVI4_8000_STRING;
230 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
231 public const string RTP_PAYLOAD_DYNAMIC_STRING;
232 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
233 public const string RTP_PAYLOAD_G721_STRING;
234 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
235 public const string RTP_PAYLOAD_G722_STRING;
236 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
237 public const int RTP_PAYLOAD_G723_53;
238 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
239 public const string RTP_PAYLOAD_G723_53_STRING;
240 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
241 public const int RTP_PAYLOAD_G723_63;
242 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
243 public const string RTP_PAYLOAD_G723_63_STRING;
244 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
245 public const string RTP_PAYLOAD_G723_STRING;
246 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
247 public const string RTP_PAYLOAD_G728_STRING;
248 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
249 public const string RTP_PAYLOAD_G729_STRING;
250 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
251 public const string RTP_PAYLOAD_GSM_STRING;
252 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
253 public const string RTP_PAYLOAD_H261_STRING;
254 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
255 public const string RTP_PAYLOAD_H263_STRING;
256 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
257 public const string RTP_PAYLOAD_JPEG_STRING;
258 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
259 public const string RTP_PAYLOAD_L16_MONO_STRING;
260 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
261 public const string RTP_PAYLOAD_L16_STEREO_STRING;
262 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
263 public const string RTP_PAYLOAD_LPC_STRING;
264 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
265 public const string RTP_PAYLOAD_MP2T_STRING;
266 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
267 public const string RTP_PAYLOAD_MPA_STRING;
268 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
269 public const string RTP_PAYLOAD_MPV_STRING;
270 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
271 public const string RTP_PAYLOAD_NV_STRING;
272 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
273 public const string RTP_PAYLOAD_PCMA_STRING;
274 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
275 public const string RTP_PAYLOAD_PCMU_STRING;
276 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
277 public const string RTP_PAYLOAD_QCELP_STRING;
278 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
279 public const int RTP_PAYLOAD_TS41;
280 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
281 public const string RTP_PAYLOAD_TS41_STRING;
282 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
283 public const int RTP_PAYLOAD_TS48;
284 [CCode (cheader_filename = "gst/rtp/gstrtppayloads.h")]
285 public const string RTP_PAYLOAD_TS48_STRING;
286 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
287 public const int RTP_VERSION;
288 [CCode (cheader_filename = "gst/gst.h")]
289 public static bool rtcp_buffer_add_packet (Gst.Buffer buffer, Gst.RTCPType type, Gst.RTCPPacket packet);
290 [CCode (cheader_filename = "gst/gst.h")]
291 public static void rtcp_buffer_end (Gst.Buffer buffer);
292 [CCode (cheader_filename = "gst/gst.h")]
293 public static bool rtcp_buffer_get_first_packet (Gst.Buffer buffer, Gst.RTCPPacket packet);
294 [CCode (cheader_filename = "gst/gst.h")]
295 public static uint rtcp_buffer_get_packet_count (Gst.Buffer buffer);
296 [CCode (cheader_filename = "gst/gst.h")]
297 public static unowned Gst.Buffer rtcp_buffer_new (uint mtu);
298 [CCode (cheader_filename = "gst/gst.h")]
299 public static unowned Gst.Buffer rtcp_buffer_new_copy_data (void* data, uint len);
300 [CCode (cheader_filename = "gst/gst.h")]
301 public static unowned Gst.Buffer rtcp_buffer_new_take_data (void* data, uint len);
302 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
303 public static bool rtcp_buffer_validate (Gst.Buffer buffer);
304 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
305 public static bool rtcp_buffer_validate_data (uchar data, uint len);
306 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
307 public static uint64 rtcp_ntp_to_unix (uint64 ntptime);
308 [CCode (cheader_filename = "gst/rtp/gstrtcpbuffer.h")]
309 public static uint64 rtcp_unix_to_ntp (uint64 unixtime);
310 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
311 public static void rtp_buffer_allocate_data (Gst.Buffer buffer, uint payload_len, uchar pad_len, uchar csrc_count);
312 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
313 public static uint rtp_buffer_calc_header_len (uchar csrc_count);
314 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
315 public static uint rtp_buffer_calc_packet_len (uint payload_len, uchar pad_len, uchar csrc_count);
316 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
317 public static uint rtp_buffer_calc_payload_len (uint packet_len, uchar pad_len, uchar csrc_count);
318 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
319 public static int rtp_buffer_compare_seqnum (uint16 seqnum1, uint16 seqnum2);
320 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
321 public static uint32 rtp_buffer_default_clock_rate (uchar payload_type);
322 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
323 public static uint64 rtp_buffer_ext_timestamp (uint64 exttimestamp, uint32 timestamp);
324 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
325 public static uint32 rtp_buffer_get_csrc (Gst.Buffer buffer, uchar idx);
326 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
327 public static uchar rtp_buffer_get_csrc_count (Gst.Buffer buffer);
328 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
329 public static bool rtp_buffer_get_extension (Gst.Buffer buffer);
330 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
331 public static bool rtp_buffer_get_extension_data (Gst.Buffer buffer, out uint16 bits, out void* data, out uint wordlen);
332 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
333 public static uint rtp_buffer_get_header_len (Gst.Buffer buffer);
334 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
335 public static bool rtp_buffer_get_marker (Gst.Buffer buffer);
336 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
337 public static uint rtp_buffer_get_packet_len (Gst.Buffer buffer);
338 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
339 public static bool rtp_buffer_get_padding (Gst.Buffer buffer);
340 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
341 public static void* rtp_buffer_get_payload (Gst.Buffer buffer);
342 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
343 public static unowned Gst.Buffer rtp_buffer_get_payload_buffer (Gst.Buffer buffer);
344 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
345 public static uint rtp_buffer_get_payload_len (Gst.Buffer buffer);
346 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
347 public static unowned Gst.Buffer rtp_buffer_get_payload_subbuffer (Gst.Buffer buffer, uint offset, uint len);
348 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
349 public static uchar rtp_buffer_get_payload_type (Gst.Buffer buffer);
350 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
351 public static uint16 rtp_buffer_get_seq (Gst.Buffer buffer);
352 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
353 public static uint32 rtp_buffer_get_ssrc (Gst.Buffer buffer);
354 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
355 public static uint32 rtp_buffer_get_timestamp (Gst.Buffer buffer);
356 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
357 public static uchar rtp_buffer_get_version (Gst.Buffer buffer);
358 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
359 public static unowned Gst.Buffer rtp_buffer_new_allocate (uint payload_len, uchar pad_len, uchar csrc_count);
360 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
361 public static unowned Gst.Buffer rtp_buffer_new_allocate_len (uint packet_len, uchar pad_len, uchar csrc_count);
362 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
363 public static unowned Gst.Buffer rtp_buffer_new_copy_data (void* data, uint len);
364 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
365 public static unowned Gst.Buffer rtp_buffer_new_take_data (void* data, uint len);
366 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
367 public static void rtp_buffer_pad_to (Gst.Buffer buffer, uint len);
368 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
369 public static void rtp_buffer_set_csrc (Gst.Buffer buffer, uchar idx, uint32 csrc);
370 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
371 public static void rtp_buffer_set_extension (Gst.Buffer buffer, bool extension);
372 [CCode (cheader_filename = "gst/gst.h")]
373 public static bool rtp_buffer_set_extension_data (Gst.Buffer buffer, uint16 bits, uint16 length);
374 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
375 public static void rtp_buffer_set_marker (Gst.Buffer buffer, bool marker);
376 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
377 public static void rtp_buffer_set_packet_len (Gst.Buffer buffer, uint len);
378 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
379 public static void rtp_buffer_set_padding (Gst.Buffer buffer, bool padding);
380 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
381 public static void rtp_buffer_set_payload_type (Gst.Buffer buffer, uchar payload_type);
382 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
383 public static void rtp_buffer_set_seq (Gst.Buffer buffer, uint16 seq);
384 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
385 public static void rtp_buffer_set_ssrc (Gst.Buffer buffer, uint32 ssrc);
386 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
387 public static void rtp_buffer_set_timestamp (Gst.Buffer buffer, uint32 timestamp);
388 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
389 public static void rtp_buffer_set_version (Gst.Buffer buffer, uchar version);
390 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
391 public static bool rtp_buffer_validate (Gst.Buffer buffer);
392 [CCode (cheader_filename = "gst/rtp/gstrtpbuffer.h")]
393 public static bool rtp_buffer_validate_data (uchar data, uint len);