| OLD | NEW |
| 1 #ifndef QCMS_H | 1 #ifndef QCMS_H |
| 2 #define QCMS_H | 2 #define QCMS_H |
| 3 | 3 |
| 4 #ifdef __cplusplus | 4 #ifdef __cplusplus |
| 5 extern "C" { | 5 extern "C" { |
| 6 #endif | 6 #endif |
| 7 | 7 |
| 8 /* if we've already got an ICC_H header we can ignore the following */ | 8 /* if we've already got an ICC_H header we can ignore the following */ |
| 9 #ifndef ICC_H | 9 #ifndef ICC_H |
| 10 /* icc34 defines */ | 10 /* icc34 defines */ |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 } qcms_intent; | 95 } qcms_intent; |
| 96 | 96 |
| 97 //XXX: I don't really like the _DATA_ prefix | 97 //XXX: I don't really like the _DATA_ prefix |
| 98 typedef enum { | 98 typedef enum { |
| 99 QCMS_DATA_RGB_8, | 99 QCMS_DATA_RGB_8, |
| 100 QCMS_DATA_RGBA_8, | 100 QCMS_DATA_RGBA_8, |
| 101 QCMS_DATA_GRAY_8, | 101 QCMS_DATA_GRAY_8, |
| 102 QCMS_DATA_GRAYA_8 | 102 QCMS_DATA_GRAYA_8 |
| 103 } qcms_data_type; | 103 } qcms_data_type; |
| 104 | 104 |
| 105 /* Format of the output data for qcms_transform_data_type() */ |
| 106 typedef enum { |
| 107 QCMS_OUTPUT_RGBX, |
| 108 QCMS_OUTPUT_BGRX |
| 109 } qcms_output_type; |
| 110 |
| 105 /* the names for the following two types are sort of ugly */ | 111 /* the names for the following two types are sort of ugly */ |
| 106 typedef struct | 112 typedef struct |
| 107 { | 113 { |
| 108 double x; | 114 double x; |
| 109 double y; | 115 double y; |
| 110 double Y; | 116 double Y; |
| 111 } qcms_CIE_xyY; | 117 } qcms_CIE_xyY; |
| 112 | 118 |
| 113 typedef struct | 119 typedef struct |
| 114 { | 120 { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 139 void qcms_profile_precache_output_transform(qcms_profile *profile); | 145 void qcms_profile_precache_output_transform(qcms_profile *profile); |
| 140 | 146 |
| 141 qcms_transform* qcms_transform_create( | 147 qcms_transform* qcms_transform_create( |
| 142 qcms_profile *in, qcms_data_type in_type, | 148 qcms_profile *in, qcms_data_type in_type, |
| 143 qcms_profile* out, qcms_data_type out_type, | 149 qcms_profile* out, qcms_data_type out_type, |
| 144 qcms_intent intent); | 150 qcms_intent intent); |
| 145 | 151 |
| 146 void qcms_transform_release(qcms_transform *); | 152 void qcms_transform_release(qcms_transform *); |
| 147 | 153 |
| 148 void qcms_transform_data(qcms_transform *transform, void *src, void *dest, size_
t length); | 154 void qcms_transform_data(qcms_transform *transform, void *src, void *dest, size_
t length); |
| 155 void qcms_transform_data_type(qcms_transform *transform, void *src, void *dest,
size_t length, qcms_output_type type); |
| 149 | 156 |
| 150 void qcms_enable_iccv4(); | 157 void qcms_enable_iccv4(); |
| 151 | 158 |
| 152 #ifdef __cplusplus | 159 #ifdef __cplusplus |
| 153 } | 160 } |
| 154 #endif | 161 #endif |
| 155 | 162 |
| 156 #endif | 163 #endif |
| OLD | NEW |