gstreamer_play/auto/
play_video_info.rs
1use crate::{ffi, PlayStreamInfo};
7use glib::translate::*;
8
9glib::wrapper! {
10 #[doc(alias = "GstPlayVideoInfo")]
16 pub struct PlayVideoInfo(Object<ffi::GstPlayVideoInfo, ffi::GstPlayVideoInfoClass>) @extends PlayStreamInfo;
17
18 match fn {
19 type_ => || ffi::gst_play_video_info_get_type(),
20 }
21}
22
23impl PlayVideoInfo {
24 #[doc(alias = "gst_play_video_info_get_bitrate")]
29 #[doc(alias = "get_bitrate")]
30 pub fn bitrate(&self) -> i32 {
31 unsafe { ffi::gst_play_video_info_get_bitrate(self.to_glib_none().0) }
32 }
33
34 #[doc(alias = "gst_play_video_info_get_height")]
39 #[doc(alias = "get_height")]
40 pub fn height(&self) -> i32 {
41 unsafe { ffi::gst_play_video_info_get_height(self.to_glib_none().0) }
42 }
43
44 #[doc(alias = "gst_play_video_info_get_max_bitrate")]
49 #[doc(alias = "get_max_bitrate")]
50 pub fn max_bitrate(&self) -> i32 {
51 unsafe { ffi::gst_play_video_info_get_max_bitrate(self.to_glib_none().0) }
52 }
53
54 #[doc(alias = "gst_play_video_info_get_width")]
59 #[doc(alias = "get_width")]
60 pub fn width(&self) -> i32 {
61 unsafe { ffi::gst_play_video_info_get_width(self.to_glib_none().0) }
62 }
63}
64
65unsafe impl Send for PlayVideoInfo {}
66unsafe impl Sync for PlayVideoInfo {}