2018-04-23 17:34:22 +00:00
|
|
|
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
|
|
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
2018-02-19 20:15:52 +00:00
|
|
|
// DO NOT EDIT
|
|
|
|
|
2018-12-09 16:06:12 +00:00
|
|
|
use glib::GString;
|
2018-02-19 20:15:52 +00:00
|
|
|
use glib::object::IsA;
|
|
|
|
use glib::translate::*;
|
|
|
|
use gst;
|
2019-03-19 07:40:05 +00:00
|
|
|
use gst_pbutils_sys;
|
2018-02-19 20:15:52 +00:00
|
|
|
|
|
|
|
glib_wrapper! {
|
2019-03-19 07:40:05 +00:00
|
|
|
pub struct DiscovererStreamInfo(Object<gst_pbutils_sys::GstDiscovererStreamInfo, DiscovererStreamInfoClass>);
|
2018-02-19 20:15:52 +00:00
|
|
|
|
|
|
|
match fn {
|
2019-03-19 07:40:05 +00:00
|
|
|
get_type => || gst_pbutils_sys::gst_discoverer_stream_info_get_type(),
|
2018-02-19 20:15:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
unsafe impl Send for DiscovererStreamInfo {}
|
|
|
|
unsafe impl Sync for DiscovererStreamInfo {}
|
|
|
|
|
2019-01-16 11:32:39 +00:00
|
|
|
pub const NONE_DISCOVERER_STREAM_INFO: Option<&DiscovererStreamInfo> = None;
|
|
|
|
|
2018-12-08 09:05:20 +00:00
|
|
|
pub trait DiscovererStreamInfoExt: 'static {
|
2018-02-19 20:15:52 +00:00
|
|
|
fn get_caps(&self) -> Option<gst::Caps>;
|
|
|
|
|
|
|
|
fn get_misc(&self) -> Option<gst::Structure>;
|
|
|
|
|
|
|
|
fn get_next(&self) -> Option<DiscovererStreamInfo>;
|
|
|
|
|
|
|
|
fn get_previous(&self) -> Option<DiscovererStreamInfo>;
|
|
|
|
|
2018-12-09 16:06:12 +00:00
|
|
|
fn get_stream_id(&self) -> Option<GString>;
|
2018-02-19 20:15:52 +00:00
|
|
|
|
2018-12-09 16:06:12 +00:00
|
|
|
fn get_stream_type_nick(&self) -> GString;
|
2018-02-19 20:15:52 +00:00
|
|
|
|
|
|
|
fn get_tags(&self) -> Option<gst::TagList>;
|
|
|
|
|
|
|
|
fn get_toc(&self) -> Option<gst::Toc>;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<O: IsA<DiscovererStreamInfo>> DiscovererStreamInfoExt for O {
|
|
|
|
fn get_caps(&self) -> Option<gst::Caps> {
|
|
|
|
unsafe {
|
2019-03-19 07:40:05 +00:00
|
|
|
from_glib_full(gst_pbutils_sys::gst_discoverer_stream_info_get_caps(self.as_ref().to_glib_none().0))
|
2018-02-19 20:15:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn get_misc(&self) -> Option<gst::Structure> {
|
|
|
|
unsafe {
|
2019-03-19 07:40:05 +00:00
|
|
|
from_glib_none(gst_pbutils_sys::gst_discoverer_stream_info_get_misc(self.as_ref().to_glib_none().0))
|
2018-02-19 20:15:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn get_next(&self) -> Option<DiscovererStreamInfo> {
|
|
|
|
unsafe {
|
2019-03-19 07:40:05 +00:00
|
|
|
from_glib_full(gst_pbutils_sys::gst_discoverer_stream_info_get_next(self.as_ref().to_glib_none().0))
|
2018-02-19 20:15:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn get_previous(&self) -> Option<DiscovererStreamInfo> {
|
|
|
|
unsafe {
|
2019-03-19 07:40:05 +00:00
|
|
|
from_glib_full(gst_pbutils_sys::gst_discoverer_stream_info_get_previous(self.as_ref().to_glib_none().0))
|
2018-02-19 20:15:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-09 16:06:12 +00:00
|
|
|
fn get_stream_id(&self) -> Option<GString> {
|
2018-02-19 20:15:52 +00:00
|
|
|
unsafe {
|
2019-03-19 07:40:05 +00:00
|
|
|
from_glib_none(gst_pbutils_sys::gst_discoverer_stream_info_get_stream_id(self.as_ref().to_glib_none().0))
|
2018-02-19 20:15:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-09 16:06:12 +00:00
|
|
|
fn get_stream_type_nick(&self) -> GString {
|
2018-02-19 20:15:52 +00:00
|
|
|
unsafe {
|
2019-03-19 07:40:05 +00:00
|
|
|
from_glib_none(gst_pbutils_sys::gst_discoverer_stream_info_get_stream_type_nick(self.as_ref().to_glib_none().0))
|
2018-02-19 20:15:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn get_tags(&self) -> Option<gst::TagList> {
|
|
|
|
unsafe {
|
2019-03-19 07:40:05 +00:00
|
|
|
from_glib_none(gst_pbutils_sys::gst_discoverer_stream_info_get_tags(self.as_ref().to_glib_none().0))
|
2018-02-19 20:15:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn get_toc(&self) -> Option<gst::Toc> {
|
|
|
|
unsafe {
|
2019-03-19 07:40:05 +00:00
|
|
|
from_glib_none(gst_pbutils_sys::gst_discoverer_stream_info_get_toc(self.as_ref().to_glib_none().0))
|
2018-02-19 20:15:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|