1d722e3fbSopenharmony_ci/*
2d722e3fbSopenharmony_ci * Copyright 2011      Luc Verhaegen <libv@codethink.co.uk>
3d722e3fbSopenharmony_ci *
4d722e3fbSopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a
5d722e3fbSopenharmony_ci * copy of this software and associated documentation files (the "Software"),
6d722e3fbSopenharmony_ci * to deal in the Software without restriction, including without limitation
7d722e3fbSopenharmony_ci * the rights to use, copy, modify, merge, publish, distribute, sub license,
8d722e3fbSopenharmony_ci * and/or sell copies of the Software, and to permit persons to whom the
9d722e3fbSopenharmony_ci * Software is furnished to do so, subject to the following conditions:
10d722e3fbSopenharmony_ci *
11d722e3fbSopenharmony_ci * The above copyright notice and this permission notice (including the
12d722e3fbSopenharmony_ci * next paragraph) shall be included in all copies or substantial portions
13d722e3fbSopenharmony_ci * of the Software.
14d722e3fbSopenharmony_ci *
15d722e3fbSopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16d722e3fbSopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17d722e3fbSopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
18d722e3fbSopenharmony_ci * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19d722e3fbSopenharmony_ci * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20d722e3fbSopenharmony_ci * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21d722e3fbSopenharmony_ci * DEALINGS IN THE SOFTWARE.
22d722e3fbSopenharmony_ci *
23d722e3fbSopenharmony_ci */
24d722e3fbSopenharmony_ci#ifndef BMP_DUMP_H
25d722e3fbSopenharmony_ci#define BMP_DUMP_H 1
26d722e3fbSopenharmony_ci#include <stdbool.h>
27d722e3fbSopenharmony_ci/* write 32-bit image (y axis upwards) */
28d722e3fbSopenharmony_civoid bmp_dump32(char *buffer, unsigned width, unsigned height, bool bgra, const char *filename);
29d722e3fbSopenharmony_ci/* write 32-bit image (y axis downwards) */
30d722e3fbSopenharmony_civoid bmp_dump32_noflip(char *buffer, unsigned width, unsigned height, bool bgra, const char *filename);
31d722e3fbSopenharmony_ci/* write 32-bit image */
32d722e3fbSopenharmony_civoid bmp_dump32_ex(char *buffer, unsigned width, unsigned height, bool flip, bool bgra, bool alpha, const char *filename);
33d722e3fbSopenharmony_ci
34d722e3fbSopenharmony_ci#endif /* BMP_DUMP_H */
35