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)
|
2017-08-01 12:36:39 +00:00
|
|
|
// DO NOT EDIT
|
|
|
|
|
|
|
|
use glib::translate::*;
|
2019-03-19 07:40:05 +00:00
|
|
|
use gst_player_sys;
|
2019-06-18 10:12:00 +00:00
|
|
|
use PlayerStreamInfo;
|
2017-08-01 12:36:39 +00:00
|
|
|
|
|
|
|
glib_wrapper! {
|
2020-11-07 10:17:25 +00:00
|
|
|
pub struct PlayerVideoInfo(Object<gst_player_sys::GstPlayerVideoInfo, gst_player_sys::GstPlayerVideoInfoClass>) @extends PlayerStreamInfo;
|
2017-08-01 12:36:39 +00:00
|
|
|
|
|
|
|
match fn {
|
2019-03-19 07:40:05 +00:00
|
|
|
get_type => || gst_player_sys::gst_player_video_info_get_type(),
|
2017-08-01 12:36:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-08-17 11:50:25 +00:00
|
|
|
impl PlayerVideoInfo {
|
|
|
|
pub fn get_bitrate(&self) -> i32 {
|
2019-06-18 10:12:00 +00:00
|
|
|
unsafe { gst_player_sys::gst_player_video_info_get_bitrate(self.to_glib_none().0) }
|
2017-08-01 12:36:39 +00:00
|
|
|
}
|
|
|
|
|
2017-08-17 11:50:25 +00:00
|
|
|
pub fn get_height(&self) -> i32 {
|
2019-06-18 10:12:00 +00:00
|
|
|
unsafe { gst_player_sys::gst_player_video_info_get_height(self.to_glib_none().0) }
|
2017-08-01 12:36:39 +00:00
|
|
|
}
|
|
|
|
|
2017-08-17 11:50:25 +00:00
|
|
|
pub fn get_max_bitrate(&self) -> i32 {
|
2019-06-18 10:12:00 +00:00
|
|
|
unsafe { gst_player_sys::gst_player_video_info_get_max_bitrate(self.to_glib_none().0) }
|
2017-08-01 12:36:39 +00:00
|
|
|
}
|
|
|
|
|
2017-08-17 11:50:25 +00:00
|
|
|
pub fn get_width(&self) -> i32 {
|
2019-06-18 10:12:00 +00:00
|
|
|
unsafe { gst_player_sys::gst_player_video_info_get_width(self.to_glib_none().0) }
|
2017-08-01 12:36:39 +00:00
|
|
|
}
|
|
|
|
}
|
2017-08-17 11:50:25 +00:00
|
|
|
|
|
|
|
unsafe impl Send for PlayerVideoInfo {}
|
|
|
|
unsafe impl Sync for PlayerVideoInfo {}
|