AnimaEngine  1.0.0
Nintendo DS Pokemon Black, White, Black 2, and White 2 sprite extraction and preview toolchain
ppm.h
Go to the documentation of this file.
1 
6 #ifndef PPM_H
7 #define PPM_H
8 
9 #include "common.h"
10 
14 typedef struct RgbaColor {
15  u8 r;
16  u8 g;
17  u8 b;
18  u8 a;
20 
30  const char *path,
31  const RgbaColor *pixels,
32  int width,
33  int height
34 );
35 
46  const char *path,
47  const RgbaColor *pixels,
48  int width,
49  int height,
50  int scale
51 );
52 
53 #endif
Common types, macros, and standard library includes used throughout AnimaEngine.
unsigned char u8
Definition: common.h:14
int Ppm_WriteRgbImage(const char *path, const RgbaColor *pixels, int width, int height)
Exports an RGBA buffer to standard PPM format.
Definition: ppm.c:20
struct RgbaColor RgbaColor
32-bit RGBA color representation struct.
int Ppm_WriteRgbImageScaled(const char *path, const RgbaColor *pixels, int width, int height, int scale)
Exports an RGBA buffer scaled by an integer factor to standard PPM.
Definition: ppm.c:30
32-bit RGBA color representation struct.
Definition: ppm.h:14
u8 b
Definition: ppm.h:17
u8 r
Definition: ppm.h:15
u8 g
Definition: ppm.h:16
u8 a
Definition: ppm.h:18