|
| Header () |
|
| Header (const void *ptr, std::size_t size) |
|
| Header (const std::vector< std::uint8_t > &vec) |
|
| Header (std::uint32_t width, std::uint32_t height, std::uint8_t bit_depth, std::uint8_t color_type, std::uint8_t compression_method=0, std::uint8_t filter_method=0, std::uint8_t interlace_method=0) |
|
| Header (const Header &other) |
|
void | set (std::uint32_t width, std::uint32_t height, std::uint8_t bit_depth, std::uint8_t color_type, std::uint8_t compression_method=0, std::uint8_t filter_method=0, std::uint8_t interlace_method=0) |
| Set the values of this header all at once.
|
|
std::uint32_t | width () const |
| Get the width value of this header.
|
|
void | set_width (std::uint32_t width) |
| Set the width value of this header.
|
|
std::uint32_t | height () const |
| Get the height value of this header.
|
|
void | set_height (std::uint32_t height) |
| Set the height value of this header.
|
|
std::uint8_t | bit_depth () const |
| Get the bit depth of this header.
|
|
void | set_bit_depth (std::uint8_t bit_depth) |
| Set the bit depth of this header.
|
|
std::uint8_t | color_type () const |
| Get the color type of this header.
|
|
void | set_color_type (std::uint8_t color_type) |
| Set the color type of this header.
|
|
std::uint8_t | compression_method () const |
| Get the compression method of this header.
|
|
void | set_compression_method (std::uint8_t compression_method) |
| Set the compression method of this header.
|
|
std::uint8_t | filter_method () const |
| Get the filter method of this header.
|
|
void | set_filter_method (std::uint8_t filter_method) |
| Set the filter method of this header.
|
|
std::uint8_t | interlace_method () const |
| Get the interlace method of this header.
|
|
void | set_interlace_method (std::uint8_t interlace_method) |
| Set the filter method of this header.
|
|
PixelEnum | pixel_type () const |
| Get the pixel type associated with this PNG image.
|
|
std::size_t | pixel_size () const |
| Get the size, in bits, of the current pixel type.
|
|
std::size_t | buffer_size () const |
| Return the expected raw pixel data buffer size of the decompressed image data, in bytes.
|
|
| ChunkVec (const ChunkTag tag) |
|
| ChunkVec (const ChunkTag tag, const void *ptr, std::size_t size) |
|
| ChunkVec (const ChunkTag tag, const std::vector< std::uint8_t > &data) |
|
| ChunkVec (const ChunkVec &other) |
|
bool | operator== (const ChunkVec &other) const |
|
std::size_t | length () const |
| Return the length of this chunk's data.
|
|
ChunkTag & | tag () |
| Return the chunk tag reference associated with this chunk.
|
|
const ChunkTag & | tag () const |
| Return a const chunk tag reference associated with this chunk.
|
|
std::vector< std::uint8_t > & | data () |
| Return the chunk data reference associated with this chunk.
|
|
const std::vector< std::uint8_t > & | data () const |
| Return const chunk data reference associated with this chunk.
|
|
void | set_data (std::vector< std::uint8_t > &data) |
| Set the chunk data for this chunk.
|
|
std::uint32_t | crc () const |
| Calculate the CRC value of this chunk.
|
|
std::pair< std::vector< std::uint8_t >, ChunkPtr > | to_chunk_ptr () const |
| Convert this ChunkVec to a facade::png::ChunkPtr.
|
|
template<typename T > |
T & | upcast () |
| Create a reference to a higher-level ChunkVec object, such as facade::png::Header.
|
|
template<typename T > |
const T & | upcast () const |
| Create a const reference to a higher-level ChunkVec object, such as facade::png::Header.
|
|
ChunkVec & | as_chunk_vec () |
| Interpret this ChunkVec derivative as a ChunkVec object.
|
|
const ChunkVec & | as_chunk_vec () const |
| Interpret this ChunkVec derivative as a const ChunkVec object.
|
|