#include <pngchunk_int.hpp>
Public Types | |
| enum | TxtChunkType { tEXt_Chunk = 0, zTXt_Chunk = 1, iTXt_Chunk = 2 } |
| Text Chunk types. | |
Static Public Member Functions | |
| void | decodeIHDRChunk (const DataBuf &data, int *outWidth, int *outHeight) |
| Decode PNG IHDR chunk data from a data buffer data and return image size to outWidth and outHeight. | |
| void | decodeTXTChunk (Image *pImage, const DataBuf &data, TxtChunkType type) |
| Decode PNG tEXt, zTXt, or iTXt chunk data from pImage passed by data buffer data and extract Comment, Exif, Iptc, Xmp metadata accordingly. | |
| DataBuf | keyTXTChunk (const DataBuf &data, bool stripHeader=false) |
| Return PNG TXT chunk key as data buffer. | |
| std::string | makeMetadataChunk (const std::string &metadata, MetadataId type) |
| Return a complete PNG chunk data compressed or not as buffer. Data returned is formated accordingly with metadata type to host passed by metadata. | |
|
||||||||||||||||
|
Decode PNG IHDR chunk data from a data buffer data and return image size to outWidth and outHeight.
|
|
||||||||||||||||
|
Decode PNG tEXt, zTXt, or iTXt chunk data from pImage passed by data buffer data and extract Comment, Exif, Iptc, Xmp metadata accordingly.
|
|
||||||||||||
|
Return PNG TXT chunk key as data buffer.
|
|
||||||||||||
|
Return a complete PNG chunk data compressed or not as buffer. Data returned is formated accordingly with metadata type to host passed by metadata.
|
1.3.5