gstreamer-rs/gstreamer-gl/src/auto/gl_display_egl.rs

41 lines
1.2 KiB
Rust
Raw Normal View History

2018-11-27 21:52:42 +00:00
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
use glib::translate::*;
use gst;
2019-03-19 07:40:05 +00:00
use gst_gl_sys;
use GLDisplay;
2018-11-27 21:52:42 +00:00
glib_wrapper! {
2019-03-19 07:40:05 +00:00
pub struct GLDisplayEGL(Object<gst_gl_sys::GstGLDisplayEGL, gst_gl_sys::GstGLDisplayEGLClass, GLDisplayEGLClass>) @extends GLDisplay, gst::Object;
2018-11-27 21:52:42 +00:00
match fn {
2019-03-19 07:40:05 +00:00
get_type => || gst_gl_sys::gst_gl_display_egl_get_type(),
2018-11-27 21:52:42 +00:00
}
}
impl GLDisplayEGL {
pub fn new() -> GLDisplayEGL {
assert_initialized_main_thread!();
unsafe { from_glib_full(gst_gl_sys::gst_gl_display_egl_new()) }
2018-11-27 21:52:42 +00:00
}
2019-01-29 13:53:44 +00:00
//pub fn new_with_egl_display(display: /*Unimplemented*/Option<Fundamental: Pointer>) -> GLDisplayEGL {
2019-03-19 07:40:05 +00:00
// unsafe { TODO: call gst_gl_sys:gst_gl_display_egl_new_with_egl_display() }
2018-11-27 21:52:42 +00:00
//}
//pub fn get_from_native(type_: GLDisplayType, display: /*Unimplemented*/Fundamental: UIntPtr) -> /*Unimplemented*/Option<Fundamental: Pointer> {
2019-03-19 07:40:05 +00:00
// unsafe { TODO: call gst_gl_sys:gst_gl_display_egl_get_from_native() }
2018-11-27 21:52:42 +00:00
//}
}
impl Default for GLDisplayEGL {
fn default() -> Self {
Self::new()
}
}
unsafe impl Send for GLDisplayEGL {}
unsafe impl Sync for GLDisplayEGL {}