openMSX
Classes | Namespaces | Functions
PNG.cc File Reference
#include "PNG.hh"
#include "File.hh"
#include "MSXException.hh"
#include "PixelOperations.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>
Include dependency graph for PNG.cc:

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.
 
void openmsx::PNG::saveRGBA (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)