#[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_charGraphics 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: u32Video adapter index to use (NOTE: avoid for optimus laptops)
gpu_conversion: boolUse 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