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 // DO NOT EDIT 4 5 use glib::translate::*; 6 use gst_pbutils_sys; 7 use DiscovererStreamInfo; 8 9 glib_wrapper! { 10 pub struct DiscovererVideoInfo(Object<gst_pbutils_sys::GstDiscovererVideoInfo, DiscovererVideoInfoClass>) @extends DiscovererStreamInfo; 11 12 match fn { 13 get_type => || gst_pbutils_sys::gst_discoverer_video_info_get_type(), 14 } 15 } 16 17 impl DiscovererVideoInfo { get_bitrate(&self) -> u3218 pub fn get_bitrate(&self) -> u32 { 19 unsafe { gst_pbutils_sys::gst_discoverer_video_info_get_bitrate(self.to_glib_none().0) } 20 } 21 get_depth(&self) -> u3222 pub fn get_depth(&self) -> u32 { 23 unsafe { gst_pbutils_sys::gst_discoverer_video_info_get_depth(self.to_glib_none().0) } 24 } 25 get_height(&self) -> u3226 pub fn get_height(&self) -> u32 { 27 unsafe { gst_pbutils_sys::gst_discoverer_video_info_get_height(self.to_glib_none().0) } 28 } 29 get_max_bitrate(&self) -> u3230 pub fn get_max_bitrate(&self) -> u32 { 31 unsafe { gst_pbutils_sys::gst_discoverer_video_info_get_max_bitrate(self.to_glib_none().0) } 32 } 33 get_width(&self) -> u3234 pub fn get_width(&self) -> u32 { 35 unsafe { gst_pbutils_sys::gst_discoverer_video_info_get_width(self.to_glib_none().0) } 36 } 37 is_image(&self) -> bool38 pub fn is_image(&self) -> bool { 39 unsafe { 40 from_glib(gst_pbutils_sys::gst_discoverer_video_info_is_image( 41 self.to_glib_none().0, 42 )) 43 } 44 } 45 is_interlaced(&self) -> bool46 pub fn is_interlaced(&self) -> bool { 47 unsafe { 48 from_glib(gst_pbutils_sys::gst_discoverer_video_info_is_interlaced( 49 self.to_glib_none().0, 50 )) 51 } 52 } 53 } 54 55 unsafe impl Send for DiscovererVideoInfo {} 56 unsafe impl Sync for DiscovererVideoInfo {} 57