pub struct V4L2InputSourceUpdater<'a> { /* private fields */ }Available on Linux only.
Expand description
Used to update the source this updater was created from. For more details look at docs for the corresponding builder.
Implementations§
Source§impl<'a> V4L2InputSourceUpdater<'a>
impl<'a> V4L2InputSourceUpdater<'a>
Sourcepub fn set_device_id<T: Into<ObsString> + Sync + Send>(
self,
device_id: T,
) -> Self
pub fn set_device_id<T: Into<ObsString> + Sync + Send>( self, device_id: T, ) -> Self
Device ID/path (e.g., “/dev/video0”)
Sourcepub fn set_pixelformat(self, pixelformat: i64) -> Self
pub fn set_pixelformat(self, pixelformat: i64) -> Self
Pixel format (FOURCC code as integer)
Sourcepub fn set_standard(self, standard: i64) -> Self
pub fn set_standard(self, standard: i64) -> Self
Video standard for analog inputs
Sourcepub fn set_dv_timing(self, dv_timing: i64) -> Self
pub fn set_dv_timing(self, dv_timing: i64) -> Self
DV timing for digital inputs
pub fn set_resolution(self, resolution: i64) -> Self
pub fn set_framerate(self, framerate: i64) -> Self
Sourcepub fn set_color_range(self, color_range: i64) -> Self
pub fn set_color_range(self, color_range: i64) -> Self
Color range setting
Sourcepub fn set_auto_reset(self, auto_reset: bool) -> Self
pub fn set_auto_reset(self, auto_reset: bool) -> Self
Auto-reset on timeout
Sourcepub fn set_timeout_frames(self, timeout_frames: i64) -> Self
pub fn set_timeout_frames(self, timeout_frames: i64) -> Self
Frames until timeout
Trait Implementations§
Source§impl<'a> ObsObjectUpdater<'a, *mut obs_source> for V4L2InputSourceUpdater<'a>
impl<'a> ObsObjectUpdater<'a, *mut obs_source> for V4L2InputSourceUpdater<'a>
type ToUpdate = ObsSourceRef
fn create_update( runtime: ObsRuntime, updatable: &'a mut Self::ToUpdate, ) -> Result<Self, ObsError>
fn get_settings(&self) -> &ObsData
fn runtime(&self) -> &ObsRuntime
fn get_settings_updater(&mut self) -> &mut ObsDataUpdater
fn update(self) -> Result<(), ObsError>
Auto Trait Implementations§
impl<'a> Freeze for V4L2InputSourceUpdater<'a>
impl<'a> !RefUnwindSafe for V4L2InputSourceUpdater<'a>
impl<'a> Send for V4L2InputSourceUpdater<'a>
impl<'a> Sync for V4L2InputSourceUpdater<'a>
impl<'a> Unpin for V4L2InputSourceUpdater<'a>
impl<'a> UnsafeUnpin for V4L2InputSourceUpdater<'a>
impl<'a> !UnwindSafe for V4L2InputSourceUpdater<'a>
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