Q_UINT8 and Pixel

Leonardo Giordani leonardo.giordani at treuropa.com
Fri Mar 10 16:28:47 CET 2006


I was looking at LMS color space:

kis_lms_f32_colorspace.cc:66

void KisLmsF32ColorSpace::setPixel(Q_UINT8 *dst, float longWave, float 
middleWave, float shortWave, float alpha) const
{
    Pixel *dstPixel = reinterpret_cast<Pixel *>(dst);

Why are we using Q_UINT8 * externally, casting it to Pixel * inside?
Asked in a better way: why are we using Q_UINT8 instead of Pixel?

Thanks

-- 
Leonardo Giordani

Tele-Rilevamento Europa - T.R.E. s.r.l.
a POLIMI spin-off company
Via Vittoria Colonna, 7
20149 Milano - Italia
tel.: +39.02.4343.121
fax: +39.02.4343.1230
e-mail: leonardo.giordani (at) treuropa.com
web: www.treuropa.com




More information about the kimageshop mailing list