mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-23 22:55:39 +00:00
26 lines
677 B
C++
26 lines
677 B
C++
// SPDX-License-Identifier: MIT
|
|
//
|
|
// EmulationStation Desktop Edition
|
|
// ImageIO.h
|
|
//
|
|
// Image I/O functions.
|
|
//
|
|
|
|
#ifndef ES_CORE_IMAGE_IO
|
|
#define ES_CORE_IMAGE_IO
|
|
|
|
#include <stdlib.h>
|
|
#include <vector>
|
|
|
|
class ImageIO
|
|
{
|
|
public:
|
|
static std::vector<unsigned char> loadFromMemoryRGBA32(const unsigned char* data,
|
|
const size_t size,
|
|
size_t& width,
|
|
size_t& height);
|
|
static void flipPixelsVert(unsigned char* imagePx, const size_t& width, const size_t& height);
|
|
};
|
|
|
|
#endif // ES_CORE_IMAGE_IO
|