DecodedImage
Functions
DecodedImage |
|
DecodedImage |
|
~DecodedImage |
|
| bool | IsValid |
DecodedImage |
|
| DecodedImage & | operator= |
DecodedImage |
|
| DecodedImage & | operator= |
Detailed Description
-
class
DecodedImage Decoded in-memory image. Owns the pixel buffer via std::vector.
Public Functions
-
DecodedImage() = default Default constructor — empty image.
-
DecodedImage(unsigned char const *png_data, size_t png_size) Construct by decoding a PNG blob from memory. On failure, pixels is empty and dimensions are zero.
Parameters: - png_data – Pointer to the PNG file bytes.
- png_size – Number of bytes in
png_data.
-
~DecodedImage() = default
-
inline bool
IsValid() const Returns: true if the image was decoded successfully.
-
DecodedImage(DecodedImage const&) = delete
-
DecodedImage &
operator=(DecodedImage const&) = delete
-
DecodedImage(DecodedImage&&) = default
-
DecodedImage &
operator=(DecodedImage&&) = default
-