-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpublictypes.h
76 lines (63 loc) · 1.21 KB
/
publictypes.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//
// (C) Jan de Vaan 2007-2010, all rights reserved. See the accompanying "License.txt" for licensed use.
//
#ifndef CHARLS_PUBLICTYPES
#define CHARLS_PUBLICTYPES
#include "config.h"
enum JLS_ERROR
{
OK = 0,
InvalidJlsParameters,
ParameterValueNotSupported,
UncompressedBufferTooSmall,
CompressedBufferTooSmall,
InvalidCompressedData,
TooMuchCompressedData,
ImageTypeNotSupported,
UnsupportedBitDepthForTransform,
UnsupportedColorTransform
};
enum interleavemode
{
ILV_NONE = 0,
ILV_LINE = 1,
ILV_SAMPLE = 2
};
struct JlsCustomParameters
{
int MAXVAL;
int T1;
int T2;
int T3;
int RESET;
};
struct JlsRect
{
int X, Y;
int Width, Height;
};
struct JfifParameters
{
int Ver;
char units;
int XDensity;
int YDensity;
short Xthumb;
short Ythumb;
void* pdataThumbnail; // user must set buffer which size is Xthumb*Ythumb*3(RGB) before JpegLsDecode()
};
struct JlsParameters
{
int width;
int height;
int bitspersample;
int bytesperline; // for [source (at encoding)][decoded (at decoding)] pixel image in user buffer
int components;
int allowedlossyerror;
enum interleavemode ilv;
int colorTransform;
char outputBgr;
struct JlsCustomParameters custom;
struct JfifParameters jfif;
};
#endif