Struct adder_codec_rs::utils::simulproc::SimulProcArgs
source · [−]pub struct SimulProcArgs {Show 16 fields
pub args_filename: String,
pub color_input: u32,
pub tps: u32,
pub fps: u32,
pub ref_time: u32,
pub delta_t_max: u32,
pub frame_count_max: u32,
pub frame_idx_start: u32,
pub show_display: u32,
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,
}
Expand description
Command line argument parser
Fields
args_filename: String
Filename for args (optional; must be in .toml format)
color_input: u32
Use color? (For framed input, most likely) (1=yes,0=no)
tps: u32
Number of ticks per second (should equal ref_time * frame rate)
fps: u32
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: u32
Show live view displays? (1=yes,0=no)
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.
Trait Implementations
sourceimpl Args for SimulProcArgs
impl Args for SimulProcArgs
sourceimpl CommandFactory for SimulProcArgs
impl CommandFactory for SimulProcArgs
sourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
CommandFactory::command_for_update
sourcefn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
sourceimpl Debug for SimulProcArgs
impl Debug for SimulProcArgs
sourceimpl Default for SimulProcArgs
impl Default for SimulProcArgs
sourcefn default() -> SimulProcArgs
fn default() -> SimulProcArgs
sourceimpl<'de> Deserialize<'de> for SimulProcArgs
impl<'de> Deserialize<'de> for SimulProcArgs
sourcefn 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>,
sourceimpl FromArgMatches for SimulProcArgs
impl FromArgMatches for SimulProcArgs
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
sourcefn 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>
sourcefn 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
.sourcefn 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
.sourceimpl Parser for SimulProcArgs
impl Parser for SimulProcArgs
sourcefn 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,
sourcefn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
sourcefn 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,
sourcefn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T, U> IntoCv<U> for Twhere
U: FromCv<T>,
impl<T, U> IntoCv<U> for Twhere
U: FromCv<T>,
fn into_cv(self) -> U
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 morefn 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.