|
| static void | DumpSectionHex (const u8 *data, size_t offset, u32 size) |
| |
| static int | ReadLabel (const u8 *data, size_t section_end, size_t string_offset, char out_label[32]) |
| |
| static void | ApplyLabels (const u8 *data, size_t size, NmarFile *out_nmar) |
| |
| static void | NmarFrame_SetIdentityTransform (NmarFrame *frame) |
| |
| static void | Nmar_ReadFrameElement (const u8 *element, int frame_type, NmarFrame *frame) |
| |
| static u32 | Nmar_FrameElementSizeForType (int frame_type) |
| |
| static int | TryParseKnbaTiming (const u8 *data, size_t size, size_t section_offset, u32 section_size, NmarFile *out_nmar) |
| |
| static int | TryParseSectionData (const u8 *data, size_t section_offset, u32 section_size, NmarFile *out_nmar, int use_hdr_entry_count) |
| |
| int | Nmar_Parse (const u8 *data, size_t size, NmarFile *out_nmar) |
| | Parses an unpacked .NMAR animation resource block from raw bytes. More...
|
| |
| int | Nmar_GetIdleMapIndex (const NmarFile *nmar) |
| | Resolves default idle layout map index. More...
|
| |
| int | Nmar_GetIdleBreakMapIndex (const NmarFile *nmar, int idle_map, int map_count) |
| | Resolves rare idle break candidate layout map index. More...
|
| |
| static int | Nmar_FrameDuration (const NmarFrame *frame) |
| |
| static int | Nmar_FrameDurationRange (const NmarAnimation *animation, int start_frame, int end_frame, int step) |
| |
| static int | Nmar_SelectFrameInRange (const NmarAnimation *animation, int start_frame, int end_frame, int step, int tick) |
| |
| static int | Nmar_SelectFrameForward (const NmarAnimation *animation, int tick, int loop) |
| |
| int | Nmar_GetFrameAtTick (const NmarFile *nmar, int animation_index, int tick, NmarFrame *out_frame) |
| | Resolves keyframe attributes at a specific tick timing step. More...
|
| |
| int | Nmar_GetTotalDuration (const NmarFile *nmar, int animation_index) |
| | Calculates total duration of a timeline sequence in ticks. More...
|
| |
| void | Nmar_Free (NmarFile *nmar) |
| | Deallocates all resources held inside an NmarFile structure. More...
|
| |
| void | Nmar_PrintInfo (const NmarFile *nmar) |
| | Debug prints NMAR layout stats to stdout. More...
|
| |