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
Use new_with_sdr_info or the ObsVideoInfoBuilder instead
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 Forget for ObsVideoInfo
impl Freeze for ObsVideoInfowhere
*const obs_video_info is !null: Freeze,
PhantomData<obs_video_info>: Freeze,
*const [u8] is !null: Freeze,
PhantomData<[u8]>: Freeze,
impl Move for ObsVideoInfo
impl RefUnwindSafe for ObsVideoInfo
impl Send for ObsVideoInfo
impl Sync for ObsVideoInfo
impl Unpin for ObsVideoInfo
impl UnsafeUnpin for ObsVideoInfowhere
*const obs_video_info is !null: UnsafeUnpin,
PhantomData<obs_video_info>: UnsafeUnpin,
*const [u8] is !null: UnsafeUnpin,
PhantomData<[u8]>: UnsafeUnpin,
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