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 crf: u8,
pub thread_count: u8,
pub time_mode: String,
pub integration_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
crf: u8
§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
integration_mode: String
Trait Implementations§
source§impl Args for SimulProcArgs
impl Args for SimulProcArgs
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
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
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
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>
Assign values from
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>
Assign values from
ArgMatches
to self
.source§impl Parser for SimulProcArgs
impl Parser for SimulProcArgs
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Update from iterator, return Err on error.
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> 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