9020
by JazzyNico
Code refactoring and merging with trunk (revision 10599). |
1 |
#ifndef SEEN_COLOR_PROFILE_CMS_FNS_H
|
2 |
#define SEEN_COLOR_PROFILE_CMS_FNS_H
|
|
3 |
||
4 |
#if ENABLE_LCMS
|
|
5 |
#include <lcms.h> |
|
6 |
#endif // ENABLE_LCMS |
|
7 |
||
8 |
#include "cms-color-types.h" |
|
9 |
||
10 |
namespace Inkscape { |
|
11 |
||
12 |
#if ENABLE_LCMS
|
|
13 |
||
14 |
// Note: these can later be adjusted to adapt for lcms2:
|
|
15 |
||
16 |
class ColorSpaceSigWrapper : public ColorSpaceSig { |
|
17 |
public : |
|
18 |
ColorSpaceSigWrapper( icColorSpaceSignature sig ) : ColorSpaceSig( static_cast<guint32>(sig) ) {} |
|
19 |
ColorSpaceSigWrapper( ColorSpaceSig const &other ) : ColorSpaceSig( other ) {} |
|
20 |
||
21 |
operator icColorSpaceSignature() const { return static_cast<icColorSpaceSignature>(value); } |
|
22 |
};
|
|
23 |
||
24 |
class ColorProfileClassSigWrapper : public ColorProfileClassSig { |
|
25 |
public : |
|
26 |
ColorProfileClassSigWrapper( icProfileClassSignature sig ) : ColorProfileClassSig( static_cast<guint32>(sig) ) {} |
|
27 |
ColorProfileClassSigWrapper( ColorProfileClassSig const &other ) : ColorProfileClassSig( other ) {} |
|
28 |
||
29 |
operator icProfileClassSignature() const { return static_cast<icProfileClassSignature>(value); } |
|
30 |
};
|
|
31 |
||
32 |
icColorSpaceSignature asICColorSpaceSig(ColorSpaceSig const & sig); |
|
33 |
icProfileClassSignature asICColorProfileClassSig(ColorProfileClassSig const & sig); |
|
34 |
||
35 |
#endif // ENABLE_LCMS |
|
36 |
||
37 |
} // namespace Inkscape |
|
38 |
||
39 |
||
40 |
#endif // !SEEN_COLOR_PROFILE_CMS_FNS_H |
|
41 |
||
42 |
/*
|
|
43 |
Local Variables:
|
|
44 |
mode:c++
|
|
45 |
c-file-style:"stroustrup"
|
|
46 |
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
|
|
47 |
indent-tabs-mode:nil
|
|
48 |
fill-column:99
|
|
49 |
End:
|
|
50 |
*/
|
|
51 |
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
|