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