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 group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentssource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'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
.