pub struct VideoArgs {
pub screenshot: Option<PathBuf>,
pub screenshot_on: Option<String>,
pub video_path: Option<PathBuf>,
pub video_format: VideoFormat,
pub video_fps: String,
pub video_mode: VideoExportMode,
pub video_scale: Option<String>,
pub renderer: Option<String>,
pub list_renderers: bool,
}Expand description
Video/screenshot export arguments
Fields§
§screenshot: Option<PathBuf>Save screenshot on exit
screenshot_on: Option<String>When to capture screenshot (exit, stop, cycle:N, pc:ADDR, frame:N)
video_path: Option<PathBuf>Record video to file
video_format: VideoFormatVideo output format
video_fps: StringVideo frame rate multiplier or fixed value (1x, 2x, 3x, or a number like 60.0). Multipliers sample the framebuffer more frequently, inserting half-finished frames. Default is 1x (native PPU output rate).
video_mode: VideoExportModeVideo export mode: accurate or smooth.
- accurate: Encode at exact NES framerate (60.0988 fps or its multiple)
- smooth: Encode at exactly 60 fps (or its multiple), accepting slight timing drift
video_scale: Option<String>Video output resolution (native, 2x, 3x, 4x, 720p, 1080p, 4k, or WIDTHxHEIGHT)
renderer: Option<String>Screen renderer to use for palette-to-RGB conversion. Use –list-renderers to see available options.
list_renderers: boolList available screen renderers and exit
Trait Implementations§
Source§impl Args for VideoArgs
impl Args for VideoArgs
Source§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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for VideoArgs
impl FromArgMatches for VideoArgs
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.Auto Trait Implementations§
impl Freeze for VideoArgs
impl RefUnwindSafe for VideoArgs
impl Send for VideoArgs
impl Sync for VideoArgs
impl Unpin for VideoArgs
impl UnsafeUnpin for VideoArgs
impl UnwindSafe for VideoArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().