all repos — mgba @ 79e06612cb77d31bfaaa1a5506703158b4a2f989

mGBA Game Boy Advance Emulator

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

 1/* Copyright (c) 2013-2015 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#ifndef IMAGEMAGICK_GIF_ENCODER
 7#define IMAGEMAGICK_GIF_ENCODER
 8
 9#include "gba/supervisor/thread.h"
10
11#define MAGICKCORE_HDRI_ENABLE 0
12#define MAGICKCORE_QUANTUM_DEPTH 8
13
14#include <wand/MagickWand.h>
15
16struct ImageMagickGIFEncoder {
17	struct GBAAVStream d;
18	MagickWand* wand;
19	char* outfile;
20	uint32_t* frame;
21
22	unsigned currentFrame;
23	int frameskip;
24};
25
26void ImageMagickGIFEncoderInit(struct ImageMagickGIFEncoder*);
27bool ImageMagickGIFEncoderOpen(struct ImageMagickGIFEncoder*, const char* outfile);
28void ImageMagickGIFEncoderClose(struct ImageMagickGIFEncoder*);
29bool ImageMagickGIFEncoderIsOpen(struct ImageMagickGIFEncoder*);
30
31#endif