openMSX
Classes | Namespaces | Functions
PNG.cc File Reference
#include "PNG.hh"
#include "File.hh"
#include "MSXException.hh"
#include "PixelOperations.hh"
#include "Version.hh"
#include "cstdiop.hh"
#include "endian.hh"
#include "narrow.hh"
#include "one_of.hh"
#include "small_buffer.hh"
#include "view.hh"
#include <png.h>
#include <SDL.h>
#include <array>
#include <bit>
#include <cassert>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <limits>
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 uint32_t * > rowPointers, const std::string &filename)
 
void openmsx::PNG::saveGrayscale (size_t width, std::span< const uint8_t * > rowPointers_, const std::string &filename)