1037b3c26Smrg/* 2037b3c26Smrg * Copyright 2011 Luc Verhaegen <libv@codethink.co.uk> 3037b3c26Smrg * 4037b3c26Smrg * Permission is hereby granted, free of charge, to any person obtaining a 5037b3c26Smrg * copy of this software and associated documentation files (the "Software"), 6037b3c26Smrg * to deal in the Software without restriction, including without limitation 7037b3c26Smrg * the rights to use, copy, modify, merge, publish, distribute, sub license, 8037b3c26Smrg * and/or sell copies of the Software, and to permit persons to whom the 9037b3c26Smrg * Software is furnished to do so, subject to the following conditions: 10037b3c26Smrg * 11037b3c26Smrg * The above copyright notice and this permission notice (including the 12037b3c26Smrg * next paragraph) shall be included in all copies or substantial portions 13037b3c26Smrg * of the Software. 14037b3c26Smrg * 15037b3c26Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16037b3c26Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17037b3c26Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 18037b3c26Smrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19037b3c26Smrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20037b3c26Smrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21037b3c26Smrg * DEALINGS IN THE SOFTWARE. 22037b3c26Smrg * 23037b3c26Smrg */ 24037b3c26Smrg#ifndef BMP_DUMP_H 25037b3c26Smrg#define BMP_DUMP_H 1 26037b3c26Smrg#include <stdbool.h> 27037b3c26Smrg/* write 32-bit image (y axis upwards) */ 28037b3c26Smrgvoid bmp_dump32(char *buffer, unsigned width, unsigned height, bool bgra, const char *filename); 29037b3c26Smrg/* write 32-bit image (y axis downwards) */ 30037b3c26Smrgvoid bmp_dump32_noflip(char *buffer, unsigned width, unsigned height, bool bgra, const char *filename); 31037b3c26Smrg/* write 32-bit image */ 32037b3c26Smrgvoid bmp_dump32_ex(char *buffer, unsigned width, unsigned height, bool flip, bool bgra, bool alpha, const char *filename); 33037b3c26Smrg 34037b3c26Smrg#endif /* BMP_DUMP_H */ 35