libfacade 1.1
A library for manipulating PNG images with payloads.
|
Classes | |
class | AlphaGrayscalePixel |
A grayscale pixel with alpha channel. More... | |
class | AlphaTrueColorPixel |
An RGB pixel with alpha channel. More... | |
class | ChunkPtr |
The chunk class responsible for parsing the raw data of a PNG file. More... | |
class | ChunkTag |
The string tag identifying a given facade::png::ChunkVec or facade::png::ChunkPtr. More... | |
class | ChunkVec |
A vector-based version of a given PNG chunk. More... | |
class | End |
The end chunk for a given PNG file. More... | |
class | GrayscalePixel |
A grayscale pixel object, based on the facade::png::Sample class. More... | |
class | Header |
A PNG header object. More... | |
class | Image |
A class for loading and manipulating PNG images. More... | |
class | PalettePixel |
A paletted pixel object. More... | |
class | PixelSpan |
A span of data representing the underlying bits or bytes of a pixel. More... | |
class | Sample |
A sample of data for a given pixel. More... | |
class | Scanline |
A wrapper object for ScanlineVariant. More... | |
class | ScanlineBase |
The base scanline class containing a row of facade::png::PixelSpan of the given pixel type. More... | |
class | Text |
A tEXt chunk object. More... | |
class | TrueColorPixel |
An RGB pixel object. More... | |
class | ZText |
A compressed text chunk. More... | |
Enumerations | |
enum | ColorType { GRAYSCALE = 0 , TRUE_COLOR = 2 , PALETTE = 3 , ALPHA_GRAYSCALE = 4 , ALPHA_TRUE_COLOR = 6 } |
The color type represented in the PNG file. More... | |
enum | PixelEnum { GRAYSCALE_PIXEL_1BIT = 0 , GRAYSCALE_PIXEL_2BIT , GRAYSCALE_PIXEL_4BIT , GRAYSCALE_PIXEL_8BIT , GRAYSCALE_PIXEL_16BIT , TRUE_COLOR_PIXEL_8BIT , TRUE_COLOR_PIXEL_16BIT , PALETTE_PIXEL_1BIT , PALETTE_PIXEL_2BIT , PALETTE_PIXEL_4BIT , PALETTE_PIXEL_8BIT , ALPHA_GRAYSCALE_PIXEL_8BIT , ALPHA_GRAYSCALE_PIXEL_16BIT , ALPHA_TRUE_COLOR_PIXEL_8BIT , ALPHA_TRUE_COLOR_PIXEL_16BIT } |
An enum representing all available pixel types. More... | |
enum | FilterType { NONE = 0 , SUB , UP , AVERAGE , PAETH } |
The filter type to use for a given scanline. More... | |
Functions | |
template<typename PixelType > | |
EXPORT std::vector< std::uint8_t > | pixels_to_raw (const PixelRow< PixelType > &pixels) |
Convert a row of facade::png::PixelSpan of the given pixel type into a vector of bytes. | |
using facade::png::AlphaGrayscalePixel16Bit = typedef AlphaGrayscalePixel<std::uint16_t> |
An facade::png::AlphaGrayscalePixel with a 16-bit facade::png::Sample size.
using facade::png::AlphaGrayscalePixel8Bit = typedef AlphaGrayscalePixel<std::uint8_t> |
An facade::png::AlphaGrayscalePixel with an 8-bit facade::png::Sample size.
using facade::png::AlphaGrayscaleScanline16Bit = typedef ScanlineBase<AlphaGrayscalePixel16Bit> |
A 16-bit grayscale scanline with alpha channel, using facade::png::AlphaGrayscalePixel16Bit as a pixel base.
using facade::png::AlphaGrayscaleScanline8Bit = typedef ScanlineBase<AlphaGrayscalePixel8Bit> |
An 8-bit grayscale scanline with alpha channel, using facade::png::AlphaGrayscalePixel8Bit as a pixel base.
using facade::png::AlphaTrueColorPixel16Bit = typedef AlphaTrueColorPixel<Sample16Bit> |
An facade::png::AlphaTrueColorPixel with a 16-bit facade::png::Sample size.
using facade::png::AlphaTrueColorPixel8Bit = typedef AlphaTrueColorPixel<Sample8Bit> |
An facade::png::AlphaTrueColorPixel with an 8-bit facade::png::Sample size.
using facade::png::AlphaTrueColorScanline16Bit = typedef ScanlineBase<AlphaTrueColorPixel16Bit> |
A 16-bit RGB scanline with alpha channel, using facade::png::AlphaTrueColorPixel16Bit a pixel base.
using facade::png::AlphaTrueColorScanline8Bit = typedef ScanlineBase<AlphaTrueColorPixel8Bit> |
An 8-bit RGB scanline with alpha channel, using facade::png::AlphaTrueColorPixel8Bit as a pixel base.
using facade::png::GrayscalePixel16Bit = typedef GrayscalePixel<std::uint16_t> |
A facade::png::GrayscalePixel with a 16-bit facade::png::Sample value.
using facade::png::GrayscalePixel1Bit = typedef GrayscalePixel<std::uint8_t, 1> |
A facade::png::GrayscalePixel with a 1-bit facade::png::Sample value.
using facade::png::GrayscalePixel2Bit = typedef GrayscalePixel<std::uint8_t, 2> |
A facade::png::GrayscalePixel with a 2-bit facade::png::Sample value.
using facade::png::GrayscalePixel4Bit = typedef GrayscalePixel<std::uint8_t, 4> |
A facade::png::GrayscalePixel with a 4-bit facade::png::Sample value.
using facade::png::GrayscalePixel8Bit = typedef GrayscalePixel<std::uint8_t> |
A facade::png::GrayscalePixel with an 8-bit facade::png::Sample value.
using facade::png::GrayscaleScanline16Bit = typedef ScanlineBase<GrayscalePixel16Bit> |
A 16-bit grayscale scanline, using facade::png::GrayscalePixel16Bit as a pixel base.
using facade::png::GrayscaleScanline1Bit = typedef ScanlineBase<GrayscalePixel1Bit> |
A 1-bit grayscale scanline, using facade::png::GrayscalePixel1Bit as a pixel base.
using facade::png::GrayscaleScanline2Bit = typedef ScanlineBase<GrayscalePixel2Bit> |
A 2-bit grayscale scanline, using facade::png::GrayscalePixel2Bit as a pixel base.
using facade::png::GrayscaleScanline4Bit = typedef ScanlineBase<GrayscalePixel4Bit> |
A 4-bit grayscale scanline, using facade::png::GrayscalePixel4Bit as a pixel base.
using facade::png::GrayscaleScanline8Bit = typedef ScanlineBase<GrayscalePixel8Bit> |
An 8-bit grayscale scanline, using facade::png::GrayscalePixel8Bit as a pixel base.
using facade::png::PalettePixel1Bit = typedef PalettePixel<1> |
A facade::png::PalettePixel object with a 1-bit facade::png::Sample value.
using facade::png::PalettePixel2Bit = typedef PalettePixel<2> |
A facade::png::PalettePixel object with a 2-bit facade::png::Sample value.
using facade::png::PalettePixel4Bit = typedef PalettePixel<4> |
A facade::png::PalettePixel object with a 4-bit facade::png::Sample value.
using facade::png::PalettePixel8Bit = typedef PalettePixel<8> |
A facade::png::PalettePixel object with an 8-bit facade::png::Sample value.
using facade::png::PaletteScanline1Bit = typedef ScanlineBase<PalettePixel1Bit> |
A 1-bit palette scanline, using facade::png::PalettePixel1Bit as a pixel base.
using facade::png::PaletteScanline2Bit = typedef ScanlineBase<PalettePixel2Bit> |
A 2-bit palette scanline, using facade::png::PalettePixel2Bit as a pixel base.
using facade::png::PaletteScanline4Bit = typedef ScanlineBase<PalettePixel4Bit> |
A 4-bit palette scanline, using facade::png::PalettePixel4Bit as a pixel base.
using facade::png::PaletteScanline8Bit = typedef ScanlineBase<PalettePixel8Bit> |
An 8-bit palette scanline, using facade::png::PalettePixel8Bit as a pixel base.
The variant type corresponding to all known pixel types for PNG images.
using facade::png::PixelRow = typedef std::vector<PixelSpan<PixelType> > |
A vector of a facade::png::PixelSpan of the given pixel type.
PixelType | The base type of pixel to make this vector. |
using facade::png::Sample16Bit = typedef Sample<std::uint16_t> |
using facade::png::Sample1Bit = typedef Sample<std::uint8_t, 1> |
using facade::png::Sample2Bit = typedef Sample<std::uint8_t, 2> |
using facade::png::Sample4Bit = typedef Sample<std::uint8_t, 4> |
using facade::png::Sample8Bit = typedef Sample<std::uint8_t> |
A variant type containing all accepted scanline types.
This is primarily to make building a new class on top of the variant easier.
using facade::png::TrueColorPixel16Bit = typedef TrueColorPixel<Sample16Bit> |
A facade::png::TrueColorPixel with a 16-bit facade::png::Sample value.
using facade::png::TrueColorPixel8Bit = typedef TrueColorPixel<Sample8Bit> |
A facade::png::TrueColorPixel with an 8-bit facade::png::Sample value.
using facade::png::TrueColorScanline16Bit = typedef ScanlineBase<TrueColorPixel16Bit> |
A 16-bit RGB scanline, using facade::png::TrueColorPixel16Bit as a pixel base.
using facade::png::TrueColorScanline8Bit = typedef ScanlineBase<TrueColorPixel8Bit> |
An 8-bit RGB scanline, using facade::png::TrueColorPixel8Bit as a pixel base.
An enum representing all available pixel types.
This enum corresponds to the indexes in variants such as facade::png::Pixel.
EXPORT std::vector< std::uint8_t > facade::png::pixels_to_raw | ( | const PixelRow< PixelType > & | pixels | ) |
Convert a row of facade::png::PixelSpan of the given pixel type into a vector of bytes.
PixelType | The pixel type of the row of span objects. |
pixels | The pixel data to convert to bytes. |