-
Notifications
You must be signed in to change notification settings - Fork 5
/
color.h
68 lines (44 loc) · 2.22 KB
/
color.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
#ifndef _OPENIMAGEIGO_COLOR_H_
#define _OPENIMAGEIGO_COLOR_H_
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef void ColorProcessor;
typedef void ColorConfig;
ColorConfig* New_ColorConfig();
ColorConfig* New_ColorConfigPath(const char * filename);
void deleteColorConfig(ColorConfig* c);
bool ColorConfig_error(ColorConfig* c);
const char* ColorConfig_geterror(ColorConfig* c);
int ColorConfig_getNumColorSpaces(ColorConfig* c);
const char * ColorConfig_getColorSpaceNameByIndex(ColorConfig* c, int index);
const char * ColorConfig_getColorSpaceNameByRole(ColorConfig* c, const char *role);
int ColorConfig_getNumLooks(ColorConfig* c);
const char * ColorConfig_getLookNameByIndex(ColorConfig* c, int index);
ColorProcessor* ColorConfig_createColorProcessor(ColorConfig* c, const char * inputColorSpace,
const char * outputColorSpace);
// ColorProcessor* createLookTransform (ColorConfig* c, const char * looks,
// const char * inputColorSpace,
// const char * outputColorSpace,
// bool inverse,
// const char *context_key,
// const char *context_value);
int ColorConfig_getNumDisplays(ColorConfig* c);
const char * ColorConfig_getDisplayNameByIndex(ColorConfig* c, int index);
int ColorConfig_getNumViews(ColorConfig* c, const char * display);
const char * ColorConfig_getViewNameByIndex(ColorConfig* c, const char * display, int index);
// const char * getDefaultDisplayName(ColorConfig* c);
// const char * getDefaultViewName(ColorConfig* c, const char * display);
// ColorProcessor* createDisplayTransform (ColorConfig* c, const char * display,
// const char * view,
// const char * inputColorSpace,
// const char * looks,
// const char * context_key,
// const char * context_value);
void deleteColorProcessor(ColorProcessor* processor);
bool supportsOpenColorIO();
#ifdef __cplusplus
}
#endif
#endif