Release 0.41.92
[vala-gnome.git] / vapi / gstreamer-allocators-1.0.vapi
blob400092471a7a96994ed84495f7a7d8a09cd2572b
1 /* gstreamer-allocators-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", gir_namespace = "GstAllocators", gir_version = "1.0", lower_case_cprefix = "gst_")]
4 namespace Gst {
5         namespace Allocators {
6                 [CCode (cheader_filename = "gst/allocators/allocators.h", cname = "GstDmaBufAllocator", lower_case_cprefix = "gst_dmabuf_allocator_", lower_case_csuffix = "dmabuf_allocator", type_id = "gst_dmabuf_allocator_get_type ()")]
7                 [GIR (name = "DmaBufAllocator")]
8                 [Version (since = "1.12")]
9                 public class DmaBufAllocator : Gst.Allocators.FdAllocator {
10                         [CCode (has_construct_function = false, type = "GstAllocator*")]
11                         [Version (since = "1.2")]
12                         public DmaBufAllocator ();
13                         [Version (since = "1.2")]
14                         public static Gst.Memory alloc (Gst.Allocator allocator, int fd, size_t size);
15                         [Version (since = "1.16")]
16                         public static Gst.Memory alloc_with_flags (Gst.Allocator allocator, int fd, size_t size, Gst.Allocators.FdMemoryFlags flags);
17                 }
18                 [CCode (cheader_filename = "gst/allocators/allocators.h", cname = "GstFdAllocator", lower_case_cprefix = "gst_fd_allocator_", type_id = "gst_fd_allocator_get_type ()")]
19                 [GIR (name = "FdAllocator")]
20                 [Version (since = "1.6")]
21                 public class FdAllocator : Gst.Allocator {
22                         [CCode (has_construct_function = false, type = "GstAllocator*")]
23                         public FdAllocator ();
24                         public static Gst.Memory alloc (Gst.Allocator allocator, int fd, size_t size, Gst.Allocators.FdMemoryFlags flags);
25                 }
26                 [CCode (cheader_filename = "gst/allocators/allocators.h", cname = "GstPhysMemoryAllocator", lower_case_cprefix = "gst_phys_memory_allocator_", type_cname = "GstPhysMemoryAllocatorInterface", type_id = "gst_phys_memory_allocator_get_type ()")]
27                 [GIR (name = "PhysMemoryAllocator")]
28                 public interface PhysMemoryAllocator : Gst.Allocator {
29                         [NoWrapper]
30                         public abstract uintptr get_phys_addr (Gst.Memory mem);
31                 }
32                 [CCode (cheader_filename = "gst/allocators/allocators.h", cname = "GstFdMemoryFlags", cprefix = "GST_FD_MEMORY_FLAG_", has_type_id = false)]
33                 [Flags]
34                 [GIR (name = "FdMemoryFlags")]
35                 [Version (since = "1.6")]
36                 public enum FdMemoryFlags {
37                         NONE,
38                         KEEP_MAPPED,
39                         MAP_PRIVATE,
40                         DONT_CLOSE
41                 }
42                 [CCode (cheader_filename = "gst/allocators/allocators.h", cname = "GST_ALLOCATOR_DMABUF")]
43                 public const string ALLOCATOR_DMABUF;
44                 [CCode (cheader_filename = "gst/allocators/allocators.h", cname = "GST_ALLOCATOR_FD")]
45                 public const string ALLOCATOR_FD;
46                 [CCode (cheader_filename = "gst/allocators/allocators.h", cname = "GST_CAPS_FEATURE_MEMORY_DMABUF")]
47                 [Version (since = "1.12")]
48                 public const string CAPS_FEATURE_MEMORY_DMABUF;
49                 [CCode (cheader_filename = "gst/allocators/allocators.h", cname = "gst_dmabuf_memory_get_fd")]
50                 [Version (since = "1.2")]
51                 public static int dmabuf_memory_get_fd (Gst.Memory mem);
52                 [CCode (cheader_filename = "gst/allocators/allocators.h", cname = "gst_fd_memory_get_fd")]
53                 [Version (since = "1.6")]
54                 public static int fd_memory_get_fd (Gst.Memory mem);
55                 [CCode (cheader_filename = "gst/allocators/allocators.h", cname = "gst_is_dmabuf_memory")]
56                 [Version (since = "1.2")]
57                 public static bool is_dmabuf_memory (Gst.Memory mem);
58                 [CCode (cheader_filename = "gst/allocators/allocators.h", cname = "gst_is_fd_memory")]
59                 [Version (since = "1.6")]
60                 public static bool is_fd_memory (Gst.Memory mem);
61                 [CCode (cheader_filename = "gst/allocators/allocators.h", cname = "gst_is_phys_memory")]
62                 [Version (since = "1.14")]
63                 public static bool is_phys_memory (Gst.Memory mem);
64                 [CCode (cheader_filename = "gst/allocators/allocators.h", cname = "gst_phys_memory_get_phys_addr")]
65                 [Version (since = "1.14")]
66                 public static uintptr phys_memory_get_phys_addr (Gst.Memory mem);
67         }