aboutsummaryrefslogtreecommitdiffstats
path: root/include/YAGE/picopng.hpp
blob: b1318da0d7cbbf69d81c6ee212d2adaa7734c08e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ----------------------------------------------------------------------------
 * picopng.hpp
 *
 * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License
 * See file LICENSE for more details
 * ----------------------------------------------------------------------------
 */

#include <vector>
#include <cstdlib>

namespace yage
{

extern int decodePNG(std::vector<unsigned char> &out_image,
					 unsigned long &image_width,
					 unsigned long &image_height,
					 const unsigned char *in_png,
					 size_t in_size,
					 bool convert_to_rgba32 = true);

} // yage