2020-09-21 17:17:34 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
2020-06-26 15:17:35 +00:00
|
|
|
//
|
2020-09-21 17:17:34 +00:00
|
|
|
// EmulationStation Desktop Edition
|
2020-06-26 15:17:35 +00:00
|
|
|
// ImageIO.h
|
|
|
|
//
|
|
|
|
// Image I/O functions.
|
|
|
|
//
|
|
|
|
|
2017-10-31 17:12:50 +00:00
|
|
|
#ifndef ES_CORE_IMAGE_IO
|
|
|
|
#define ES_CORE_IMAGE_IO
|
2013-05-16 19:26:19 +00:00
|
|
|
|
2017-11-01 22:21:10 +00:00
|
|
|
#include <stdlib.h>
|
2013-05-16 19:26:19 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class ImageIO
|
|
|
|
{
|
|
|
|
public:
|
2020-12-16 22:59:00 +00:00
|
|
|
static std::vector<unsigned char> loadFromMemoryRGBA32(const unsigned char* data,
|
|
|
|
const size_t size, size_t& width, size_t& height);
|
2020-06-26 15:17:35 +00:00
|
|
|
static void flipPixelsVert(unsigned char* imagePx, const size_t& width, const size_t& height);
|
2017-10-31 17:12:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ES_CORE_IMAGE_IO
|