Blame tests/etnaviv/write_bmp.h

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