11 #include <QSharedPointer>
12 #include <QWeakPointer>
13 #include "scribusapi.h"
14 #include "sccolorprofile.h"
15 #include "sccolorspacedata.h"
16 #include "sccolortransform.h"
28 inline bool isNull()
const {
return m_data.isNull(); }
29 inline operator bool ()
const {
return !isNull(); }
31 eColorType type()
const;
32 eColorFormat colorFormat()
const;
35 uint numChannels(
void)
const;
36 uint bytesPerChannel(
void)
const;
38 bool hasAlphaChannel(
void)
const;
39 uint alphaIndex(
void)
const;
42 void flattenAlpha(
void* dataIn, uint numElems);
48 eRenderIntent renderIntent,
long transformFlags);
52 eRenderIntent renderIntent, eRenderIntent proofingIntent,
56 eRenderIntent proofingIntent,
long transformFlags);
59 bool convert(
ScColorSpace& data, eRenderIntent renderIntent,
long transformFlags,
60 void* dataIn,
void* dataOut, uint numElems,
ScColorTransform* lastTrans = 0);
61 bool convert(
ScColorSpace& data, eRenderIntent renderIntent,
long transformFlags,
62 void* dataIn, QIODevice* device, uint numElems,
ScColorTransform* lastTrans = 0);
69 QSharedPointer<ScColorSpaceData> m_data;
71 QWeakPointer<ScColorSpaceData> weakRef()
const {
return m_data.toWeakRef(); }
72 QSharedPointer<ScColorSpaceData> strongRef()
const {
return m_data; }
Definition: sccolorspace.h:18
Definition: sccolorprofile.h:16
Definition: sccolorspacedata.h:17
Definition: sccolormgmtengine.h:16