|
AnimaEngine
1.0.0
Nintendo DS Pokemon Black, White, Black 2, and White 2 sprite extraction and preview toolchain
|
Nintendo Multi-Cell Resource (.NMCR) layout mapping parser. More...
Go to the source code of this file.
Data Structures | |
| struct | NmcrRecord |
| Represents a reference linking a sub-animation timeline to cell layout transforms. More... | |
| struct | NmcrMap |
| Multi-cell layout composition group containing multiple records. More... | |
| struct | NmcrFile |
| Unpacked representation of a complete .NMCR resource. More... | |
Typedefs | |
| typedef struct NmcrRecord | NmcrRecord |
| Represents a reference linking a sub-animation timeline to cell layout transforms. More... | |
| typedef struct NmcrMap | NmcrMap |
| Multi-cell layout composition group containing multiple records. More... | |
| typedef struct NmcrFile | NmcrFile |
| Unpacked representation of a complete .NMCR resource. More... | |
Functions | |
| int | Nmcr_Parse (const u8 *data, size_t size, NmcrFile *out_nmcr) |
| Parses an unpacked .NMCR layout mapping resource block from raw bytes. More... | |
| void | Nmcr_Free (NmcrFile *nmcr) |
| Deallocates all resources held inside an NmcrFile structure. More... | |
| int | Nmcr_MaxFrameCount (const NmcrMap *map, const NanrFile *nanr) |
| Computes maximum frames required to play a composite layout. More... | |
| int | Nmcr_CountValidRecords (const NmcrMap *map, const NanrFile *nanr, const NcerFile *ncer, int frame_index) |
| Counts valid active cell records inside layout mapping for specified frame index. More... | |
| int | Nmcr_ComputeBreakScore (const NmcrMap *idle_map, const NmcrMap *candidate_map, const NanrFile *nanr, const NcerFile *ncer) |
| Measures similarity index difference scores to identify rare break animation map candidate. More... | |
| void | Nmcr_PrintInfo (const NmcrFile *nmcr) |
| Debug prints NMCR layout stats to stdout. More... | |
Nintendo Multi-Cell Resource (.NMCR) layout mapping parser.
| typedef struct NmcrRecord NmcrRecord |
Represents a reference linking a sub-animation timeline to cell layout transforms.
| int Nmcr_ComputeBreakScore | ( | const NmcrMap * | idle_map, |
| const NmcrMap * | candidate_map, | ||
| const NanrFile * | nanr, | ||
| const NcerFile * | ncer | ||
| ) |
Measures similarity index difference scores to identify rare break animation map candidate.
| idle_map | Base idle layout map. |
| candidate_map | Alternative layout candidate. |
| nanr | Pointer to parsed .NANR timeline. |
| ncer | Pointer to parsed .NCER cells. |
| int Nmcr_CountValidRecords | ( | const NmcrMap * | map, |
| const NanrFile * | nanr, | ||
| const NcerFile * | ncer, | ||
| int | frame_index | ||
| ) |
Counts valid active cell records inside layout mapping for specified frame index.
| map | Pointer to cell layout map. |
| nanr | Pointer to parsed .NANR timeline. |
| ncer | Pointer to parsed .NCER cells. |
| frame_index | Frame index request. |
| void Nmcr_Free | ( | NmcrFile * | nmcr | ) |
Deallocates all resources held inside an NmcrFile structure.
| nmcr | Pointer to structure. |
Computes maximum frames required to play a composite layout.
| map | Pointer to cell layout map. |
| nanr | Pointer to parsed .NANR timeline sequences. |
Parses an unpacked .NMCR layout mapping resource block from raw bytes.
| data | Raw binary input buffer. |
| size | Input stream size in bytes. |
| out_nmcr | Destination NmcrFile structure. |
| void Nmcr_PrintInfo | ( | const NmcrFile * | nmcr | ) |
Debug prints NMCR layout stats to stdout.
| nmcr | Pointer to parsed NMCR. |