gstreamer_base/auto/
push_src.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::{ffi, BaseSrc};
7
8glib::wrapper! {
9    /// This class is mostly useful for elements that cannot do
10    /// random access, or at least very slowly. The source usually
11    /// prefers to push out a fixed size buffer.
12    ///
13    /// Subclasses usually operate in a format that is different from the
14    /// default GST_FORMAT_BYTES format of [`BaseSrc`][crate::BaseSrc].
15    ///
16    /// Classes extending this base class will usually be scheduled
17    /// in a push based mode. If the peer accepts to operate without
18    /// offsets and within the limits of the allowed block size, this
19    /// class can operate in getrange based mode automatically. To make
20    /// this possible, the subclass should implement and override the
21    /// SCHEDULING query.
22    ///
23    /// The subclass should extend the methods from the baseclass in
24    /// addition to the ::create method.
25    ///
26    /// Seeking, flushing, scheduling and sync is all handled by this
27    /// base class.
28    ///
29    /// # Implements
30    ///
31    /// [`BaseSrcExt`][trait@crate::prelude::BaseSrcExt], [`trait@gst::prelude::ElementExt`], [`trait@gst::prelude::ObjectExt`], [`trait@glib::ObjectExt`], [`BaseSrcExtManual`][trait@crate::prelude::BaseSrcExtManual]
32    #[doc(alias = "GstPushSrc")]
33    pub struct PushSrc(Object<ffi::GstPushSrc, ffi::GstPushSrcClass>) @extends BaseSrc, gst::Element, gst::Object;
34
35    match fn {
36        type_ => || ffi::gst_push_src_get_type(),
37    }
38}
39
40impl PushSrc {
41    pub const NONE: Option<&'static PushSrc> = None;
42}
43
44unsafe impl Send for PushSrc {}
45unsafe impl Sync for PushSrc {}