gstreamer-rs/gstreamer-video/src/auto/video_buffer_pool.rs
Marijn Suijten 6ec0e3ac4b Update gir and regenerate with extended gir-dirs comments
Gir now prints all directories and their hashes in the version file and
comments; useful now that gstreamer-rs is being generated from both
gir-files/ and gst-gir-files/ submodules.
2021-04-01 15:58:41 +02:00

35 lines
1,005 B
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::object::Cast;
use glib::translate::*;
glib::wrapper! {
pub struct VideoBufferPool(Object<ffi::GstVideoBufferPool, ffi::GstVideoBufferPoolClass>) @extends gst::BufferPool, gst::Object;
match fn {
get_type => || ffi::gst_video_buffer_pool_get_type(),
}
}
impl VideoBufferPool {
#[doc(alias = "gst_video_buffer_pool_new")]
pub fn new() -> VideoBufferPool {
assert_initialized_main_thread!();
unsafe { gst::BufferPool::from_glib_full(ffi::gst_video_buffer_pool_new()).unsafe_cast() }
}
}
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;