Skip to main content

import_fmv

Function import_fmv 

Source
pub fn import_fmv(
    bytes: &[u8],
    rom_sha256: [u8; 32],
) -> Result<(Movie, LegacyMeta), LegacyMovieError>
Expand description

Import a Famtasia .fmv movie.

Fixed 144-byte header (FMV\x1A + flags). Flags byte 2 (0x05) selects which of P1 / P2 / FDS streams are present; the per-frame record is one byte per active stream in [P1, P2, FDS] order. Famtasia has no reliable PAL flag, so the region is reported as NTSC. A save-state-anchored movie (flags1 bit2) is rejected. The FDS byte (if present) is read to keep alignment but not decoded.

ยงErrors

LegacyMovieError for a bad magic, a save-state start, or a truncated body.