#[repr(C)]pub struct obs_video_info {Show 13 fields
pub graphics_module: *const c_char,
pub fps_num: u32,
pub fps_den: u32,
pub base_width: u32,
pub base_height: u32,
pub output_width: u32,
pub output_height: u32,
pub output_format: video_format,
pub adapter: u32,
pub gpu_conversion: bool,
pub colorspace: video_colorspace,
pub range: video_range_type,
pub scale_type: obs_scale_type,
}
Expand description
Video initialization structure
Fields§
§graphics_module: *const c_char
Graphics module to use (usually “libobs-opengl” or “libobs-d3d11”)
fps_num: u32
< Output FPS numerator
fps_den: u32
< Output FPS denominator
base_width: u32
< Base compositing width
base_height: u32
< Base compositing height
output_width: u32
< Output width
output_height: u32
< Output height
output_format: video_format
< Output format
adapter: u32
Video adapter index to use (NOTE: avoid for optimus laptops)
gpu_conversion: bool
Use shaders to convert to different color formats
colorspace: video_colorspace
< YUV type (if YUV)
range: video_range_type
< YUV range (if YUV)
scale_type: obs_scale_type
< How to scale if scaling
Trait Implementations§
Source§impl Clone for obs_video_info
impl Clone for obs_video_info
Source§fn clone(&self) -> obs_video_info
fn clone(&self) -> obs_video_info
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for obs_video_info
impl Debug for obs_video_info
Source§impl Ord for obs_video_info
impl Ord for obs_video_info
Source§fn cmp(&self, other: &obs_video_info) -> Ordering
fn cmp(&self, other: &obs_video_info) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for obs_video_info
impl PartialEq for obs_video_info
Source§impl PartialOrd for obs_video_info
impl PartialOrd for obs_video_info
impl Copy for obs_video_info
impl Eq for obs_video_info
impl StructuralPartialEq for obs_video_info
Auto Trait Implementations§
impl Freeze for obs_video_info
impl RefUnwindSafe for obs_video_info
impl !Send for obs_video_info
impl !Sync for obs_video_info
impl Unpin for obs_video_info
impl UnwindSafe for obs_video_info
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