gstreamer_play/auto/play_video_info.rs
1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
4// DO NOT EDIT
5
6use crate::{ffi, PlayStreamInfo};
7use glib::translate::*;
8
9glib::wrapper! {
10 #[doc(alias = "GstPlayVideoInfo")]
11 pub struct PlayVideoInfo(Object<ffi::GstPlayVideoInfo, ffi::GstPlayVideoInfoClass>) @extends PlayStreamInfo;
12
13 match fn {
14 type_ => || ffi::gst_play_video_info_get_type(),
15 }
16}
17
18impl PlayVideoInfo {
19 #[doc(alias = "gst_play_video_info_get_bitrate")]
20 #[doc(alias = "get_bitrate")]
21 pub fn bitrate(&self) -> i32 {
22 unsafe { ffi::gst_play_video_info_get_bitrate(self.to_glib_none().0) }
23 }
24
25 #[doc(alias = "gst_play_video_info_get_height")]
26 #[doc(alias = "get_height")]
27 pub fn height(&self) -> i32 {
28 unsafe { ffi::gst_play_video_info_get_height(self.to_glib_none().0) }
29 }
30
31 #[doc(alias = "gst_play_video_info_get_max_bitrate")]
32 #[doc(alias = "get_max_bitrate")]
33 pub fn max_bitrate(&self) -> i32 {
34 unsafe { ffi::gst_play_video_info_get_max_bitrate(self.to_glib_none().0) }
35 }
36
37 #[doc(alias = "gst_play_video_info_get_width")]
38 #[doc(alias = "get_width")]
39 pub fn width(&self) -> i32 {
40 unsafe { ffi::gst_play_video_info_get_width(self.to_glib_none().0) }
41 }
42}
43
44unsafe impl Send for PlayVideoInfo {}
45unsafe impl Sync for PlayVideoInfo {}