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
15
namespace
PxCryptPrivate
16
{
17
18
//-Namespace Enums-------------------------------------------------------------------------------------------------
19
enum
Channel : quint8{
20
Alpha = 0,
21
Red = 1,
22
Green = 2,
23
Blue = 3,
24
};
25
26
//-Namespace Variables-------------------------------------------------------------------------------------------------
27
constexpr
auto
CH_COUNT = magic_enum::enum_count<Channel>();
28
constexpr
quint8 BPC_MIN = 1;
// TODO: Can clamp to do away with these
29
constexpr
quint8 BPC_MAX = 7;
30
31
//-Namespace Functions-------------------------------------------------------------------------------------------------
32
QImage standardizeImage(
const
QImage& img);
//TODO: See if this can go somewhere else
33
34
}
35
36
37
#endif
// ENCDEC_P_H
lib
src
codec
encdec.h
Generated by
1.10.0