2019-05-12 15:17:33 +00:00
|
|
|
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
|
|
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
2021-04-01 13:58:41 +00:00
|
|
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
2019-05-12 15:17:33 +00:00
|
|
|
// DO NOT EDIT
|
|
|
|
|
|
|
|
use glib::object::Cast;
|
|
|
|
use glib::translate::*;
|
|
|
|
|
2020-12-17 22:34:53 +00:00
|
|
|
glib::wrapper! {
|
2020-11-22 09:50:37 +00:00
|
|
|
pub struct VideoBufferPool(Object<ffi::GstVideoBufferPool, ffi::GstVideoBufferPoolClass>) @extends gst::BufferPool, gst::Object;
|
2019-05-12 15:17:33 +00:00
|
|
|
|
|
|
|
match fn {
|
2021-04-19 19:55:01 +00:00
|
|
|
type_ => || ffi::gst_video_buffer_pool_get_type(),
|
2019-05-12 15:17:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl VideoBufferPool {
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_video_buffer_pool_new")]
|
2019-05-12 15:17:33 +00:00
|
|
|
pub fn new() -> VideoBufferPool {
|
|
|
|
assert_initialized_main_thread!();
|
2020-11-22 09:50:37 +00:00
|
|
|
unsafe { gst::BufferPool::from_glib_full(ffi::gst_video_buffer_pool_new()).unsafe_cast() }
|
2019-05-12 15:17:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Default for VideoBufferPool {
|
|
|
|
fn default() -> Self {
|
|
|
|
Self::new()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
unsafe impl Send for VideoBufferPool {}
|
|
|
|
unsafe impl Sync for VideoBufferPool {}
|
|
|
|
|
|
|
|
pub const NONE_VIDEO_BUFFER_POOL: Option<&VideoBufferPool> = None;
|