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.
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.
Sourcepub fn as_ptr(&self) -> *mut obs_video_info
pub fn as_ptr(&self) -> *mut obs_video_info
Returns a pointer to the pinned obs_video_info.