Release 0.36.14
[vala-gnome.git] / vapi / gstreamer-rtp-1.0.vapi
blobd630aa7fbe9478d6f2be301e3eabb2c884476fce
1 /* gstreamer-rtp-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", gir_namespace = "GstRtp", gir_version = "1.0", lower_case_cprefix = "gst_")]
4 namespace Gst {
5         namespace RTP {
6                 [CCode (cheader_filename = "gst/rtp/rtp.h", type_id = "gst_rtp_base_audio_payload_get_type ()")]
7                 [GIR (name = "RTPBaseAudioPayload")]
8                 public class BaseAudioPayload : Gst.RTP.BasePayload {
9                         public Gst.ClockTime base_ts;
10                         public int frame_duration;
11                         public int frame_size;
12                         public int sample_size;
13                         [CCode (has_construct_function = false)]
14                         protected BaseAudioPayload ();
15                         public Gst.FlowReturn flush (uint payload_len, Gst.ClockTime timestamp);
16                         public Gst.Base.Adapter get_adapter ();
17                         public Gst.FlowReturn push ([CCode (array_length_cname = "payload_len", array_length_pos = 1.5, array_length_type = "guint")] uint8[] data, Gst.ClockTime timestamp);
18                         public void set_frame_based ();
19                         public void set_frame_options (int frame_duration, int frame_size);
20                         public void set_sample_based ();
21                         public void set_sample_options (int sample_size);
22                         public void set_samplebits_options (int sample_size);
23                         [NoAccessorMethod]
24                         public bool buffer_list { get; set; }
25                 }
26                 [CCode (cheader_filename = "gst/rtp/rtp.h", type_id = "gst_rtp_base_depayload_get_type ()")]
27                 [GIR (name = "RTPBaseDepayload")]
28                 public abstract class BaseDepayload : Gst.Element {
29                         public uint clock_rate;
30                         public bool need_newsegment;
31                         public weak Gst.Segment segment;
32                         public weak Gst.Pad sinkpad;
33                         public weak Gst.Pad srcpad;
34                         [CCode (has_construct_function = false)]
35                         protected BaseDepayload ();
36                         [NoWrapper]
37                         public virtual bool handle_event (Gst.Event event);
38                         [NoWrapper]
39                         public virtual bool packet_lost (Gst.Event event);
40                         [NoWrapper]
41                         public virtual Gst.Buffer process (Gst.Buffer @in);
42                         [NoWrapper]
43                         public virtual Gst.Buffer process_rtp_packet (Gst.RTP.Buffer rtp_buffer);
44                         public Gst.FlowReturn push (Gst.Buffer out_buf);
45                         public Gst.FlowReturn push_list (Gst.BufferList out_list);
46                         [NoWrapper]
47                         public virtual bool set_caps (Gst.Caps caps);
48                         [NoAccessorMethod]
49                         public Gst.Structure stats { owned get; }
50                 }
51                 [CCode (cheader_filename = "gst/rtp/rtp.h", type_id = "gst_rtp_base_payload_get_type ()")]
52                 [GIR (name = "RTPBasePayload")]
53                 public abstract class BasePayload : Gst.Element {
54                         [CCode (has_construct_function = false)]
55                         protected BasePayload ();
56                         [NoWrapper]
57                         public virtual Gst.Caps get_caps (Gst.Pad pad, Gst.Caps filter);
58                         [NoWrapper]
59                         public virtual Gst.FlowReturn handle_buffer (Gst.Buffer buffer);
60                         public bool is_filled (uint size, Gst.ClockTime duration);
61                         public Gst.FlowReturn push (Gst.Buffer buffer);
62                         public Gst.FlowReturn push_list (Gst.BufferList list);
63                         [NoWrapper]
64                         public virtual bool query (Gst.Pad pad, Gst.Query query);
65                         [NoWrapper]
66                         public virtual bool set_caps (Gst.Caps caps);
67                         public void set_options (string media, bool @dynamic, string encoding_name, uint32 clock_rate);
68                         [NoWrapper]
69                         public virtual bool sink_event (Gst.Event event);
70                         [NoWrapper]
71                         public virtual bool src_event (Gst.Event event);
72                         [NoAccessorMethod]
73                         public int64 max_ptime { get; set; }
74                         [NoAccessorMethod]
75                         public int64 min_ptime { get; set; }
76                         [NoAccessorMethod]
77                         public uint mtu { get; set; }
78                         [NoAccessorMethod]
79                         public bool perfect_rtptime { get; set; }
80                         [NoAccessorMethod]
81                         public uint pt { get; set; }
82                         [NoAccessorMethod]
83                         public int64 ptime_multiple { get; set; }
84                         [NoAccessorMethod]
85                         public uint seqnum { get; }
86                         [NoAccessorMethod]
87                         public int seqnum_offset { get; set; }
88                         [NoAccessorMethod]
89                         public uint ssrc { get; set; }
90                         [NoAccessorMethod]
91                         public Gst.Structure stats { owned get; }
92                         [NoAccessorMethod]
93                         public uint timestamp { get; }
94                         [NoAccessorMethod]
95                         public uint timestamp_offset { get; set; }
96                 }
97                 [CCode (cheader_filename = "gst/rtp/rtp.h", has_type_id = false)]
98                 [Compact]
99                 [GIR (name = "RTPBuffer")]
100                 public class Buffer : Gst.Buffer {
101                         [CCode (array_length = false)]
102                         public weak void* data[4];
103                         [CCode (array_length = false)]
104                         public Gst.MapInfo map[4];
105                         [CCode (array_length = false)]
106                         public weak size_t size[4];
107                         public uint state;
108                         public bool add_extension_onebyte_header (uint8 id, [CCode (array_length_cname = "size", array_length_pos = 2.1, array_length_type = "guint")] uint8[] data);
109                         public bool add_extension_twobytes_header (uint8 appbits, uint8 id, [CCode (array_length_cname = "size", array_length_pos = 3.1, array_length_type = "guint")] uint8[] data);
110                         public uint32 get_csrc (uint8 idx);
111                         public uint8 get_csrc_count ();
112                         public bool get_extension ();
113                         [Version (since = "1.2")]
114                         public GLib.Bytes get_extension_bytes (out uint16 bits);
115                         public bool get_extension_data (out uint16 bits, [CCode (array_length = false)] out unowned uint8[] data, out uint wordlen);
116                         public bool get_extension_onebyte_header (uint8 id, uint nth, [CCode (array_length_cname = "size", array_length_pos = 3.1, array_length_type = "guint")] out unowned uint8[] data);
117                         public bool get_extension_twobytes_header (out uint8 appbits, uint8 id, uint nth, [CCode (array_length_cname = "size", array_length_pos = 4.1, array_length_type = "guint")] out unowned uint8[] data);
118                         public uint get_header_len ();
119                         public bool get_marker ();
120                         public uint get_packet_len ();
121                         public bool get_padding ();
122                         [CCode (array_length = false)]
123                         public unowned uint8[] get_payload ();
124                         public Gst.Buffer get_payload_buffer ();
125                         [Version (since = "1.2")]
126                         public GLib.Bytes get_payload_bytes ();
127                         public uint get_payload_len ();
128                         public Gst.Buffer get_payload_subbuffer (uint offset, uint len);
129                         public uint8 get_payload_type ();
130                         public uint16 get_seq ();
131                         public uint32 get_ssrc ();
132                         public uint32 get_timestamp ();
133                         public uint8 get_version ();
134                         public void pad_to (uint len);
135                         public void set_csrc (uint8 idx, uint32 csrc);
136                         public void set_extension (bool extension);
137                         public bool set_extension_data (uint16 bits, uint16 length);
138                         public void set_marker (bool marker);
139                         public void set_packet_len (uint len);
140                         public void set_padding (bool padding);
141                         public void set_payload_type (uint8 payload_type);
142                         public void set_seq (uint16 seq);
143                         public void set_ssrc (uint32 ssrc);
144                         public void set_timestamp (uint32 timestamp);
145                         public void set_version (uint8 version);
146                         public void unmap ();
147                 }
148                 [CCode (cheader_filename = "gst/rtp/rtp.h", has_type_id = false)]
149                 [GIR (name = "RTPPayloadInfo")]
150                 public struct PayloadInfo {
151                         public uint8 payload_type;
152                         public weak string media;
153                         public weak string encoding_name;
154                         public uint clock_rate;
155                         public weak string encoding_parameters;
156                         public uint bitrate;
157                 }
158                 [CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTP_BUFFER_FLAG_", type_id = "gst_rtp_buffer_flags_get_type ()")]
159                 [Flags]
160                 [GIR (name = "RTPBufferFlags")]
161                 [Version (since = "1.10")]
162                 public enum BufferFlags {
163                         RETRANSMISSION,
164                         LAST
165                 }
166                 [CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTP_BUFFER_MAP_FLAG_", type_id = "gst_rtp_buffer_map_flags_get_type ()")]
167                 [Flags]
168                 [GIR (name = "RTPBufferMapFlags")]
169                 [Version (since = "1.6.1")]
170                 public enum BufferMapFlags {
171                         SKIP_PADDING,
172                         LAST
173                 }
174                 [CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTP_PAYLOAD_", type_id = "gst_rtp_payload_get_type ()")]
175                 [GIR (name = "RTPPayload")]
176                 public enum Payload {
177                         PCMU,
178                         @1016,
179                         G721,
180                         GSM,
181                         G723,
182                         DVI4_8000,
183                         DVI4_16000,
184                         LPC,
185                         PCMA,
186                         G722,
187                         L16_STEREO,
188                         L16_MONO,
189                         QCELP,
190                         CN,
191                         MPA,
192                         G728,
193                         DVI4_11025,
194                         DVI4_22050,
195                         G729,
196                         CELLB,
197                         JPEG,
198                         NV,
199                         H261,
200                         MPV,
201                         MP2T,
202                         H263;
203                         public const string @1016_STRING;
204                         public const string CELLB_STRING;
205                         public const string CN_STRING;
206                         public const string DVI4_11025_STRING;
207                         public const string DVI4_16000_STRING;
208                         public const string DVI4_22050_STRING;
209                         public const string DVI4_8000_STRING;
210                         public const string DYNAMIC_STRING;
211                         public const string G721_STRING;
212                         public const string G722_STRING;
213                         public const int G723_53;
214                         public const string G723_53_STRING;
215                         public const int G723_63;
216                         public const string G723_63_STRING;
217                         public const string G723_STRING;
218                         public const string G728_STRING;
219                         public const string G729_STRING;
220                         public const string GSM_STRING;
221                         public const string H261_STRING;
222                         public const string H263_STRING;
223                         public const string JPEG_STRING;
224                         public const string L16_MONO_STRING;
225                         public const string L16_STEREO_STRING;
226                         public const string LPC_STRING;
227                         public const string MP2T_STRING;
228                         public const string MPA_STRING;
229                         public const string MPV_STRING;
230                         public const string NV_STRING;
231                         public const string PCMA_STRING;
232                         public const string PCMU_STRING;
233                         public const string QCELP_STRING;
234                         public const int TS41;
235                         public const string TS41_STRING;
236                         public const int TS48;
237                         public const string TS48_STRING;
238                 }
239                 [CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTP_PROFILE_", type_id = "gst_rtp_profile_get_type ()")]
240                 [GIR (name = "RTPProfile")]
241                 [Version (since = "1.6")]
242                 public enum Profile {
243                         UNKNOWN,
244                         AVP,
245                         SAVP,
246                         AVPF,
247                         SAVPF
248                 }
249                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_BASE")]
250                 public const string HDREXT_BASE;
251                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_NTP_56")]
252                 public const string HDREXT_NTP_56;
253                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_NTP_56_SIZE")]
254                 public const int HDREXT_NTP_56_SIZE;
255                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_NTP_64")]
256                 public const string HDREXT_NTP_64;
257                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_NTP_64_SIZE")]
258                 public const int HDREXT_NTP_64_SIZE;
259                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_VERSION")]
260                 public const int VERSION;
261                 [CCode (cheader_filename = "gst/rtp/rtp.h")]
262                 public static void buffer_allocate_data (Gst.Buffer buffer, uint payload_len, uint8 pad_len, uint8 csrc_count);
263                 [CCode (cheader_filename = "gst/rtp/rtp.h")]
264                 public static uint buffer_calc_header_len (uint8 csrc_count);
265                 [CCode (cheader_filename = "gst/rtp/rtp.h")]
266                 public static uint buffer_calc_packet_len (uint payload_len, uint8 pad_len, uint8 csrc_count);
267                 [CCode (cheader_filename = "gst/rtp/rtp.h")]
268                 public static uint buffer_calc_payload_len (uint packet_len, uint8 pad_len, uint8 csrc_count);
269                 [CCode (cheader_filename = "gst/rtp/rtp.h")]
270                 public static int buffer_compare_seqnum (uint16 seqnum1, uint16 seqnum2);
271                 [CCode (cheader_filename = "gst/rtp/rtp.h")]
272                 public static uint32 buffer_default_clock_rate (uint8 payload_type);
273                 [CCode (cheader_filename = "gst/rtp/rtp.h")]
274                 public static uint64 buffer_ext_timestamp (ref uint64 exttimestamp, uint32 timestamp);
275                 [CCode (cheader_filename = "gst/rtp/rtp.h")]
276                 public static bool buffer_map (Gst.Buffer buffer, Gst.MapFlags flags, out unowned Gst.RTP.Buffer rtp);
277                 [CCode (cheader_filename = "gst/rtp/rtp.h")]
278                 public static Gst.Buffer buffer_new_allocate (uint payload_len, uint8 pad_len, uint8 csrc_count);
279                 [CCode (cheader_filename = "gst/rtp/rtp.h")]
280                 public static Gst.Buffer buffer_new_allocate_len (uint packet_len, uint8 pad_len, uint8 csrc_count);
281                 [CCode (cheader_filename = "gst/rtp/rtp.h")]
282                 public static Gst.Buffer buffer_new_copy_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] data);
283                 [CCode (cheader_filename = "gst/rtp/rtp.h")]
284                 public static Gst.Buffer buffer_new_take_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "gsize")] owned uint8[] data);
285                 [CCode (cheader_filename = "gst/rtp/rtp.h")]
286                 public static bool hdrext_get_ntp_56 ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "guint")] uint8[] data, out uint64 ntptime);
287                 [CCode (cheader_filename = "gst/rtp/rtp.h")]
288                 public static bool hdrext_get_ntp_64 ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "guint")] uint8[] data, out uint64 ntptime);
289                 [CCode (cheader_filename = "gst/rtp/rtp.h")]
290                 public static bool hdrext_set_ntp_56 (void* data, uint size, uint64 ntptime);
291                 [CCode (cheader_filename = "gst/rtp/rtp.h")]
292                 public static bool hdrext_set_ntp_64 (void* data, uint size, uint64 ntptime);
293                 [CCode (cheader_filename = "gst/rtp/rtp.h")]
294                 public static unowned Gst.RTP.PayloadInfo? payload_info_for_name (string media, string encoding_name);
295                 [CCode (cheader_filename = "gst/rtp/rtp.h")]
296                 public static unowned Gst.RTP.PayloadInfo? payload_info_for_pt (uint8 payload_type);
297         }
298         namespace RTPC {
299                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GstRTCPBuffer", has_type_id = false)]
300                 [Compact]
301                 [GIR (name = "RTCPBuffer")]
302                 public class Buffer : Gst.Buffer {
303                         public Gst.MapInfo map;
304                         [CCode (cname = "gst_rtcp_buffer_add_packet")]
305                         public bool add_packet (Gst.RTPC.Type type, Gst.RTPC.Packet packet);
306                         [CCode (cname = "gst_rtcp_buffer_get_first_packet")]
307                         public bool get_first_packet (Gst.RTPC.Packet packet);
308                         [CCode (cname = "gst_rtcp_buffer_get_packet_count")]
309                         public uint get_packet_count ();
310                         [CCode (cname = "gst_rtcp_buffer_unmap")]
311                         public bool unmap ();
312                 }
313                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GstRTCPPacket", has_type_id = false)]
314                 [GIR (name = "RTCPPacket")]
315                 public struct Packet {
316                         public weak Gst.RTPC.Buffer rtcp;
317                         public uint offset;
318                         [CCode (cname = "gst_rtcp_packet_add_profile_specific_ext")]
319                         public bool add_profile_specific_ext ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
320                         [CCode (cname = "gst_rtcp_packet_add_rb")]
321                         public bool add_rb (uint32 ssrc, uint8 fractionlost, int32 packetslost, uint32 exthighestseq, uint32 jitter, uint32 lsr, uint32 dlsr);
322                         [CCode (cname = "gst_rtcp_packet_app_get_data")]
323                         [Version (since = "1.10")]
324                         public uint8 app_get_data ();
325                         [CCode (cname = "gst_rtcp_packet_app_get_data_length")]
326                         [Version (since = "1.10")]
327                         public uint16 app_get_data_length ();
328                         [CCode (cname = "gst_rtcp_packet_app_get_name")]
329                         [Version (since = "1.10")]
330                         public unowned string app_get_name ();
331                         [CCode (cname = "gst_rtcp_packet_app_get_ssrc")]
332                         [Version (since = "1.10")]
333                         public uint32 app_get_ssrc ();
334                         [CCode (cname = "gst_rtcp_packet_app_get_subtype")]
335                         [Version (since = "1.10")]
336                         public uint8 app_get_subtype ();
337                         [CCode (cname = "gst_rtcp_packet_app_set_data_length")]
338                         [Version (since = "1.10")]
339                         public bool app_set_data_length (uint16 wordlen);
340                         [CCode (cname = "gst_rtcp_packet_app_set_name")]
341                         [Version (since = "1.10")]
342                         public void app_set_name (string name);
343                         [CCode (cname = "gst_rtcp_packet_app_set_ssrc")]
344                         [Version (since = "1.10")]
345                         public void app_set_ssrc (uint32 ssrc);
346                         [CCode (cname = "gst_rtcp_packet_app_set_subtype")]
347                         [Version (since = "1.10")]
348                         public void app_set_subtype (uint8 subtype);
349                         [CCode (cname = "gst_rtcp_packet_bye_add_ssrc")]
350                         public bool bye_add_ssrc (uint32 ssrc);
351                         [CCode (cname = "gst_rtcp_packet_bye_add_ssrcs")]
352                         public bool bye_add_ssrcs ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint32[] ssrc);
353                         [CCode (cname = "gst_rtcp_packet_bye_get_nth_ssrc")]
354                         public uint32 bye_get_nth_ssrc (uint nth);
355                         [CCode (cname = "gst_rtcp_packet_bye_get_reason")]
356                         public string bye_get_reason ();
357                         [CCode (cname = "gst_rtcp_packet_bye_get_reason_len")]
358                         public uint8 bye_get_reason_len ();
359                         [CCode (cname = "gst_rtcp_packet_bye_get_ssrc_count")]
360                         public uint bye_get_ssrc_count ();
361                         [CCode (cname = "gst_rtcp_packet_bye_set_reason")]
362                         public bool bye_set_reason (string reason);
363                         [CCode (cname = "gst_rtcp_packet_copy_profile_specific_ext")]
364                         public bool copy_profile_specific_ext ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] out uint8[] data);
365                         [CCode (cname = "gst_rtcp_packet_fb_get_fci")]
366                         public uint8 fb_get_fci ();
367                         [CCode (cname = "gst_rtcp_packet_fb_get_fci_length")]
368                         public uint16 fb_get_fci_length ();
369                         [CCode (cname = "gst_rtcp_packet_fb_get_media_ssrc")]
370                         public uint32 fb_get_media_ssrc ();
371                         [CCode (cname = "gst_rtcp_packet_fb_get_sender_ssrc")]
372                         public uint32 fb_get_sender_ssrc ();
373                         [CCode (cname = "gst_rtcp_packet_fb_get_type")]
374                         public Gst.RTPC.FBType fb_get_type ();
375                         [CCode (cname = "gst_rtcp_packet_fb_set_fci_length")]
376                         public bool fb_set_fci_length (uint16 wordlen);
377                         [CCode (cname = "gst_rtcp_packet_fb_set_media_ssrc")]
378                         public void fb_set_media_ssrc (uint32 ssrc);
379                         [CCode (cname = "gst_rtcp_packet_fb_set_sender_ssrc")]
380                         public void fb_set_sender_ssrc (uint32 ssrc);
381                         [CCode (cname = "gst_rtcp_packet_fb_set_type")]
382                         public void fb_set_type (Gst.RTPC.FBType type);
383                         [CCode (cname = "gst_rtcp_packet_get_count")]
384                         public uint8 get_count ();
385                         [CCode (cname = "gst_rtcp_packet_get_length")]
386                         public uint16 get_length ();
387                         [CCode (cname = "gst_rtcp_packet_get_padding")]
388                         public bool get_padding ();
389                         [CCode (cname = "gst_rtcp_packet_get_profile_specific_ext")]
390                         public bool get_profile_specific_ext ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] out unowned uint8[] data);
391                         [CCode (cname = "gst_rtcp_packet_get_profile_specific_ext_length")]
392                         public uint16 get_profile_specific_ext_length ();
393                         [CCode (cname = "gst_rtcp_packet_get_rb")]
394                         public void get_rb (uint nth, out uint32 ssrc, out uint8 fractionlost, out int32 packetslost, out uint32 exthighestseq, out uint32 jitter, out uint32 lsr, out uint32 dlsr);
395                         [CCode (cname = "gst_rtcp_packet_get_rb_count")]
396                         public uint get_rb_count ();
397                         [CCode (cname = "gst_rtcp_packet_get_type")]
398                         public Gst.RTPC.Type get_type ();
399                         [CCode (cname = "gst_rtcp_packet_move_to_next")]
400                         public bool move_to_next ();
401                         [CCode (cname = "gst_rtcp_packet_remove")]
402                         public bool remove ();
403                         [CCode (cname = "gst_rtcp_packet_rr_get_ssrc")]
404                         public uint32 rr_get_ssrc ();
405                         [CCode (cname = "gst_rtcp_packet_rr_set_ssrc")]
406                         public void rr_set_ssrc (uint32 ssrc);
407                         [CCode (cname = "gst_rtcp_packet_sdes_add_entry")]
408                         public bool sdes_add_entry (Gst.RTPC.SDESType type, [CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "guint8")] uint8[] data);
409                         [CCode (cname = "gst_rtcp_packet_sdes_add_item")]
410                         public bool sdes_add_item (uint32 ssrc);
411                         [CCode (cname = "gst_rtcp_packet_sdes_copy_entry")]
412                         public bool sdes_copy_entry (Gst.RTPC.SDESType type, [CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "guint8")] out uint8[] data);
413                         [CCode (cname = "gst_rtcp_packet_sdes_first_entry")]
414                         public bool sdes_first_entry ();
415                         [CCode (cname = "gst_rtcp_packet_sdes_first_item")]
416                         public bool sdes_first_item ();
417                         [CCode (cname = "gst_rtcp_packet_sdes_get_entry")]
418                         public bool sdes_get_entry (Gst.RTPC.SDESType type, [CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "guint8")] out unowned uint8[] data);
419                         [CCode (cname = "gst_rtcp_packet_sdes_get_item_count")]
420                         public uint sdes_get_item_count ();
421                         [CCode (cname = "gst_rtcp_packet_sdes_get_ssrc")]
422                         public uint32 sdes_get_ssrc ();
423                         [CCode (cname = "gst_rtcp_packet_sdes_next_entry")]
424                         public bool sdes_next_entry ();
425                         [CCode (cname = "gst_rtcp_packet_sdes_next_item")]
426                         public bool sdes_next_item ();
427                         [CCode (cname = "gst_rtcp_packet_set_rb")]
428                         public void set_rb (uint nth, uint32 ssrc, uint8 fractionlost, int32 packetslost, uint32 exthighestseq, uint32 jitter, uint32 lsr, uint32 dlsr);
429                         [CCode (cname = "gst_rtcp_packet_sr_get_sender_info")]
430                         public void sr_get_sender_info (out uint32 ssrc, out uint64 ntptime, out uint32 rtptime, out uint32 packet_count, out uint32 octet_count);
431                         [CCode (cname = "gst_rtcp_packet_sr_set_sender_info")]
432                         public void sr_set_sender_info (uint32 ssrc, uint64 ntptime, uint32 rtptime, uint32 packet_count, uint32 octet_count);
433                 }
434                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GstRTCPFBType", cprefix = "GST_RTCP_", type_id = "gst_rtcpfb_type_get_type ()")]
435                 [GIR (name = "RTCPFBType")]
436                 public enum FBType {
437                         FB_TYPE_INVALID,
438                         RTPFB_TYPE_NACK,
439                         RTPFB_TYPE_TMMBR,
440                         RTPFB_TYPE_TMMBN,
441                         RTPFB_TYPE_RTCP_SR_REQ,
442                         PSFB_TYPE_PLI,
443                         PSFB_TYPE_SLI,
444                         PSFB_TYPE_RPSI,
445                         PSFB_TYPE_AFB,
446                         PSFB_TYPE_FIR,
447                         PSFB_TYPE_TSTR,
448                         PSFB_TYPE_TSTN,
449                         PSFB_TYPE_VBCN
450                 }
451                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GstRTCPSDESType", cprefix = "GST_RTCP_SDES_", type_id = "gst_rtcpsdes_type_get_type ()")]
452                 [GIR (name = "RTCPSDESType")]
453                 public enum SDESType {
454                         INVALID,
455                         END,
456                         CNAME,
457                         NAME,
458                         EMAIL,
459                         PHONE,
460                         LOC,
461                         TOOL,
462                         NOTE,
463                         PRIV
464                 }
465                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GstRTCPType", cprefix = "GST_RTCP_TYPE_", type_id = "gst_rtcp_type_get_type ()")]
466                 [GIR (name = "RTCPType")]
467                 public enum Type {
468                         INVALID,
469                         SR,
470                         RR,
471                         SDES,
472                         BYE,
473                         APP,
474                         RTPFB,
475                         PSFB
476                 }
477                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_MAX_BYE_SSRC_COUNT")]
478                 public const int MAX_BYE_SSRC_COUNT;
479                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_MAX_RB_COUNT")]
480                 public const int MAX_RB_COUNT;
481                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_MAX_SDES")]
482                 public const int MAX_SDES;
483                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_MAX_SDES_ITEM_COUNT")]
484                 public const int MAX_SDES_ITEM_COUNT;
485                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_REDUCED_SIZE_VALID_MASK")]
486                 public const int REDUCED_SIZE_VALID_MASK;
487                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_VALID_MASK")]
488                 public const int VALID_MASK;
489                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_VALID_VALUE")]
490                 public const int VALID_VALUE;
491                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_VERSION")]
492                 public const int VERSION;
493                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_buffer_map")]
494                 public static bool buffer_map (Gst.Buffer buffer, Gst.MapFlags flags, Gst.RTPC.Buffer rtcp);
495                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_buffer_new")]
496                 public static Gst.Buffer buffer_new (uint mtu);
497                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_buffer_new_copy_data")]
498                 public static Gst.Buffer buffer_new_copy_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
499                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_buffer_new_take_data")]
500                 public static Gst.Buffer buffer_new_take_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
501                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_buffer_validate")]
502                 public static bool buffer_validate (Gst.Buffer buffer);
503                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_buffer_validate_data")]
504                 public static bool buffer_validate_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
505                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_buffer_validate_data_reduced")]
506                 [Version (since = "1.6")]
507                 public static bool buffer_validate_data_reduced ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
508                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_buffer_validate_reduced")]
509                 [Version (since = "1.6")]
510                 public static bool buffer_validate_reduced (Gst.Buffer buffer);
511                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_ntp_to_unix")]
512                 public static uint64 ntp_to_unix (uint64 ntptime);
513                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_sdes_name_to_type")]
514                 public static Gst.RTPC.SDESType sdes_name_to_type (string name);
515                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_sdes_type_to_name")]
516                 public static unowned string sdes_type_to_name (Gst.RTPC.SDESType type);
517                 [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_unix_to_ntp")]
518                 public static uint64 unix_to_ntp (uint64 unixtime);
519         }