| e8555c89 Andy McCall |
1 |
#ifndef PNG_HH |
| 2 |
#define PNG_HH |
| 3 |
|
| 4 |
#include "SDLSurfacePtr.hh" |
| 5 |
|
| 6 |
#include <cstdint> |
| 7 |
#include <span> |
| 8 |
#include <string> |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
namespace openmsx::PNG { |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
[[nodiscard]] SDLSurfacePtr load(const std::string& filename, bool want32bpp); |
| 20 |
|
| 21 |
void saveRGBA(size_t width, std::span<const uint32_t*> rowPointers, |
| 22 |
const std::string& filename); |
| 23 |
|
| 24 |
void saveRGB(size_t width, std::span<const uint8_t*> rowPointers, |
| 25 |
const std::string& filename); |
| 26 |
void saveGrayscale(size_t width, std::span<const uint8_t*> rowPointers, |
| 27 |
const std::string& filename); |
| 28 |
|
| 29 |
} |
| 30 |
|
| 31 |
#endif |