all repos — mgba @ e6ea94d2296eae963a48a18d009217a38d92bf9b

mGBA Game Boy Advance Emulator

src/platform/imagemagick/imagemagick-gif-encoder.h (view raw)

 1#ifndef IMAGEMAGICK_GIF_ENCODER
 2#define IMAGEMAGICK_GIF_ENCODER
 3
 4#include "gba-thread.h"
 5
 6#define MAGICKCORE_HDRI_ENABLE 0
 7#define MAGICKCORE_QUANTUM_DEPTH 8
 8
 9#include <wand/MagickWand.h>
10
11struct ImageMagickGIFEncoder {
12	struct GBAAVStream d;
13	MagickWand* wand;
14	char* outfile;
15	uint32_t* frame;
16
17	unsigned currentFrame;
18	int frameskip;
19};
20
21void ImageMagickGIFEncoderInit(struct ImageMagickGIFEncoder*);
22bool ImageMagickGIFEncoderOpen(struct ImageMagickGIFEncoder*, const char* outfile);
23void ImageMagickGIFEncoderClose(struct ImageMagickGIFEncoder*);
24bool ImageMagickGIFEncoderIsOpen(struct ImageMagickGIFEncoder*);
25
26#endif