Advanced color spaces

This commit is contained in:
Jakub Melka
2019-02-16 18:26:16 +01:00
parent 648879eadf
commit 8e766376bc
7 changed files with 982 additions and 29 deletions

View File

@ -104,6 +104,20 @@ public:
}
}
T& operator[] (size_t index)
{
Q_ASSERT(index < size());
if (index < FlatSize)
{
return m_flatBlock[index];
}
else
{
return m_variableBlock[index - FlatSize];
}
}
void clear()
{
m_flatBlockEndIterator = m_flatBlock.begin();