PxCrypt v0.2.2
Encrypt data within an image
Loading...
Searching...
No Matches
encdec.h
1#ifndef ENCDEC_P_H
2#define ENCDEC_P_H
3
4// Qt Includes
5#include <QString>
6#include <QCryptographicHash>
7#include <QSize>
8#include <QImage>
9
10// Magic Enum
11#include <magic_enum.hpp>
12
13#define ENUM_NAME(eenum) QString(magic_enum::enum_name(eenum).data())
14
15namespace PxCryptPrivate
16{
17
18//-Namespace Enums-------------------------------------------------------------------------------------------------
19enum Channel : quint8{
20 Alpha = 0,
21 Red = 1,
22 Green = 2,
23 Blue = 3,
24};
25
26//-Namespace Variables-------------------------------------------------------------------------------------------------
27constexpr auto CH_COUNT = magic_enum::enum_count<Channel>();
28constexpr quint8 BPC_MIN = 1; // TODO: Can clamp to do away with these
29constexpr quint8 BPC_MAX = 7;
30
31//-Namespace Functions-------------------------------------------------------------------------------------------------
32QImage standardizeImage(const QImage& img); //TODO: See if this can go somewhere else
33
34}
35
36
37#endif // ENCDEC_P_H