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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.