|
AnimaEngine
1.0.0
Nintendo DS Pokemon Black, White, Black 2, and White 2 sprite extraction and preview toolchain
|
High-level animation assembly and LZW GIF compilation pipeline. More...
#include "common.h"#include "ncer.h"#include "nanr.h"#include "nmcr.h"#include "nmar.h"#include "ncgr.h"#include "nclr.h"#include "coords.h"Go to the source code of this file.
Data Structures | |
| struct | GifExportOptions |
| Detailed parameters configuring animation exporting behavior. More... | |
Macros | |
| #define | GIF_PATH_BUFFER_SIZE 4096 |
Typedefs | |
| typedef enum GifSideMode | GifSideMode |
| Sprite perspective/camera rendering selection. More... | |
| typedef enum GifPaletteMode | GifPaletteMode |
| Color variant selection. More... | |
| typedef enum GifEyeMode | GifEyeMode |
| Unused/legacy eye blinking rendering selection. More... | |
| typedef struct GifExportOptions | GifExportOptions |
| Detailed parameters configuring animation exporting behavior. More... | |
Enumerations | |
| enum | GifSideMode { GIF_SIDE_FRONT , GIF_SIDE_BACK , GIF_SIDE_BOTH } |
| Sprite perspective/camera rendering selection. More... | |
| enum | GifPaletteMode { GIF_PALETTE_NORMAL , GIF_PALETTE_SHINY , GIF_PALETTE_BOTH } |
| Color variant selection. More... | |
| enum | GifEyeMode { GIF_EYE_OPEN , GIF_EYE_ALL } |
| Unused/legacy eye blinking rendering selection. More... | |
Functions | |
| void | GifExportOptions_Init (GifExportOptions *options) |
| Initializes default values for a GifExportOptions structure. More... | |
| int | GifPipeline_ExportIdle (const char *out_dir, const char *side_name, const char *animation_name, const char *palette_name, const NcerFile *ncer, const NanrFile *nanr, const NmcrFile *nmcr, const NmarFile *nmar, const NcgrImage *ncgr, const NclrPalette *palette, int default_idle_map, const GifExportOptions *options, int tile_stride, int margin, const int *union_min_x, const int *union_min_y, const int *union_max_x, const int *union_max_y, const CoordFile *coords) |
| Assembles and exports a composed animated GIF based on provided resources. More... | |
High-level animation assembly and LZW GIF compilation pipeline.
| #define GIF_PATH_BUFFER_SIZE 4096 |
Maximum buffer size for generating output GIF filenames.
| typedef struct GifExportOptions GifExportOptions |
Detailed parameters configuring animation exporting behavior.
| typedef enum GifEyeMode GifEyeMode |
Unused/legacy eye blinking rendering selection.
| typedef enum GifPaletteMode GifPaletteMode |
Color variant selection.
| typedef enum GifSideMode GifSideMode |
Sprite perspective/camera rendering selection.
| enum GifEyeMode |
| enum GifPaletteMode |
| enum GifSideMode |
| void GifExportOptions_Init | ( | GifExportOptions * | options | ) |
Initializes default values for a GifExportOptions structure.
| options | Pointer to options struct to modify. |
| int GifPipeline_ExportIdle | ( | const char * | out_dir, |
| const char * | side_name, | ||
| const char * | animation_name, | ||
| const char * | palette_name, | ||
| const NcerFile * | ncer, | ||
| const NanrFile * | nanr, | ||
| const NmcrFile * | nmcr, | ||
| const NmarFile * | nmar, | ||
| const NcgrImage * | ncgr, | ||
| const NclrPalette * | palette, | ||
| int | default_idle_map, | ||
| const GifExportOptions * | options, | ||
| int | tile_stride, | ||
| int | margin, | ||
| const int * | union_min_x, | ||
| const int * | union_min_y, | ||
| const int * | union_max_x, | ||
| const int * | union_max_y, | ||
| const CoordFile * | coords | ||
| ) |
Assembles and exports a composed animated GIF based on provided resources.
| out_dir | Directory path to write output file. |
| side_name | Label used in output filename (e.g., "front", "back"). |
| animation_name | Label representing animation sequence (e.g., "idle", "break"). |
| palette_name | Label for color variant (e.g., "normal", "shiny"). |
| ncer | Pointer to the parsed cell resource file (.NCER). |
| nanr | Pointer to the parsed animation resource file (.NANR). |
| nmcr | Pointer to the parsed multi-cell mapping layout (.NMCR). |
| nmar | Pointer to the parsed multi-animation sequence (.NMAR). |
| ncgr | Pointer to the parsed character graphics tiles (.NCGR). |
| palette | Pointer to the parsed color palette resource (.NCLR). |
| default_idle_map | Default layout index for species' base idle frame. |
| options | Export configurations. |
| tile_stride | Width stride (in tiles) of NCGR image data. |
| margin | Safety boundary width in pixels around the composed animation. |
| union_min_x | Precalculated bounding box minimum horizontal coordinate. |
| union_min_y | Precalculated bounding box minimum vertical coordinate. |
| union_max_x | Precalculated bounding box maximum horizontal coordinate. |
| union_max_y | Precalculated bounding box maximum vertical coordinate. |
| coords | Optional CoordFile pointers to adjust horizontal/vertical offsets. |