pub struct MovieRecorder { /* private fields */ }Expand description
Records a movie frame-by-frame as the emulator runs.
Implementations§
Source§impl MovieRecorder
impl MovieRecorder
Sourcepub fn power_on(seed: u64, region: Region, rom: &[u8]) -> Self
pub fn power_on(seed: u64, region: Region, rom: &[u8]) -> Self
Start recording from a power-on. rom is the exact byte image that was (or is about to
be) loaded — hashed for the recorded movie’s ROM-identity check on replay.
Sourcepub fn from_current_state(region: Region, rom: &[u8], sys: &System) -> Self
pub fn from_current_state(region: Region, rom: &[u8], sys: &System) -> Self
Start recording from sys’s current live state (a branch point mid-session) — embeds a
full save-state as the start point. rom is the exact byte image sys’s cart was loaded
from.
Sourcepub fn capture(&mut self, p1: u16, p2: u16)
pub fn capture(&mut self, p1: u16, p2: u16)
Capture this frame’s about-to-be-consumed input. Call BEFORE System::run_frame —
this records exactly what that call will consume, matching MoviePlayer::next_frame’s
own “apply, then run” order on replay.
Sourcepub const fn frame_count(&self) -> usize
pub const fn frame_count(&self) -> usize
The number of frames captured so far.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MovieRecorder
impl RefUnwindSafe for MovieRecorder
impl Send for MovieRecorder
impl Sync for MovieRecorder
impl Unpin for MovieRecorder
impl UnsafeUnpin for MovieRecorder
impl UnwindSafe for MovieRecorder
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