5#include "pxcrypt/pxcrypt_codec_export.h"
11#include "pxcrypt/encode_error.h"
29 static inline const EncodeError ERR_MISSING_PAYLOAD =
30 EncodeError(EncodeError::MissingPayload, u
"No payload data was provided."_s);
32 EncodeError(EncodeError::InvalidImage, u
"The medium is invalid."_s);
34 EncodeError(EncodeError::WontFit, u
"The medium's dimensions are not large enough to fit the payload (%1 KiB short)."_s);
36 EncodeError(EncodeError::InvalidBpc, u
"Bits-per-channel must be between 1 and 7."_s);
57 static quint64 calculateMaximumStorage(
const QSize& dim, quint16 tagSize, quint8 bpc);
58 static quint8 calculateOptimalDensity(
const QSize& dim, quint16 tagSize, quint32 payloadSize);
62 bool hasError()
const;
68 Encoding encoding()
const;
71 void setBpc(quint8 bpc);
73 void setEncoding(Encoding enc);
The EncodeError class is used to report errors during image encoding.
Definition encode_error.h:14
The Encoder class provides serialization of binary data to portions of an arbitrary image's color cha...
Definition encoder.h:17
Encoding
Definition encoder.h:21
@ Relative
Definition encoder.h:22
The PxCrypt namespace is the main namespace through which all functionality of the PxCrypt library is...
Definition decode_error.cpp:5