Definition assetimport.h:11
std::vector< u8 > PackGhostFrames(std::span< const u8 > recording, std::span< const u8 > frames)
Store the frames of the race engine with the recording of the console they were recorded with.
constexpr std::size_t GHOST_NOTE_SIZE
The size of the note of a ghost car, 58 pages.
Definition ghostnote.h:27
constexpr std::size_t GHOST_RECORDING_CAPACITY
The capacity of the recording of the console, its header included.
Definition ghostnote.h:30
std::optional< std::vector< u8 > > GhostFramesFor(std::span< const u8 > file, std::span< const u8 > recording)
Read the frames of the race engine of a recording of the console from the file of PackGhostFrames().
std::optional< std::vector< u8 > > PackGhostNote(std::span< const u8 > recording)
Compress a recording into the note of a ghost car, as SaveSaveLoadNote() of the console does: each of...
bool SaveGhostFrames(const std::filesystem::path &path, std::span< const u8 > recording, std::span< const u8 > frames)
Atomically write the payload of PackGhostFrames() with a verified integrity header.
std::optional< std::vector< u8 > > LoadGhostFrames(const std::filesystem::path &path, std::span< const u8 > recording)
Read the frames of a recording from the file of SaveGhostFrames().
std::optional< std::vector< u8 > > UnpackGhostNote(std::span< const u8 > note)
Expand the note of a ghost car into its recording.
The integer and floating-point types of the console, for headers shared with Windows.