gstreamer_video/auto/video_dmabuf_pool.rs
1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
4// DO NOT EDIT
5
6use crate::{VideoBufferPool, ffi};
7use glib::{prelude::*, translate::*};
8
9glib::wrapper! {
10 #[doc(alias = "GstVideoDmabufPool")]
11 pub struct VideoDmabufPool(Object<ffi::GstVideoDmabufPool, ffi::GstVideoDmabufPoolClass>) @extends VideoBufferPool, gst::BufferPool, gst::Object;
12
13 match fn {
14 type_ => || ffi::gst_video_dmabuf_pool_get_type(),
15 }
16}
17
18impl VideoDmabufPool {
19 #[doc(alias = "gst_video_dmabuf_pool_new")]
20 pub fn new() -> Option<VideoDmabufPool> {
21 assert_initialized_main_thread!();
22 unsafe {
23 Option::<gst::BufferPool>::from_glib_full(ffi::gst_video_dmabuf_pool_new())
24 .map(|o| o.unsafe_cast())
25 }
26 }
27}
28
29unsafe impl Send for VideoDmabufPool {}
30unsafe impl Sync for VideoDmabufPool {}