pub struct VideoEncoderConfig {Show 20 fields
pub agent_id: String,
pub cortical_unit_id: u8,
pub encoding_strategy: VideoEncodingStrategy,
pub source_width: u32,
pub source_height: u32,
pub feagi_host: String,
pub feagi_api_port: u16,
pub feagi_zmq_registration_port: u16,
pub feagi_zmq_sensory_port: u16,
pub feagi_zmq_motor_port: u16,
pub feagi_tick_hz: u32,
pub feagi_heartbeat_interval_s: f64,
pub feagi_connection_timeout_ms: u64,
pub feagi_registration_retries: u32,
pub sensory_send_hwm: i32,
pub sensory_linger_ms: i32,
pub sensory_immediate: bool,
pub diff_threshold: u8,
pub brightness: i32,
pub contrast: f32,
}Expand description
Configuration for the video encoder.
Fields§
§agent_id: String§cortical_unit_id: u8§encoding_strategy: VideoEncodingStrategy§source_width: u32§source_height: u32§feagi_host: String§feagi_api_port: u16§feagi_zmq_registration_port: u16§feagi_zmq_sensory_port: u16§feagi_zmq_motor_port: u16§feagi_tick_hz: u32§feagi_heartbeat_interval_s: f64§feagi_connection_timeout_ms: u64§feagi_registration_retries: u32§sensory_send_hwm: i32§sensory_linger_ms: i32§sensory_immediate: bool§diff_threshold: u8§brightness: i32§contrast: f32Implementations§
Source§impl VideoEncoderConfig
impl VideoEncoderConfig
Sourcepub fn to_agent_config(&self) -> Result<AgentConfig, SdkError>
pub fn to_agent_config(&self) -> Result<AgentConfig, SdkError>
Build an AgentConfig for this video encoder.
Sourcepub fn to_agent_config_with_motor_feedback(
&self,
) -> Result<AgentConfig, SdkError>
pub fn to_agent_config_with_motor_feedback( &self, ) -> Result<AgentConfig, SdkError>
Build an AgentConfig that enables motor feedback for segmented vision.
Trait Implementations§
Source§impl Clone for VideoEncoderConfig
impl Clone for VideoEncoderConfig
Source§fn clone(&self) -> VideoEncoderConfig
fn clone(&self) -> VideoEncoderConfig
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for VideoEncoderConfig
impl RefUnwindSafe for VideoEncoderConfig
impl Send for VideoEncoderConfig
impl Sync for VideoEncoderConfig
impl Unpin for VideoEncoderConfig
impl UnwindSafe for VideoEncoderConfig
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§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