pub struct VideoEncoder { /* private fields */ }Expand description
Video encoder backed by a sensor cache.
Implementations§
Source§impl VideoEncoder
impl VideoEncoder
Sourcepub async fn new(
config: VideoEncoderConfig,
topology_cache: &TopologyCache,
) -> Result<Self, SdkError>
pub async fn new( config: VideoEncoderConfig, topology_cache: &TopologyCache, ) -> Result<Self, SdkError>
Create a new video encoder with topology-aware configuration.
Sourcepub fn set_gaze_properties(
&mut self,
gaze: &GazeProperties,
) -> Result<(), SdkError>
pub fn set_gaze_properties( &mut self, gaze: &GazeProperties, ) -> Result<(), SdkError>
Set gaze properties for segmented vision encoding.
Sourcepub fn set_gaze(
&mut self,
x: f32,
y: f32,
modulation: f32,
) -> Result<(), SdkError>
pub fn set_gaze( &mut self, x: f32, y: f32, modulation: f32, ) -> Result<(), SdkError>
Set gaze position and modulation for segmented vision.
Sourcepub fn set_brightness(&mut self, brightness: i32) -> Result<(), SdkError>
pub fn set_brightness(&mut self, brightness: i32) -> Result<(), SdkError>
Set brightness adjustment applied before encoding.
Sourcepub fn set_contrast(&mut self, contrast: f32) -> Result<(), SdkError>
pub fn set_contrast(&mut self, contrast: f32) -> Result<(), SdkError>
Set contrast adjustment applied before encoding.
Sourcepub fn set_diff_threshold(&mut self, threshold: u8) -> Result<(), SdkError>
pub fn set_diff_threshold(&mut self, threshold: u8) -> Result<(), SdkError>
Set diff threshold for segmented/simple vision encoders.
Sourcepub fn is_segmented_vision(&self) -> bool
pub fn is_segmented_vision(&self) -> bool
Returns true if this encoder uses segmented vision.
Trait Implementations§
Source§impl SensoryEncoder for VideoEncoder
impl SensoryEncoder for VideoEncoder
Auto Trait Implementations§
impl Freeze for VideoEncoder
impl !RefUnwindSafe for VideoEncoder
impl Send for VideoEncoder
impl !Sync for VideoEncoder
impl Unpin for VideoEncoder
impl !UnwindSafe for VideoEncoder
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more