PxCrypt v0.2.2
Encrypt data within an image
Loading...
Searching...
No Matches
PxCrypt::Stat Class Reference

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
 

Constructor & Destructor Documentation

◆ Stat() [1/2]

PxCrypt::Stat::Stat ( const QImage & image)

Constructs a statistics generator for image.

◆ Stat() [2/2]

PxCrypt::Stat::Stat ( const QSize & size)

Constructs a statistics generator for an image of size size.

◆ ~Stat()

PxCrypt::Stat::~Stat ( )

Destroys the statistics generator.

Member Function Documentation

◆ capacity()

Stat::Capacity PxCrypt::Stat::capacity ( quint8 bpc) const

Returns capacity information of the image, calculated at bpc bits-per-channel.

◆ fitsMetadata()

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.

◆ minimumDensity()

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.

See also
capacity().

The documentation for this class was generated from the following files: