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
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT

use std::ffi::CStr;

/// An option that can be activated on bufferpools to request OpenGL
/// synchronization metadata on buffers from the pool.
#[doc(alias = "GST_BUFFER_POOL_OPTION_GL_SYNC_META")]
pub static BUFFER_POOL_OPTION_GL_SYNC_META: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_BUFFER_POOL_OPTION_GL_SYNC_META)
            .to_str()
            .unwrap()
    });
/// String used for [`GLTextureTarget::_2d`][crate::GLTextureTarget::_2d] as a [`gst::BufferPool`][crate::gst::BufferPool] pool option
#[doc(alias = "GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_2D")]
pub static BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_2D: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_2D)
            .to_str()
            .unwrap()
    });
/// String used for [`GLTextureTarget::ExternalOes`][crate::GLTextureTarget::ExternalOes] as a [`gst::BufferPool`][crate::gst::BufferPool] pool option
#[doc(alias = "GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_EXTERNAL_OES")]
pub static BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_EXTERNAL_OES: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_EXTERNAL_OES)
            .to_str()
            .unwrap()
    });
/// String used for [`GLTextureTarget::Rectangle`][crate::GLTextureTarget::Rectangle] as a [`gst::BufferPool`][crate::gst::BufferPool] pool option
#[doc(alias = "GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_RECTANGLE")]
pub static BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_RECTANGLE: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_RECTANGLE)
            .to_str()
            .unwrap()
    });
/// Name of the caps feature indicating the use of GL buffers
#[doc(alias = "GST_CAPS_FEATURE_MEMORY_GL_BUFFER")]
pub static CAPS_FEATURE_MEMORY_GL_BUFFER: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_CAPS_FEATURE_MEMORY_GL_BUFFER)
            .to_str()
            .unwrap()
    });
/// Name of the caps feature for indicating the use of [`GLMemory`][crate::GLMemory]
#[doc(alias = "GST_CAPS_FEATURE_MEMORY_GL_MEMORY")]
pub static CAPS_FEATURE_MEMORY_GL_MEMORY: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_CAPS_FEATURE_MEMORY_GL_MEMORY)
            .to_str()
            .unwrap()
    });
/// The name for [`GLAPI::GLES1`][crate::GLAPI::GLES1] used in various places
#[doc(alias = "GST_GL_API_GLES1_NAME")]
pub static GL_API_GLES1_NAME: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_API_GLES1_NAME).to_str().unwrap()
    });
/// The name for [`GLAPI::GLES2`][crate::GLAPI::GLES2] used in various places
#[doc(alias = "GST_GL_API_GLES2_NAME")]
pub static GL_API_GLES2_NAME: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_API_GLES2_NAME).to_str().unwrap()
    });
/// The name for [`GLAPI::OPENGL3`][crate::GLAPI::OPENGL3] used in various places
#[doc(alias = "GST_GL_API_OPENGL3_NAME")]
pub static GL_API_OPENGL3_NAME: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_API_OPENGL3_NAME)
            .to_str()
            .unwrap()
    });
/// The name for [`GLAPI::OPENGL`][crate::GLAPI::OPENGL] used in various places
#[doc(alias = "GST_GL_API_OPENGL_NAME")]
pub static GL_API_OPENGL_NAME: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_API_OPENGL_NAME)
            .to_str()
            .unwrap()
    });
/// The name of the GL buffer allocator
#[doc(alias = "GST_GL_BASE_MEMORY_ALLOCATOR_NAME")]
pub static GL_BASE_MEMORY_ALLOCATOR_NAME: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_BASE_MEMORY_ALLOCATOR_NAME)
            .to_str()
            .unwrap()
    });
/// The name of the GL buffer allocator
#[doc(alias = "GST_GL_BUFFER_ALLOCATOR_NAME")]
pub static GL_BUFFER_ALLOCATOR_NAME: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_BUFFER_ALLOCATOR_NAME)
            .to_str()
            .unwrap()
    });
#[doc(alias = "GST_GL_COLOR_CONVERT_EXT_FORMATS")]
pub static GL_COLOR_CONVERT_EXT_FORMATS: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_COLOR_CONVERT_EXT_FORMATS)
            .to_str()
            .unwrap()
    });
/// The currently supported [`gst::Caps`][crate::gst::Caps] that can be converted
#[doc(alias = "GST_GL_COLOR_CONVERT_VIDEO_CAPS")]
pub static GL_COLOR_CONVERT_VIDEO_CAPS: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_COLOR_CONVERT_VIDEO_CAPS)
            .to_str()
            .unwrap()
    });
/// The canonical name of a [`gst::Structure`][crate::gst::Structure] that contains a configuration for a
/// [`GLContext`][crate::GLContext].
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(alias = "GST_GL_CONFIG_STRUCTURE_NAME")]
pub static GL_CONFIG_STRUCTURE_NAME: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_CONFIG_STRUCTURE_NAME)
            .to_str()
            .unwrap()
    });
#[doc(alias = "GST_GL_CONTEXT_TYPE_CGL")]
pub static GL_CONTEXT_TYPE_CGL: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_CONTEXT_TYPE_CGL)
            .to_str()
            .unwrap()
    });
#[doc(alias = "GST_GL_CONTEXT_TYPE_EAGL")]
pub static GL_CONTEXT_TYPE_EAGL: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_CONTEXT_TYPE_EAGL)
            .to_str()
            .unwrap()
    });
#[doc(alias = "GST_GL_CONTEXT_TYPE_EGL")]
pub static GL_CONTEXT_TYPE_EGL: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_CONTEXT_TYPE_EGL)
            .to_str()
            .unwrap()
    });
#[doc(alias = "GST_GL_CONTEXT_TYPE_GLX")]
pub static GL_CONTEXT_TYPE_GLX: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_CONTEXT_TYPE_GLX)
            .to_str()
            .unwrap()
    });
#[doc(alias = "GST_GL_CONTEXT_TYPE_WGL")]
pub static GL_CONTEXT_TYPE_WGL: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_CONTEXT_TYPE_WGL)
            .to_str()
            .unwrap()
    });
/// The name used in [`gst::Context`][crate::gst::Context] queries for requesting a [`GLDisplay`][crate::GLDisplay]
#[doc(alias = "GST_GL_DISPLAY_CONTEXT_TYPE")]
pub static GL_DISPLAY_CONTEXT_TYPE: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_DISPLAY_CONTEXT_TYPE)
            .to_str()
            .unwrap()
    });
/// The name of the GL memory allocator
#[doc(alias = "GST_GL_MEMORY_ALLOCATOR_NAME")]
pub static GL_MEMORY_ALLOCATOR_NAME: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_MEMORY_ALLOCATOR_NAME)
            .to_str()
            .unwrap()
    });
/// The name of the GL Memory PBO allocator
#[doc(alias = "GST_GL_MEMORY_PBO_ALLOCATOR_NAME")]
pub static GL_MEMORY_PBO_ALLOCATOR_NAME: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_MEMORY_PBO_ALLOCATOR_NAME)
            .to_str()
            .unwrap()
    });
#[doc(alias = "GST_GL_MEMORY_VIDEO_EXT_FORMATS")]
pub static GL_MEMORY_VIDEO_EXT_FORMATS: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_MEMORY_VIDEO_EXT_FORMATS)
            .to_str()
            .unwrap()
    });
/// The name of the GL renderbuffer allocator
#[doc(alias = "GST_GL_RENDERBUFFER_ALLOCATOR_NAME")]
pub static GL_RENDERBUFFER_ALLOCATOR_NAME: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_RENDERBUFFER_ALLOCATOR_NAME)
            .to_str()
            .unwrap()
    });
/// String used for [`GLTextureTarget::_2d`][crate::GLTextureTarget::_2d] in things like caps values
#[doc(alias = "GST_GL_TEXTURE_TARGET_2D_STR")]
pub static GL_TEXTURE_TARGET_2D_STR: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_TEXTURE_TARGET_2D_STR)
            .to_str()
            .unwrap()
    });
/// String used for [`GLTextureTarget::ExternalOes`][crate::GLTextureTarget::ExternalOes] in things like caps values
#[doc(alias = "GST_GL_TEXTURE_TARGET_EXTERNAL_OES_STR")]
pub static GL_TEXTURE_TARGET_EXTERNAL_OES_STR: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_TEXTURE_TARGET_EXTERNAL_OES_STR)
            .to_str()
            .unwrap()
    });
/// String used for [`GLTextureTarget::Rectangle`][crate::GLTextureTarget::Rectangle] in things like caps values
#[doc(alias = "GST_GL_TEXTURE_TARGET_RECTANGLE_STR")]
pub static GL_TEXTURE_TARGET_RECTANGLE_STR: once_cell::sync::Lazy<&'static str> =
    once_cell::sync::Lazy::new(|| unsafe {
        CStr::from_ptr(ffi::GST_GL_TEXTURE_TARGET_RECTANGLE_STR)
            .to_str()
            .unwrap()
    });