Design ideas about iterators

Cyrille Berger cyb at lepi.org
Wed Mar 3 11:42:04 CET 2004


> What is a quantum?
> * One color component of a pixel?
> * The minimum storage unit?
both. 

> If it is a color component then we will need QUANTUM16 in the future. But
> if it is the minimum storage unit it will never need to change (and we
> could remove that flexibility from the definition - QUANTUM_DEPTH)

> To store 16 bits use two quantum...
> One RGBA pixel four (or eight) quantum.
hum, yes but if we use two quantum to do a quantum16, we will have to write a 
brand new colorstrategy, but if we use template, we can share some code 
between colors strategy.

-- 
--- Cyrille Berger ---


More information about the kimageshop mailing list