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

38 lines
1.5 KiB
Rust

// 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 glib::translate::*;
glib::wrapper! {
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct GLAllocationParams(Boxed<ffi::GstGLAllocationParams>);
match fn {
copy => |ptr| ffi::gst_gl_allocation_params_copy(mut_override(ptr)),
free => |ptr| ffi::gst_gl_allocation_params_free(ptr),
type_ => || ffi::gst_gl_allocation_params_get_type(),
}
}
impl GLAllocationParams {
#[doc(alias = "gst_gl_allocation_params_copy_data")]
pub fn copy_data(&self, dest: &mut GLAllocationParams) {
unsafe {
ffi::gst_gl_allocation_params_copy_data(
mut_override(self.to_glib_none().0),
dest.to_glib_none_mut().0,
);
}
}
//#[doc(alias = "gst_gl_allocation_params_init")]
//pub fn init<P: Fn(&GLAllocationParams) + Send + Sync + 'static, Q: Fn() + Send + Sync + 'static>(&mut self, struct_size: usize, alloc_flags: u32, copy: P, free: Q, context: &impl IsA<GLContext>, alloc_size: usize, alloc_params: Option<&gst::AllocationParams>, wrapped_data: /*Unimplemented*/Option<Basic: Pointer>, gl_handle: /*Unimplemented*/Option<Basic: Pointer>) -> bool {
// unsafe { TODO: call ffi:gst_gl_allocation_params_init() }
//}
}
unsafe impl Send for GLAllocationParams {}
unsafe impl Sync for GLAllocationParams {}