2013-01-12 13:05:05 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
|
|
|
* Copyright (C) 2010-2013 - Hans-Kristian Arntzen
|
|
|
|
*
|
|
|
|
* 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>
|
2013-01-19 00:31:24 +00:00
|
|
|
#include "../../boolean.h"
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "../../config.h"
|
|
|
|
#endif
|
2013-01-12 13:05:05 +00:00
|
|
|
|
2013-02-09 09:36:39 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2013-01-12 13:05:05 +00:00
|
|
|
bool rpng_load_image_argb(const char *path, uint32_t **data, unsigned *width, unsigned *height);
|
|
|
|
|
2013-01-19 00:31:24 +00: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 01:13:02 +00:00
|
|
|
bool rpng_save_image_bgr24(const char *path, const uint8_t *data,
|
|
|
|
unsigned width, unsigned height, unsigned pitch);
|
2013-01-19 00:31:24 +00:00
|
|
|
#endif
|
|
|
|
|
2013-02-09 09:36:39 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-01-12 13:05:05 +00:00
|
|
|
#endif
|
|
|
|
|