2013-01-12 14:05:05 +01:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2014-01-01 01:50:59 +01:00
|
|
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
2013-01-12 14:05:05 +01:00
|
|
|
*
|
|
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef RPNG_H__
|
|
|
|
#define RPNG_H__
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2014-01-11 12:21:43 +01:00
|
|
|
|
2014-02-11 07:48:53 +01:00
|
|
|
#include "../../boolean.h"
|
2013-01-19 01:31:24 +01:00
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "../../config.h"
|
|
|
|
#endif
|
2013-01-12 14:05:05 +01:00
|
|
|
|
2013-02-09 10:36:39 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2014-09-08 19:28:10 +02:00
|
|
|
bool rpng_load_image_argb(const char *path, uint32_t **data,
|
|
|
|
unsigned *width, unsigned *height);
|
2013-01-12 14:05:05 +01:00
|
|
|
|
2013-01-19 01:31:24 +01:00
|
|
|
#ifdef HAVE_ZLIB_DEFLATE
|
|
|
|
bool rpng_save_image_argb(const char *path, const uint32_t *data,
|
|
|
|
unsigned width, unsigned height, unsigned pitch);
|
2013-01-19 02:13:02 +01:00
|
|
|
bool rpng_save_image_bgr24(const char *path, const uint8_t *data,
|
|
|
|
unsigned width, unsigned height, unsigned pitch);
|
2013-01-19 01:31:24 +01:00
|
|
|
#endif
|
|
|
|
|
2013-02-09 10:36:39 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-01-12 14:05:05 +01:00
|
|
|
#endif
|
|
|
|
|