Struct adder_codec_rs::utils::simulproc::SimulProcArgs
source · pub struct SimulProcArgs {Show 15 fields
pub args_filename: String,
pub color_input: bool,
pub ref_time: u32,
pub delta_t_max: u32,
pub frame_count_max: u32,
pub frame_idx_start: u32,
pub show_display: bool,
pub input_filename: String,
pub output_events_filename: String,
pub output_raw_video_filename: String,
pub scale: f64,
pub c_thresh_pos: u8,
pub c_thresh_neg: u8,
pub thread_count: u8,
pub time_mode: String,
}
Expand description
Command line argument parser
Fields§
§args_filename: String
Filename for args (optional; must be in .toml format)
color_input: bool
Use color? (For framed input, most likely)
ref_time: u32
Number of ticks per input frame // TODO: modularize for different sources
delta_t_max: u32
Max number of ticks for any event
frame_count_max: u32
Max number of input frames to transcode (0 = no limit)
frame_idx_start: u32
Index of first input frame to transcode
show_display: bool
Show live view displays?
input_filename: String
Path to input file
output_events_filename: String
Path to output events file
output_raw_video_filename: String
Path to output raw video file
scale: f64
Resize scale
c_thresh_pos: u8
Positive contrast threshold, in intensity units. How much an intensity must increase to create a frame division. Only used when look_ahead = 1 and framed input
c_thresh_neg: u8
Negative contrast threshold, in intensity units. How much an intensity must decrease to create a frame division. Only used when look_ahead = 1 and framed input
thread_count: u8
Number of threads to use. If not provided, will default to the number of cores on the system.
time_mode: String
Time mode for the v2 file
Trait Implementations§
source§impl Args for SimulProcArgs
impl Args for SimulProcArgs
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl CommandFactory for SimulProcArgs
impl CommandFactory for SimulProcArgs
source§impl Debug for SimulProcArgs
impl Debug for SimulProcArgs
source§impl Default for SimulProcArgs
impl Default for SimulProcArgs
source§fn default() -> SimulProcArgs
fn default() -> SimulProcArgs
source§impl<'de> Deserialize<'de> for SimulProcArgs
impl<'de> Deserialize<'de> for SimulProcArgs
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl FromArgMatches for SimulProcArgs
impl FromArgMatches for SimulProcArgs
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
ArgMatches
to self
.source§impl Parser for SimulProcArgs
impl Parser for SimulProcArgs
source§fn try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
std::env::args_os()
, return Err on error.source§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
source§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
source§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Auto Trait Implementations§
impl RefUnwindSafe for SimulProcArgs
impl Send for SimulProcArgs
impl Sync for SimulProcArgs
impl Unpin for SimulProcArgs
impl UnwindSafe for SimulProcArgs
Blanket Implementations§
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>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.