|
PxCrypt v0.2.2
Encrypt data within an image
|
The Stat provides the means to generate various statistics of a potential PxCrypt image.
#include <>>
Classes | |
| struct | Capacity |
| The Capacity holds information about the capacity of an image at a given BPC. More... | |
Public Member Functions | |
| Stat (const QImage &image) | |
| Stat (const QSize &size) | |
| ~Stat () | |
| Capacity | capacity (quint8 bpc) const |
| bool | fitsMetadata () const |
| quint8 | minimumDensity (quint64 bytes) const |
| PxCrypt::Stat::Stat | ( | const QImage & | image | ) |
Constructs a statistics generator for image.
| PxCrypt::Stat::Stat | ( | const QSize & | size | ) |
Constructs a statistics generator for an image of size size.
| PxCrypt::Stat::~Stat | ( | ) |
Destroys the statistics generator.
| Stat::Capacity PxCrypt::Stat::capacity | ( | quint8 | bpc | ) | const |
Returns capacity information of the image, calculated at bpc bits-per-channel.
| bool PxCrypt::Stat::fitsMetadata | ( | ) | const |
Returns true if the image is large enough to fit the standard metadata required by every type of PxCrypt image; otherwise, returns false.
| quint8 PxCrypt::Stat::minimumDensity | ( | quint64 | bytes | ) | const |
Returns the smallest density (bits-per-channel) requires to store bytes total bytes within the image, regardless of encoder underlying storage format, or 0 if bytes exceeds the capacity of the image.