Struct libobs::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_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
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§fn eq(&self, other: &obs_video_info) -> bool
fn eq(&self, other: &obs_video_info) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for obs_video_info
impl PartialOrd for obs_video_info
source§fn partial_cmp(&self, other: &obs_video_info) -> Option<Ordering>
fn partial_cmp(&self, other: &obs_video_info) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.