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)
|
2021-04-01 13:58:41 +00:00
|
|
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
2017-08-01 12:36:39 +00:00
|
|
|
// DO NOT EDIT
|
|
|
|
|
|
|
|
use glib::object::IsA;
|
|
|
|
use glib::translate::*;
|
|
|
|
|
2020-12-17 22:34:53 +00:00
|
|
|
glib::wrapper! {
|
2021-06-02 07:47:51 +00:00
|
|
|
#[doc(alias = "GstPlayerStreamInfo")]
|
2020-11-22 10:29:02 +00:00
|
|
|
pub struct PlayerStreamInfo(Object<ffi::GstPlayerStreamInfo, ffi::GstPlayerStreamInfoClass>);
|
2017-08-01 12:36:39 +00:00
|
|
|
|
|
|
|
match fn {
|
2021-04-19 19:55:01 +00:00
|
|
|
type_ => || ffi::gst_player_stream_info_get_type(),
|
2017-08-01 12:36:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
unsafe impl Send for PlayerStreamInfo {}
|
|
|
|
unsafe impl Sync for PlayerStreamInfo {}
|
|
|
|
|
2019-01-16 11:32:39 +00:00
|
|
|
pub const NONE_PLAYER_STREAM_INFO: Option<&PlayerStreamInfo> = None;
|
|
|
|
|
2018-12-08 09:05:20 +00:00
|
|
|
pub trait PlayerStreamInfoExt: 'static {
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_player_stream_info_get_caps")]
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "get_caps")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn caps(&self) -> Option<gst::Caps>;
|
2017-08-01 12:36:39 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_player_stream_info_get_codec")]
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "get_codec")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn codec(&self) -> Option<glib::GString>;
|
2017-08-01 12:36:39 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_player_stream_info_get_index")]
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "get_index")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn index(&self) -> i32;
|
2017-08-01 12:36:39 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_player_stream_info_get_stream_type")]
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "get_stream_type")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn stream_type(&self) -> glib::GString;
|
2017-08-01 12:36:39 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_player_stream_info_get_tags")]
|
2021-05-03 18:35:37 +00:00
|
|
|
#[doc(alias = "get_tags")]
|
2021-04-11 19:38:18 +00:00
|
|
|
fn tags(&self) -> Option<gst::TagList>;
|
2017-08-01 12:36:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
impl<O: IsA<PlayerStreamInfo>> PlayerStreamInfoExt for O {
|
2021-04-11 19:38:18 +00:00
|
|
|
fn caps(&self) -> Option<gst::Caps> {
|
2017-08-01 12:36:39 +00:00
|
|
|
unsafe {
|
2020-11-22 10:29:02 +00:00
|
|
|
from_glib_none(ffi::gst_player_stream_info_get_caps(const_override(
|
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
)))
|
2017-08-01 12:36:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-11 19:38:18 +00:00
|
|
|
fn codec(&self) -> Option<glib::GString> {
|
2017-08-01 12:36:39 +00:00
|
|
|
unsafe {
|
2020-11-22 10:29:02 +00:00
|
|
|
from_glib_none(ffi::gst_player_stream_info_get_codec(const_override(
|
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
)))
|
2017-08-01 12:36:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-11 19:38:18 +00:00
|
|
|
fn index(&self) -> i32 {
|
2017-08-01 12:36:39 +00:00
|
|
|
unsafe {
|
2020-11-22 10:29:02 +00:00
|
|
|
ffi::gst_player_stream_info_get_index(const_override(self.as_ref().to_glib_none().0))
|
2017-08-01 12:36:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-11 19:38:18 +00:00
|
|
|
fn stream_type(&self) -> glib::GString {
|
2017-08-01 12:36:39 +00:00
|
|
|
unsafe {
|
2020-11-22 10:29:02 +00:00
|
|
|
from_glib_none(ffi::gst_player_stream_info_get_stream_type(const_override(
|
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
)))
|
2017-08-01 12:36:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-11 19:38:18 +00:00
|
|
|
fn tags(&self) -> Option<gst::TagList> {
|
2017-08-01 12:36:39 +00:00
|
|
|
unsafe {
|
2020-11-22 10:29:02 +00:00
|
|
|
from_glib_none(ffi::gst_player_stream_info_get_tags(const_override(
|
|
|
|
self.as_ref().to_glib_none().0,
|
|
|
|
)))
|
2017-08-01 12:36:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|