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