-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjpegimage.h
41 lines (31 loc) · 881 Bytes
/
jpegimage.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
#ifndef _jpegimage_h
#define _jpegimage_h
const char * jpegVersion();
bool _checkJPEG(const char *filename);
bool _loadJPEGInfo(const char *filename,
unsigned *width,
unsigned *height,
unsigned *numcolors,
std::map<std::string,std::string> &info);
// std::string params="",
// char ** iccprofile=NULL,
// unsigned *icclength=0);
char * _loadJPEG(const char *filename,
unsigned *width,
unsigned *height,
unsigned *numcolors,
std::map<std::string,std::string> &info,
std::string params="",
char ** iccprofile=NULL,
unsigned *icclength=0);
bool _writeJPEG(const char *filename,
char *imagedata,
unsigned width,
unsigned height,
unsigned numcolors,
unsigned numbits,
std::map<std::string,std::string> info,
std::string params="",
char * iccprofile=NULL,
unsigned iccprofilelength=0);
#endif