1 /* gstreamer-dataprotocol-0.10.vapi generated by lt-vapigen, do not modify. */
3 [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
6 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
7 public class DPPacketizer {
8 public weak Gst.DPHeaderFromBufferFunction header_from_buffer;
9 public weak Gst.DPPacketFromCapsFunction packet_from_caps;
10 public weak Gst.DPPacketFromEventFunction packet_from_event;
11 public Gst.DPVersion version;
12 [CCode (has_construct_function = false)]
13 public DPPacketizer (Gst.DPVersion version);
15 [CCode (cprefix = "GST_DP_HEADER_FLAG_", has_type_id = "0", cheader_filename = "gst/dataprotocol/dataprotocol.h")]
16 public enum DPHeaderFlag {
22 [CCode (cprefix = "GST_DP_PAYLOAD_", has_type_id = "0", cheader_filename = "gst/dataprotocol/dataprotocol.h")]
23 public enum DPPayloadType {
29 [CCode (cprefix = "", has_type_id = "0", cheader_filename = "gst/dataprotocol/dataprotocol.h")]
30 public enum DPVersion {
34 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
35 public static delegate bool DPHeaderFromBufferFunction (Gst.Buffer buffer, Gst.DPHeaderFlag flags, uint length, uchar header);
36 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
37 public static delegate bool DPPacketFromCapsFunction (Gst.Caps caps, Gst.DPHeaderFlag flags, uint length, uchar header, uchar payload);
38 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
39 public static delegate bool DPPacketFromEventFunction (Gst.Event event, Gst.DPHeaderFlag flags, uint length, uchar header, uchar payload);
40 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
41 public const int DP_HEADER_LENGTH;
42 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
43 public const int DP_VERSION_MAJOR;
44 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
45 public const int DP_VERSION_MINOR;
46 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
47 public static unowned Gst.Buffer dp_buffer_from_header (uint header_length, uchar header);
48 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
49 public static unowned Gst.Caps dp_caps_from_packet (uint header_length, uchar header, uchar payload);
50 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
51 public static uint16 dp_crc (uchar buffer, uint length);
52 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
53 public static unowned Gst.Event dp_event_from_packet (uint header_length, uchar header, uchar payload);
54 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
55 public static bool dp_header_from_buffer (Gst.Buffer buffer, Gst.DPHeaderFlag flags, uint length, uchar header);
56 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
57 public static uint32 dp_header_payload_length (uchar header);
58 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
59 public static Gst.DPPayloadType dp_header_payload_type (uchar header);
60 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
61 public static void dp_init ();
62 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
63 public static bool dp_packet_from_caps (Gst.Caps caps, Gst.DPHeaderFlag flags, uint length, uchar header, uchar payload);
64 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
65 public static bool dp_packet_from_event (Gst.Event event, Gst.DPHeaderFlag flags, uint length, uchar header, uchar payload);
66 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
67 public static bool dp_validate_header (uint header_length, uchar header);
68 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
69 public static bool dp_validate_packet (uint header_length, uchar header, uchar payload);
70 [CCode (cheader_filename = "gst/dataprotocol/dataprotocol.h")]
71 public static bool dp_validate_payload (uint header_length, uchar header, uchar payload);