pub struct ObsVideoInfo { /* private fields */ }Expand description
A wrapper for obs_video_info, which is used
to pass information to libobs for the new OBS
video context after resetting the old OBS
video context. The obs_video_info is pinned in memory
to ensure its address never changes, as required by libobs.
Implementations§
Source§impl ObsVideoInfo
impl ObsVideoInfo
Sourcepub fn new(ovi: obs_video_info, graphics_module: ObsString) -> Self
👎Deprecated: Use new_with_sdr_info or the ObsVideoInfoBuilder instead
pub fn new(ovi: obs_video_info, graphics_module: ObsString) -> Self
Creates a new ObsVideoInfo.
Note that this function is not meant to
be used externally. The recommended,
supported way to build new ObsVideoInfo
structs is through ObsVideoInfoBuilder.
Sourcepub fn new_with_sdr_info(
ovi: obs_video_info,
graphics_module: ObsString,
sdr_info: ObsSdrVideoInfo,
) -> Self
pub fn new_with_sdr_info( ovi: obs_video_info, graphics_module: ObsString, sdr_info: ObsSdrVideoInfo, ) -> Self
Creates a new ObsVideoInfo.
Note that this function is not meant to
be used externally. The recommended,
supported way to build new ObsVideoInfo
structs is through ObsVideoInfoBuilder.
pub fn graphics_module(&self) -> &ObsString
pub fn get_fps_num(&self) -> u32
pub fn get_fps_den(&self) -> u32
pub fn get_base_width(&self) -> u32
pub fn get_base_height(&self) -> u32
pub fn get_output_width(&self) -> u32
pub fn get_output_height(&self) -> u32
pub fn get_sdr_info(&self) -> &ObsSdrVideoInfo
Trait Implementations§
Source§impl Debug for ObsVideoInfo
impl Debug for ObsVideoInfo
Auto Trait Implementations§
impl Freeze for ObsVideoInfo
impl RefUnwindSafe for ObsVideoInfo
impl Send for ObsVideoInfo
impl Sync for ObsVideoInfo
impl Unpin for ObsVideoInfo
impl UnwindSafe for ObsVideoInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more