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§

Report the ArgGroup::id for this set of arguments
Append to Command so it can instantiate Self. Read more
Append to Command so it can update self. Read more
Build a Command that can instantiate Self. Read more
Build a Command that can update self. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
Assign values from ArgMatches to self.
Parse from std::env::args_os(), exit on error
Parse from std::env::args_os(), return Err on error.
Parse from iterator, exit on error
Parse from iterator, return Err on error.
Update from iterator, exit on error
Update from iterator, return Err on error.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more