| 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 | |
| 6 | use crate::ffi; |
| 7 | use glib::{prelude::*, translate::*}; |
| 8 | |
| 9 | glib::wrapper! { |
| 10 | #[doc (alias = "GstVideoBufferPool" )] |
| 11 | pub struct VideoBufferPool(Object<ffi::GstVideoBufferPool, ffi::GstVideoBufferPoolClass>) @extends gst::BufferPool, gst::Object; |
| 12 | |
| 13 | match fn { |
| 14 | type_ => || ffi::gst_video_buffer_pool_get_type(), |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | impl VideoBufferPool { |
| 19 | pub const NONE: Option<&'static VideoBufferPool> = None; |
| 20 | |
| 21 | #[doc (alias = "gst_video_buffer_pool_new" )] |
| 22 | pub fn new() -> VideoBufferPool { |
| 23 | assert_initialized_main_thread!(); |
| 24 | unsafe { gst::BufferPool::from_glib_full(ptr:ffi::gst_video_buffer_pool_new()).unsafe_cast() } |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | impl Default for VideoBufferPool { |
| 29 | fn default() -> Self { |
| 30 | Self::new() |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | unsafe impl Send for VideoBufferPool {} |
| 35 | unsafe impl Sync for VideoBufferPool {} |
| 36 | |