openMSX
|
#include "PNG.hh"
#include "MSXException.hh"
#include "File.hh"
#include "Version.hh"
#include "endian.hh"
#include "narrow.hh"
#include "one_of.hh"
#include "vla.hh"
#include "cstdiop.hh"
#include <array>
#include <cassert>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <limits>
#include <tuple>
#include <png.h>
#include <SDL.h>
Go to the source code of this file.
Classes | |
struct | openmsx::PNG::PNGReadHandle |
struct | openmsx::PNG::PNGWriteHandle |
Namespaces | |
namespace | openmsx |
This file implemented 3 utility functions: | |
namespace | openmsx::PNG |
Utility functions to hide the complexity of saving to a PNG file. | |
Functions | |
SDLSurfacePtr | openmsx::PNG::load (const std::string &filename, bool want32bpp) |
Load the given PNG file in a SDL_Surface. More... | |
void | openmsx::PNG::save (size_t width, std::span< const void * > rowPointers, const PixelFormat &format, const std::string &filename) |
void | openmsx::PNG::save (size_t width, std::span< const void * > rowPointers, const std::string &filename) |
void | openmsx::PNG::saveGrayscale (size_t width, std::span< const void * > rowPointers, const std::string &filename) |