-
Notifications
You must be signed in to change notification settings - Fork 0
/
qmage_helper.h
27 lines (19 loc) · 970 Bytes
/
qmage_helper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef QMAGEDECODER_QMAGE_HELPER_H
#define QMAGEDECODER_QMAGE_HELPER_H
#include <qmg.h>
#include <string>
// Returns the name of a encoder codec
std::string getEncoderCodecName(QmageDecodeCodecType codec);
// Returns the name of a decoder version
std::string getDecoderVersionName(Qmage_DecoderVersion version);
// Returns the name of a V decoder version
std::string getVDecoderVersionName(Qmage_V_DecoderVersion version);
// Returns the name of a F decoder version
std::string getFDecoderVersionName(Qmage_F_DecoderVersion version);
// Returns the amount of bits needed to store an image of this type
int typeToBits(QmageRawImageType type);
std::string getFormatName(QmageRawImageType type);
QmageRawImageType getConvertedType(QmageRawImageType type);
void doConvert(QmageRawImageType from, const unsigned char* input, unsigned char* output, size_t amountPixels);
std::string getDecodeErrorName(QmageDecoderError err);
#endif /* QMAGEDECODER_QMAGE_HELPER_H */