1 #ifndef SCCOLORSPACEDATA_RGBA_H
2 #define SCCOLORSPACEDATA_RGBA_H
7 #include "sccolorprofile.h"
8 #include "sccolorspacedata.h"
10 template<
typename T, eColorFormat COLORFORMAT>
22 virtual uint alphaIndex(
void)
const {
return m_aIndex; }
23 virtual void flattenAlpha(
void* dataIn, uint numElems)
const;
26 template<
typename T, eColorFormat COLORFORMAT>
29 m_colorFormat = COLORFORMAT;
31 if (m_colorFormat == Format_RGBA_8 || m_colorFormat == Format_RGBA_16)
38 else if (m_colorFormat == Format_ARGB_8 || m_colorFormat == Format_ARGB_16)
45 else if (m_colorFormat == Format_BGRA_8 || m_colorFormat == Format_BGRA_16)
58 assert(m_profile.colorSpace() == ColorSpace_Rgb);
62 template<
typename T, eColorFormat COLORFORMAT>
65 T* data = ((T*) dataIn) + m_aIndex;
66 T nLimit = std::numeric_limits<T>::max();
Definition: sccolorprofile.h:16
Definition: sccolorspacedata.h:17
Definition: sccolorspacedata_rgba.h:11