forked from mirrors/gstreamer-rs
39 lines
1.2 KiB
Rust
39 lines
1.2 KiB
Rust
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
|
// DO NOT EDIT
|
|
|
|
use crate::PlayerStreamInfo;
|
|
use glib::translate::*;
|
|
|
|
glib::wrapper! {
|
|
pub struct PlayerVideoInfo(Object<ffi::GstPlayerVideoInfo, ffi::GstPlayerVideoInfoClass>) @extends PlayerStreamInfo;
|
|
|
|
match fn {
|
|
get_type => || ffi::gst_player_video_info_get_type(),
|
|
}
|
|
}
|
|
|
|
impl PlayerVideoInfo {
|
|
#[doc(alias = "gst_player_video_info_get_bitrate")]
|
|
pub fn get_bitrate(&self) -> i32 {
|
|
unsafe { ffi::gst_player_video_info_get_bitrate(self.to_glib_none().0) }
|
|
}
|
|
|
|
#[doc(alias = "gst_player_video_info_get_height")]
|
|
pub fn get_height(&self) -> i32 {
|
|
unsafe { ffi::gst_player_video_info_get_height(self.to_glib_none().0) }
|
|
}
|
|
|
|
#[doc(alias = "gst_player_video_info_get_max_bitrate")]
|
|
pub fn get_max_bitrate(&self) -> i32 {
|
|
unsafe { ffi::gst_player_video_info_get_max_bitrate(self.to_glib_none().0) }
|
|
}
|
|
|
|
#[doc(alias = "gst_player_video_info_get_width")]
|
|
pub fn get_width(&self) -> i32 {
|
|
unsafe { ffi::gst_player_video_info_get_width(self.to_glib_none().0) }
|
|
}
|
|
}
|
|
|
|
unsafe impl Send for PlayerVideoInfo {}
|
|
unsafe impl Sync for PlayerVideoInfo {}
|