PxCrypt v0.2.2
Encrypt data within an image
Loading...
Searching...
No Matches
stat.h
1#ifndef STAT_H
2#define STAT_H
3
4// Shared Library Support
5#include "pxcrypt/pxcrypt_codec_export.h"
6
7// Qt Includes
8#include <QImage>
9
10namespace PxCrypt
11{
12
13class StatPrivate;
14
15class PXCRYPT_CODEC_EXPORT Stat
16{
17 Q_DECLARE_PRIVATE(Stat);
18//-Structs----------------------------------------------------------------------------------------------
19public:
20 struct Capacity
21 {
22 quint64 bytes;
24 };
25
26//-Instance Variables----------------------------------------------------------------------------------------------
27private:
28 std::unique_ptr<StatPrivate> d_ptr;
29
30//-Constructor---------------------------------------------------------------------------------------------------------
31public:
32 Stat(const QImage& image);
33 Stat(const QSize& size);
34
35//-Destructor---------------------------------------------------------------------------------------------------
36public:
37 ~Stat();
38
39//-Instance Functions----------------------------------------------------------------------------------------------
40public:
41 Capacity capacity(quint8 bpc) const;
42 bool fitsMetadata() const;
43 quint8 minimumDensity(quint64 bytes) const;
44};
45
46}
47
48#endif // STAT_H
The Stat provides the means to generate various statistics of a potential PxCrypt image.
Definition stat.h:16
The PxCrypt namespace is the main namespace through which all functionality of the PxCrypt library is...
Definition decoder.cpp:6
The Capacity holds information about the capacity of an image at a given BPC.
Definition stat.h:21
quint8 leftoverBits
Definition stat.h:23
quint64 bytes
Definition stat.h:22