gstreamer-rs/gstreamer-player/src/auto/player_video_info.rs

46 lines
1.5 KiB
Rust
Raw Normal View History

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)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT
2020-11-22 10:29:02 +00:00
use crate::PlayerStreamInfo;
use glib::translate::*;
2020-12-17 22:34:53 +00:00
glib::wrapper! {
#[doc(alias = "GstPlayerVideoInfo")]
2020-11-22 10:29:02 +00:00
pub struct PlayerVideoInfo(Object<ffi::GstPlayerVideoInfo, ffi::GstPlayerVideoInfoClass>) @extends PlayerStreamInfo;
match fn {
type_ => || ffi::gst_player_video_info_get_type(),
}
}
impl PlayerVideoInfo {
2020-12-08 13:00:17 +00:00
#[doc(alias = "gst_player_video_info_get_bitrate")]
#[doc(alias = "get_bitrate")]
2021-04-11 19:38:18 +00:00
pub fn bitrate(&self) -> i32 {
2020-11-22 10:29:02 +00:00
unsafe { ffi::gst_player_video_info_get_bitrate(self.to_glib_none().0) }
}
2020-12-08 13:00:17 +00:00
#[doc(alias = "gst_player_video_info_get_height")]
#[doc(alias = "get_height")]
2021-04-11 19:38:18 +00:00
pub fn height(&self) -> i32 {
2020-11-22 10:29:02 +00:00
unsafe { ffi::gst_player_video_info_get_height(self.to_glib_none().0) }
}
2020-12-08 13:00:17 +00:00
#[doc(alias = "gst_player_video_info_get_max_bitrate")]
#[doc(alias = "get_max_bitrate")]
2021-04-11 19:38:18 +00:00
pub fn max_bitrate(&self) -> i32 {
2020-11-22 10:29:02 +00:00
unsafe { ffi::gst_player_video_info_get_max_bitrate(self.to_glib_none().0) }
}
2020-12-08 13:00:17 +00:00
#[doc(alias = "gst_player_video_info_get_width")]
#[doc(alias = "get_width")]
2021-04-11 19:38:18 +00:00
pub fn width(&self) -> i32 {
2020-11-22 10:29:02 +00:00
unsafe { ffi::gst_player_video_info_get_width(self.to_glib_none().0) }
}
}
unsafe impl Send for PlayerVideoInfo {}
unsafe impl Sync for PlayerVideoInfo {}