1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
|
/* gstreamer-rtp-1.0.vapi generated by vapigen, do not modify. */
[CCode (cprefix = "Gst", gir_namespace = "GstRtp", gir_version = "1.0", lower_case_cprefix = "gst_")]
namespace Gst {
namespace RTP {
[CCode (cheader_filename = "gst/rtp/rtp.h", type_id = "gst_rtp_base_audio_payload_get_type ()")]
[GIR (name = "RTPBaseAudioPayload")]
public class BaseAudioPayload : Gst.RTP.BasePayload {
public Gst.ClockTime base_ts;
public int frame_duration;
public int frame_size;
public int sample_size;
[CCode (has_construct_function = false)]
protected BaseAudioPayload ();
public Gst.FlowReturn flush (uint payload_len, Gst.ClockTime timestamp);
public Gst.Base.Adapter get_adapter ();
public Gst.FlowReturn push ([CCode (array_length_cname = "payload_len", array_length_pos = 1.5, array_length_type = "guint")] uint8[] data, Gst.ClockTime timestamp);
public void set_frame_based ();
public void set_frame_options (int frame_duration, int frame_size);
public void set_sample_based ();
public void set_sample_options (int sample_size);
public void set_samplebits_options (int sample_size);
[NoAccessorMethod]
public bool buffer_list { get; set; }
}
[CCode (cheader_filename = "gst/rtp/rtp.h", type_id = "gst_rtp_base_depayload_get_type ()")]
[GIR (name = "RTPBaseDepayload")]
public abstract class BaseDepayload : Gst.Element {
public uint clock_rate;
public bool need_newsegment;
public weak Gst.Segment segment;
public weak Gst.Pad sinkpad;
public weak Gst.Pad srcpad;
[CCode (has_construct_function = false)]
protected BaseDepayload ();
[NoWrapper]
public virtual bool handle_event (Gst.Event event);
[Version (since = "1.16")]
public bool is_source_info_enabled ();
[NoWrapper]
public virtual bool packet_lost (Gst.Event event);
[NoWrapper]
public virtual Gst.Buffer process (Gst.Buffer @in);
[NoWrapper]
public virtual Gst.Buffer process_rtp_packet (Gst.RTP.Buffer rtp_buffer);
public Gst.FlowReturn push (Gst.Buffer out_buf);
public Gst.FlowReturn push_list (Gst.BufferList out_list);
[NoWrapper]
public virtual bool set_caps (Gst.Caps caps);
[Version (since = "1.16")]
public void set_source_info_enabled (bool enable);
[NoAccessorMethod]
[Version (since = "1.20")]
public bool auto_header_extension { get; set; }
[NoAccessorMethod]
[Version (since = "1.18")]
public int max_reorder { get; set; }
[NoAccessorMethod]
[Version (since = "1.16")]
public bool source_info { get; set; }
[NoAccessorMethod]
public Gst.Structure stats { owned get; }
[Version (since = "1.20")]
public signal void add_extension (owned Gst.RTP.HeaderExtension ext);
[Version (since = "1.20")]
public signal void clear_extensions ();
[Version (since = "1.20")]
public signal Gst.RTP.HeaderExtension request_extension (uint ext_id, string? ext_uri);
}
[CCode (cheader_filename = "gst/rtp/rtp.h", type_id = "gst_rtp_base_payload_get_type ()")]
[GIR (name = "RTPBasePayload")]
public abstract class BasePayload : Gst.Element {
[CCode (has_construct_function = false)]
protected BasePayload ();
[Version (since = "1.16")]
public Gst.Buffer allocate_output_buffer (uint payload_len, uint8 pad_len, uint8 csrc_count);
[NoWrapper]
public virtual Gst.Caps get_caps (Gst.Pad pad, Gst.Caps filter);
[Version (since = "1.16")]
public uint get_source_count (Gst.Buffer buffer);
[NoWrapper]
public virtual Gst.FlowReturn handle_buffer (Gst.Buffer buffer);
public bool is_filled (uint size, Gst.ClockTime duration);
[Version (since = "1.16")]
public bool is_source_info_enabled ();
public Gst.FlowReturn push (Gst.Buffer buffer);
public Gst.FlowReturn push_list (Gst.BufferList list);
[NoWrapper]
public virtual bool query (Gst.Pad pad, Gst.Query query);
[NoWrapper]
public virtual bool set_caps (Gst.Caps caps);
public void set_options (string media, bool @dynamic, string encoding_name, uint32 clock_rate);
[Version (since = "1.20")]
public bool set_outcaps_structure (Gst.Structure? s);
[Version (since = "1.16")]
public void set_source_info_enabled (bool enable);
[NoWrapper]
public virtual bool sink_event (Gst.Event event);
[NoWrapper]
public virtual bool src_event (Gst.Event event);
[NoAccessorMethod]
[Version (since = "1.20")]
public bool auto_header_extension { get; set; }
[NoAccessorMethod]
public int64 max_ptime { get; set; }
[NoAccessorMethod]
public int64 min_ptime { get; set; }
[NoAccessorMethod]
public uint mtu { get; set; }
[NoAccessorMethod]
[Version (since = "1.16")]
public bool onvif_no_rate_control { get; set; }
[NoAccessorMethod]
public bool perfect_rtptime { get; set; }
[NoAccessorMethod]
public uint pt { get; set; }
[NoAccessorMethod]
public int64 ptime_multiple { get; set; }
[NoAccessorMethod]
[Version (since = "1.18")]
public bool scale_rtptime { get; set; }
[NoAccessorMethod]
public uint seqnum { get; }
[NoAccessorMethod]
public int seqnum_offset { get; set; }
[NoAccessorMethod]
[Version (since = "1.16")]
public bool source_info { get; set; }
[NoAccessorMethod]
public uint ssrc { get; set; }
[NoAccessorMethod]
public Gst.Structure stats { owned get; }
[NoAccessorMethod]
public uint timestamp { get; }
[NoAccessorMethod]
public uint timestamp_offset { get; set; }
[Version (since = "1.20")]
public signal void add_extension (owned Gst.RTP.HeaderExtension ext);
[Version (since = "1.20")]
public signal void clear_extensions ();
[Version (since = "1.20")]
public signal Gst.RTP.HeaderExtension request_extension (uint ext_id, string ext_uri);
}
[CCode (cheader_filename = "gst/rtp/rtp.h", has_type_id = false)]
[Compact]
[GIR (name = "RTPBuffer")]
public class Buffer : Gst.Buffer {
[CCode (array_length = false)]
public weak void* data[4];
[CCode (array_length = false)]
public Gst.MapInfo map[4];
[CCode (array_length = false)]
public weak size_t size[4];
public uint state;
public bool add_extension_onebyte_header (uint8 id, [CCode (array_length_cname = "size", array_length_pos = 2.1, array_length_type = "guint")] uint8[] data);
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);
public uint32 get_csrc (uint8 idx);
public uint8 get_csrc_count ();
public bool get_extension ();
[Version (since = "1.2")]
public GLib.Bytes get_extension_bytes (out uint16 bits);
public bool get_extension_data (out uint16 bits, [CCode (array_length = false)] out unowned uint8[] data, out uint wordlen);
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);
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);
public uint get_header_len ();
public bool get_marker ();
public uint get_packet_len ();
public bool get_padding ();
[CCode (array_length = false)]
public unowned uint8[] get_payload ();
public Gst.Buffer get_payload_buffer ();
[Version (since = "1.2")]
public GLib.Bytes get_payload_bytes ();
public uint get_payload_len ();
public Gst.Buffer get_payload_subbuffer (uint offset, uint len);
public uint8 get_payload_type ();
public uint16 get_seq ();
public uint32 get_ssrc ();
public uint32 get_timestamp ();
public uint8 get_version ();
public void pad_to (uint len);
public void set_csrc (uint8 idx, uint32 csrc);
public void set_extension (bool extension);
public bool set_extension_data (uint16 bits, uint16 length);
public void set_marker (bool marker);
public void set_packet_len (uint len);
public void set_padding (bool padding);
public void set_payload_type (uint8 payload_type);
public void set_seq (uint16 seq);
public void set_ssrc (uint32 ssrc);
public void set_timestamp (uint32 timestamp);
public void set_version (uint8 version);
public void unmap ();
}
[CCode (cheader_filename = "gst/rtp/rtp.h", type_id = "gst_rtp_header_extension_get_type ()")]
[GIR (name = "RTPHeaderExtension")]
[Version (since = "1.20")]
public abstract class HeaderExtension : Gst.Element {
public uint ext_id;
[CCode (has_construct_function = false)]
protected HeaderExtension ();
public static Gst.RTP.HeaderExtension? create_from_uri (string uri);
public uint get_id ();
public virtual size_t get_max_size (Gst.Buffer input_meta);
public string get_sdp_caps_field_name ();
public virtual Gst.RTP.HeaderExtensionFlags get_supported_flags ();
public unowned string get_uri ();
public virtual bool read (Gst.RTP.HeaderExtensionFlags read_flags, uint8 data, size_t size, Gst.Buffer buffer);
public virtual bool set_attributes_from_caps (Gst.Caps caps);
public bool set_attributes_from_caps_simple_sdp (Gst.Caps caps);
public virtual bool set_caps_from_attributes (Gst.Caps caps);
public bool set_caps_from_attributes_simple_sdp (Gst.Caps caps);
public void set_id (uint ext_id);
public virtual size_t write (Gst.Buffer input_meta, Gst.RTP.HeaderExtensionFlags write_flags, Gst.Buffer output, uint8 data, size_t size);
}
[CCode (cheader_filename = "gst/rtp/rtp.h", has_type_id = false)]
[GIR (name = "RTPPayloadInfo")]
public struct PayloadInfo {
public uint8 payload_type;
public weak string media;
public weak string encoding_name;
public uint clock_rate;
public weak string encoding_parameters;
public uint bitrate;
}
[CCode (cheader_filename = "gst/rtp/rtp.h", has_type_id = false)]
[GIR (name = "RTPSourceMeta")]
[Version (since = "1.16")]
public struct SourceMeta {
public Gst.Meta meta;
public uint32 ssrc;
public bool ssrc_valid;
[CCode (array_length = false)]
public weak uint32 csrc[15];
public uint csrc_count;
public bool append_csrc (uint32 csrc, uint csrc_count);
public uint get_source_count ();
public bool set_ssrc (uint32? ssrc);
}
[CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTP_BUFFER_FLAG_", type_id = "gst_rtp_buffer_flags_get_type ()")]
[Flags]
[GIR (name = "RTPBufferFlags")]
[Version (since = "1.10")]
public enum BufferFlags {
RETRANSMISSION,
REDUNDANT,
LAST
}
[CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTP_BUFFER_MAP_FLAG_", type_id = "gst_rtp_buffer_map_flags_get_type ()")]
[Flags]
[GIR (name = "RTPBufferMapFlags")]
[Version (since = "1.6.1")]
public enum BufferMapFlags {
SKIP_PADDING,
LAST
}
[CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTP_HEADER_EXTENSION_", type_id = "gst_rtp_header_extension_flags_get_type ()")]
[Flags]
[GIR (name = "RTPHeaderExtensionFlags")]
[Version (since = "1.20")]
public enum HeaderExtensionFlags {
ONE_BYTE,
TWO_BYTE
}
[CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTP_PAYLOAD_", type_id = "gst_rtp_payload_get_type ()")]
[GIR (name = "RTPPayload")]
public enum Payload {
PCMU,
@1016,
G721,
GSM,
G723,
DVI4_8000,
DVI4_16000,
LPC,
PCMA,
G722,
L16_STEREO,
L16_MONO,
QCELP,
CN,
MPA,
G728,
DVI4_11025,
DVI4_22050,
G729,
CELLB,
JPEG,
NV,
H261,
MPV,
MP2T,
H263;
public const string @1016_STRING;
public const string CELLB_STRING;
public const string CN_STRING;
public const string DVI4_11025_STRING;
public const string DVI4_16000_STRING;
public const string DVI4_22050_STRING;
public const string DVI4_8000_STRING;
public const string DYNAMIC_STRING;
public const string G721_STRING;
public const string G722_STRING;
public const int G723_53;
public const string G723_53_STRING;
public const int G723_63;
public const string G723_63_STRING;
public const string G723_STRING;
public const string G728_STRING;
public const string G729_STRING;
public const string GSM_STRING;
public const string H261_STRING;
public const string H263_STRING;
public const string JPEG_STRING;
public const string L16_MONO_STRING;
public const string L16_STEREO_STRING;
public const string LPC_STRING;
public const string MP2T_STRING;
public const string MPA_STRING;
public const string MPV_STRING;
public const string NV_STRING;
public const string PCMA_STRING;
public const string PCMU_STRING;
public const string QCELP_STRING;
public const int TS41;
public const string TS41_STRING;
public const int TS48;
public const string TS48_STRING;
}
[CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTP_PROFILE_", type_id = "gst_rtp_profile_get_type ()")]
[GIR (name = "RTPProfile")]
[Version (since = "1.6")]
public enum Profile {
UNKNOWN,
AVP,
SAVP,
AVPF,
SAVPF
}
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_BASE")]
public const string HDREXT_BASE;
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_ELEMENT_CLASS")]
[Version (since = "1.20")]
public const string HDREXT_ELEMENT_CLASS;
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_NTP_56")]
public const string HDREXT_NTP_56;
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_NTP_56_SIZE")]
public const int HDREXT_NTP_56_SIZE;
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_NTP_64")]
public const string HDREXT_NTP_64;
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_NTP_64_SIZE")]
public const int HDREXT_NTP_64_SIZE;
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HEADER_EXTENSION_URI_METADATA_KEY")]
[Version (since = "1.20")]
public const string HEADER_EXTENSION_URI_METADATA_KEY;
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_SOURCE_META_MAX_CSRC_COUNT")]
public const int SOURCE_META_MAX_CSRC_COUNT;
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_VERSION")]
public const int VERSION;
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_buffer_add_rtp_source_meta")]
[Version (since = "1.16")]
public static unowned Gst.RTP.SourceMeta? buffer_add_rtp_source_meta (Gst.Buffer buffer, uint32? ssrc, uint32? csrc, uint csrc_count);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
public static void buffer_allocate_data (Gst.Buffer buffer, uint payload_len, uint8 pad_len, uint8 csrc_count);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
public static uint buffer_calc_header_len (uint8 csrc_count);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
public static uint buffer_calc_packet_len (uint payload_len, uint8 pad_len, uint8 csrc_count);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
public static uint buffer_calc_payload_len (uint packet_len, uint8 pad_len, uint8 csrc_count);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
public static int buffer_compare_seqnum (uint16 seqnum1, uint16 seqnum2);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
public static uint32 buffer_default_clock_rate (uint8 payload_type);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
public static uint64 buffer_ext_timestamp (ref uint64 exttimestamp, uint32 timestamp);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
[Version (since = "1.18")]
public static bool buffer_get_extension_onebyte_header_from_bytes (GLib.Bytes bytes, uint16 bit_pattern, uint8 id, uint nth, [CCode (array_length_cname = "size", array_length_pos = 5.1, array_length_type = "guint")] out unowned uint8[] data);
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_buffer_get_rtp_source_meta")]
[Version (since = "1.16")]
public static unowned Gst.RTP.SourceMeta? buffer_get_rtp_source_meta (Gst.Buffer buffer);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
public static bool buffer_map (Gst.Buffer buffer, Gst.MapFlags flags, out unowned Gst.RTP.Buffer rtp);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
public static Gst.Buffer buffer_new_allocate (uint payload_len, uint8 pad_len, uint8 csrc_count);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
public static Gst.Buffer buffer_new_allocate_len (uint packet_len, uint8 pad_len, uint8 csrc_count);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
public static Gst.Buffer buffer_new_copy_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] data);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
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);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
[Version (since = "1.20")]
public static GLib.List<Gst.RTP.HeaderExtension> get_header_extension_list ();
[CCode (cheader_filename = "gst/rtp/rtp.h")]
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);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
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);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
public static bool hdrext_set_ntp_56 (void* data, uint size, uint64 ntptime);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
public static bool hdrext_set_ntp_64 (void* data, uint size, uint64 ntptime);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
public static unowned Gst.RTP.PayloadInfo? payload_info_for_name (string media, string encoding_name);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
public static unowned Gst.RTP.PayloadInfo? payload_info_for_pt (uint8 payload_type);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
public static GLib.Type source_meta_api_get_type ();
[CCode (cheader_filename = "gst/rtp/rtp.h")]
public static unowned Gst.MetaInfo? source_meta_get_info ();
}
namespace RTPC {
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GstRTCPBuffer", has_type_id = false)]
[Compact]
[GIR (name = "RTCPBuffer")]
public class Buffer : Gst.Buffer {
public Gst.MapInfo map;
[CCode (cname = "gst_rtcp_buffer_add_packet")]
public bool add_packet (Gst.RTPC.Type type, Gst.RTPC.Packet packet);
[CCode (cname = "gst_rtcp_buffer_get_first_packet")]
public bool get_first_packet (Gst.RTPC.Packet packet);
[CCode (cname = "gst_rtcp_buffer_get_packet_count")]
public uint get_packet_count ();
[CCode (cname = "gst_rtcp_buffer_unmap")]
public bool unmap ();
}
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GstRTCPPacket", has_type_id = false)]
[GIR (name = "RTCPPacket")]
public struct Packet {
public weak Gst.RTPC.Buffer rtcp;
public uint offset;
[CCode (cname = "gst_rtcp_packet_add_profile_specific_ext")]
[Version (since = "1.10")]
public bool add_profile_specific_ext ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
[CCode (cname = "gst_rtcp_packet_add_rb")]
public bool add_rb (uint32 ssrc, uint8 fractionlost, int32 packetslost, uint32 exthighestseq, uint32 jitter, uint32 lsr, uint32 dlsr);
[CCode (cname = "gst_rtcp_packet_app_get_data")]
[Version (since = "1.10")]
public uint8 app_get_data ();
[CCode (cname = "gst_rtcp_packet_app_get_data_length")]
[Version (since = "1.10")]
public uint16 app_get_data_length ();
[CCode (cname = "gst_rtcp_packet_app_get_name")]
[Version (since = "1.10")]
public unowned string app_get_name ();
[CCode (cname = "gst_rtcp_packet_app_get_ssrc")]
[Version (since = "1.10")]
public uint32 app_get_ssrc ();
[CCode (cname = "gst_rtcp_packet_app_get_subtype")]
[Version (since = "1.10")]
public uint8 app_get_subtype ();
[CCode (cname = "gst_rtcp_packet_app_set_data_length")]
[Version (since = "1.10")]
public bool app_set_data_length (uint16 wordlen);
[CCode (cname = "gst_rtcp_packet_app_set_name")]
[Version (since = "1.10")]
public void app_set_name (string name);
[CCode (cname = "gst_rtcp_packet_app_set_ssrc")]
[Version (since = "1.10")]
public void app_set_ssrc (uint32 ssrc);
[CCode (cname = "gst_rtcp_packet_app_set_subtype")]
[Version (since = "1.10")]
public void app_set_subtype (uint8 subtype);
[CCode (cname = "gst_rtcp_packet_bye_add_ssrc")]
public bool bye_add_ssrc (uint32 ssrc);
[CCode (cname = "gst_rtcp_packet_bye_add_ssrcs")]
public bool bye_add_ssrcs ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint32[] ssrc);
[CCode (cname = "gst_rtcp_packet_bye_get_nth_ssrc")]
public uint32 bye_get_nth_ssrc (uint nth);
[CCode (cname = "gst_rtcp_packet_bye_get_reason")]
public string bye_get_reason ();
[CCode (cname = "gst_rtcp_packet_bye_get_reason_len")]
public uint8 bye_get_reason_len ();
[CCode (cname = "gst_rtcp_packet_bye_get_ssrc_count")]
public uint bye_get_ssrc_count ();
[CCode (cname = "gst_rtcp_packet_bye_set_reason")]
public bool bye_set_reason (string reason);
[CCode (cname = "gst_rtcp_packet_copy_profile_specific_ext")]
[Version (since = "1.10")]
public bool copy_profile_specific_ext ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] out uint8[] data);
[CCode (cname = "gst_rtcp_packet_fb_get_fci")]
public uint8 fb_get_fci ();
[CCode (cname = "gst_rtcp_packet_fb_get_fci_length")]
public uint16 fb_get_fci_length ();
[CCode (cname = "gst_rtcp_packet_fb_get_media_ssrc")]
public uint32 fb_get_media_ssrc ();
[CCode (cname = "gst_rtcp_packet_fb_get_sender_ssrc")]
public uint32 fb_get_sender_ssrc ();
[CCode (cname = "gst_rtcp_packet_fb_get_type")]
public Gst.RTPC.FBType fb_get_type ();
[CCode (cname = "gst_rtcp_packet_fb_set_fci_length")]
public bool fb_set_fci_length (uint16 wordlen);
[CCode (cname = "gst_rtcp_packet_fb_set_media_ssrc")]
public void fb_set_media_ssrc (uint32 ssrc);
[CCode (cname = "gst_rtcp_packet_fb_set_sender_ssrc")]
public void fb_set_sender_ssrc (uint32 ssrc);
[CCode (cname = "gst_rtcp_packet_fb_set_type")]
public void fb_set_type (Gst.RTPC.FBType type);
[CCode (cname = "gst_rtcp_packet_get_count")]
public uint8 get_count ();
[CCode (cname = "gst_rtcp_packet_get_length")]
public uint16 get_length ();
[CCode (cname = "gst_rtcp_packet_get_padding")]
public bool get_padding ();
[CCode (cname = "gst_rtcp_packet_get_profile_specific_ext")]
[Version (since = "1.10")]
public bool get_profile_specific_ext ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] out unowned uint8[] data);
[CCode (cname = "gst_rtcp_packet_get_profile_specific_ext_length")]
[Version (since = "1.10")]
public uint16 get_profile_specific_ext_length ();
[CCode (cname = "gst_rtcp_packet_get_rb")]
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);
[CCode (cname = "gst_rtcp_packet_get_rb_count")]
public uint get_rb_count ();
[CCode (cname = "gst_rtcp_packet_get_type")]
public Gst.RTPC.Type get_type ();
[CCode (cname = "gst_rtcp_packet_move_to_next")]
public bool move_to_next ();
[CCode (cname = "gst_rtcp_packet_remove")]
public bool remove ();
[CCode (cname = "gst_rtcp_packet_rr_get_ssrc")]
public uint32 rr_get_ssrc ();
[CCode (cname = "gst_rtcp_packet_rr_set_ssrc")]
public void rr_set_ssrc (uint32 ssrc);
[CCode (cname = "gst_rtcp_packet_sdes_add_entry")]
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);
[CCode (cname = "gst_rtcp_packet_sdes_add_item")]
public bool sdes_add_item (uint32 ssrc);
[CCode (cname = "gst_rtcp_packet_sdes_copy_entry")]
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);
[CCode (cname = "gst_rtcp_packet_sdes_first_entry")]
public bool sdes_first_entry ();
[CCode (cname = "gst_rtcp_packet_sdes_first_item")]
public bool sdes_first_item ();
[CCode (cname = "gst_rtcp_packet_sdes_get_entry")]
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);
[CCode (cname = "gst_rtcp_packet_sdes_get_item_count")]
public uint sdes_get_item_count ();
[CCode (cname = "gst_rtcp_packet_sdes_get_ssrc")]
public uint32 sdes_get_ssrc ();
[CCode (cname = "gst_rtcp_packet_sdes_next_entry")]
public bool sdes_next_entry ();
[CCode (cname = "gst_rtcp_packet_sdes_next_item")]
public bool sdes_next_item ();
[CCode (cname = "gst_rtcp_packet_set_rb")]
public void set_rb (uint nth, uint32 ssrc, uint8 fractionlost, int32 packetslost, uint32 exthighestseq, uint32 jitter, uint32 lsr, uint32 dlsr);
[CCode (cname = "gst_rtcp_packet_sr_get_sender_info")]
public void sr_get_sender_info (out uint32 ssrc, out uint64 ntptime, out uint32 rtptime, out uint32 packet_count, out uint32 octet_count);
[CCode (cname = "gst_rtcp_packet_sr_set_sender_info")]
public void sr_set_sender_info (uint32 ssrc, uint64 ntptime, uint32 rtptime, uint32 packet_count, uint32 octet_count);
[CCode (cname = "gst_rtcp_packet_xr_first_rb")]
[Version (since = "1.16")]
public bool xr_first_rb ();
[CCode (cname = "gst_rtcp_packet_xr_get_block_length")]
[Version (since = "1.16")]
public uint16 xr_get_block_length ();
[CCode (cname = "gst_rtcp_packet_xr_get_block_type")]
[Version (since = "1.16")]
public Gst.RTPC.XRType xr_get_block_type ();
[CCode (cname = "gst_rtcp_packet_xr_get_dlrr_block")]
[Version (since = "1.16")]
public bool xr_get_dlrr_block (uint nth, uint32 ssrc, uint32 last_rr, uint32 delay);
[CCode (cname = "gst_rtcp_packet_xr_get_prt_by_seq")]
[Version (since = "1.16")]
public bool xr_get_prt_by_seq (uint16 seq, uint32 receipt_time);
[CCode (cname = "gst_rtcp_packet_xr_get_prt_info")]
[Version (since = "1.16")]
public bool xr_get_prt_info (uint32 ssrc, uint8 thinning, uint16 begin_seq, uint16 end_seq);
[CCode (cname = "gst_rtcp_packet_xr_get_rle_info")]
[Version (since = "1.16")]
public bool xr_get_rle_info (uint32 ssrc, uint8 thinning, uint16 begin_seq, uint16 end_seq, uint32 chunk_count);
[CCode (cname = "gst_rtcp_packet_xr_get_rle_nth_chunk")]
[Version (since = "1.16")]
public bool xr_get_rle_nth_chunk (uint nth, uint16 chunk);
[CCode (cname = "gst_rtcp_packet_xr_get_rrt")]
[Version (since = "1.16")]
public bool xr_get_rrt (uint64 timestamp);
[CCode (cname = "gst_rtcp_packet_xr_get_ssrc")]
[Version (since = "1.16")]
public uint32 xr_get_ssrc ();
[CCode (cname = "gst_rtcp_packet_xr_get_summary_info")]
[Version (since = "1.16")]
public bool xr_get_summary_info (uint32 ssrc, uint16 begin_seq, uint16 end_seq);
[CCode (cname = "gst_rtcp_packet_xr_get_summary_jitter")]
[Version (since = "1.16")]
public bool xr_get_summary_jitter (uint32 min_jitter, uint32 max_jitter, uint32 mean_jitter, uint32 dev_jitter);
[CCode (cname = "gst_rtcp_packet_xr_get_summary_pkt")]
[Version (since = "1.16")]
public bool xr_get_summary_pkt (uint32 lost_packets, uint32 dup_packets);
[CCode (cname = "gst_rtcp_packet_xr_get_summary_ttl")]
[Version (since = "1.16")]
public bool xr_get_summary_ttl (bool is_ipv4, uint8 min_ttl, uint8 max_ttl, uint8 mean_ttl, uint8 dev_ttl);
[CCode (cname = "gst_rtcp_packet_xr_get_voip_burst_metrics")]
[Version (since = "1.16")]
public bool xr_get_voip_burst_metrics (uint8 burst_density, uint8 gap_density, uint16 burst_duration, uint16 gap_duration);
[CCode (cname = "gst_rtcp_packet_xr_get_voip_configuration_params")]
[Version (since = "1.16")]
public bool xr_get_voip_configuration_params (uint8 gmin, uint8 rx_config);
[CCode (cname = "gst_rtcp_packet_xr_get_voip_delay_metrics")]
[Version (since = "1.16")]
public bool xr_get_voip_delay_metrics (uint16 roundtrip_delay, uint16 end_system_delay);
[CCode (cname = "gst_rtcp_packet_xr_get_voip_jitter_buffer_params")]
[Version (since = "1.16")]
public bool xr_get_voip_jitter_buffer_params (uint16 jb_nominal, uint16 jb_maximum, uint16 jb_abs_max);
[CCode (cname = "gst_rtcp_packet_xr_get_voip_metrics_ssrc")]
[Version (since = "1.16")]
public bool xr_get_voip_metrics_ssrc (uint32 ssrc);
[CCode (cname = "gst_rtcp_packet_xr_get_voip_packet_metrics")]
[Version (since = "1.16")]
public bool xr_get_voip_packet_metrics (uint8 loss_rate, uint8 discard_rate);
[CCode (cname = "gst_rtcp_packet_xr_get_voip_quality_metrics")]
[Version (since = "1.16")]
public bool xr_get_voip_quality_metrics (uint8 r_factor, uint8 ext_r_factor, uint8 mos_lq, uint8 mos_cq);
[CCode (cname = "gst_rtcp_packet_xr_get_voip_signal_metrics")]
[Version (since = "1.16")]
public bool xr_get_voip_signal_metrics (uint8 signal_level, uint8 noise_level, uint8 rerl, uint8 gmin);
[CCode (cname = "gst_rtcp_packet_xr_next_rb")]
[Version (since = "1.16")]
public bool xr_next_rb ();
}
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GstRTCPFBType", cprefix = "GST_RTCP_", type_id = "gst_rtcpfb_type_get_type ()")]
[GIR (name = "RTCPFBType")]
public enum FBType {
FB_TYPE_INVALID,
RTPFB_TYPE_NACK,
RTPFB_TYPE_TMMBR,
RTPFB_TYPE_TMMBN,
RTPFB_TYPE_RTCP_SR_REQ,
RTPFB_TYPE_TWCC,
PSFB_TYPE_PLI,
PSFB_TYPE_SLI,
PSFB_TYPE_RPSI,
PSFB_TYPE_AFB,
PSFB_TYPE_FIR,
PSFB_TYPE_TSTR,
PSFB_TYPE_TSTN,
PSFB_TYPE_VBCN
}
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GstRTCPSDESType", cprefix = "GST_RTCP_SDES_", type_id = "gst_rtcpsdes_type_get_type ()")]
[GIR (name = "RTCPSDESType")]
public enum SDESType {
INVALID,
END,
CNAME,
NAME,
EMAIL,
PHONE,
LOC,
TOOL,
NOTE,
PRIV
}
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GstRTCPType", cprefix = "GST_RTCP_TYPE_", type_id = "gst_rtcp_type_get_type ()")]
[GIR (name = "RTCPType")]
public enum Type {
INVALID,
SR,
RR,
SDES,
BYE,
APP,
RTPFB,
PSFB,
XR
}
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GstRTCPXRType", cprefix = "GST_RTCP_XR_TYPE_", type_id = "gst_rtcpxr_type_get_type ()")]
[GIR (name = "RTCPXRType")]
[Version (since = "1.16")]
public enum XRType {
INVALID,
LRLE,
DRLE,
PRT,
RRT,
DLRR,
SSUMM,
VOIP_METRICS
}
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_MAX_BYE_SSRC_COUNT")]
public const int MAX_BYE_SSRC_COUNT;
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_MAX_RB_COUNT")]
public const int MAX_RB_COUNT;
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_MAX_SDES")]
public const int MAX_SDES;
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_MAX_SDES_ITEM_COUNT")]
public const int MAX_SDES_ITEM_COUNT;
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_REDUCED_SIZE_VALID_MASK")]
public const int REDUCED_SIZE_VALID_MASK;
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_VALID_MASK")]
public const int VALID_MASK;
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_VALID_VALUE")]
public const int VALID_VALUE;
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTCP_VERSION")]
public const int VERSION;
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_buffer_map")]
public static bool buffer_map (Gst.Buffer buffer, Gst.MapFlags flags, Gst.RTPC.Buffer rtcp);
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_buffer_new")]
public static Gst.Buffer buffer_new (uint mtu);
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_buffer_new_copy_data")]
public static Gst.Buffer buffer_new_copy_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_buffer_new_take_data")]
public static Gst.Buffer buffer_new_take_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_buffer_validate")]
public static bool buffer_validate (Gst.Buffer buffer);
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_buffer_validate_data")]
public static bool buffer_validate_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_buffer_validate_data_reduced")]
[Version (since = "1.6")]
public static bool buffer_validate_data_reduced ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] uint8[] data);
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_buffer_validate_reduced")]
[Version (since = "1.6")]
public static bool buffer_validate_reduced (Gst.Buffer buffer);
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_ntp_to_unix")]
public static uint64 ntp_to_unix (uint64 ntptime);
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_sdes_name_to_type")]
public static Gst.RTPC.SDESType sdes_name_to_type (string name);
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_sdes_type_to_name")]
public static unowned string sdes_type_to_name (Gst.RTPC.SDESType type);
[CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_rtcp_unix_to_ntp")]
public static uint64 unix_to_ntp (uint64 unixtime);
}
}
|