|
@@ -4,12 +4,18 @@
|
|
|
#include <stdint.h>
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
typedef struct {
|
|
typedef struct {
|
|
|
- uint32_t* frame_buffer;
|
|
|
|
|
- int width, height;
|
|
|
|
|
- int frame_count;
|
|
|
|
|
- int frame_height;
|
|
|
|
|
|
|
+ uint32_t* frame_buffer; // the array that stores the pixel data
|
|
|
|
|
+ int width; // width of the image
|
|
|
|
|
+ int height; // height of the image INCLUDING all stacked frames
|
|
|
|
|
+ int frame_height; // height of each FRAME
|
|
|
|
|
+ int frame_count; // number of frames
|
|
|
|
|
+ uint16_t* frame_delays; // centisecond delay for each frame
|
|
|
} PM_image;
|
|
} PM_image;
|
|
|
|
|
|
|
|
-PM_image* PM_load_image(char* filename, uint16_t debug_mode);
|
|
|
|
|
|
|
+// loads an image file and returns a PM_image
|
|
|
|
|
+PM_image* PM_load_image(const char* filename, unsigned char debug_mode);
|
|
|
|
|
+
|
|
|
|
|
+// unallocated a PM_image*
|
|
|
|
|
+void PM_free_image(PM_image* image);
|
|
|
|
|
|
|
|
#endif
|
|
#endif
|