#[repr(C)]
pub struct obs_source_frame {
Show 16 fields pub data: [*mut u8; 8], pub linesize: [u32; 8], pub width: u32, pub height: u32, pub timestamp: u64, pub format: video_format, pub color_matrix: [f32; 16], pub full_range: bool, pub max_luminance: u16, pub color_range_min: [f32; 3], pub color_range_max: [f32; 3], pub flip: bool, pub flags: u8, pub trc: u8, pub refs: c_long, pub prev_frame: bool,
}
Expand description

Source asynchronous video output structure. Used with obs_source_output_video to output asynchronous video. Video is buffered as necessary to play according to timestamps. When used with audio output, audio is synced to video as it is played.

If a YUV format is specified, it will be automatically upsampled and converted to RGB via shader on the graphics processor.

NOTE: Non-YUV formats will always be treated as full range with this structure! Use obs_source_frame2 along with obs_source_output_video2 instead if partial range support is desired for non-YUV video formats.

Fields

data: [*mut u8; 8]linesize: [u32; 8]width: u32height: u32timestamp: u64format: video_formatcolor_matrix: [f32; 16]full_range: boolmax_luminance: u16color_range_min: [f32; 3]color_range_max: [f32; 3]flip: boolflags: u8trc: u8refs: c_longprev_frame: bool

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.