Struct obs_sys::obs_video_info
source · #[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
sourceimpl Clone for obs_video_info
impl Clone for obs_video_info
sourcefn clone(&self) -> obs_video_info
fn clone(&self) -> obs_video_info
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for obs_video_info
impl Debug for obs_video_info
sourceimpl Default for obs_video_info
impl Default for obs_video_info
impl Copy for obs_video_info
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more