[Digikam-devel] DImg sixteenbits flag corrupted ?
Gilles Caulier
caulier.gilles at gmail.com
Tue Feb 23 10:53:02 GMT 2010
Marcel,
Try my current code from svn about B&W converter and look line 126
from bwsepiafilter.cpp :
// uchar* targetData = new uchar[m_orgImage.numBytes()];
uchar* targetData = new
uchar[m_orgImage.width()*m_orgImage.height()*(m_orgImage.sixteenBit()
? 8 : 4)];
Both lines must give the same result in tool preview. But if you use
DImg::numBytes(), i can see an image with an height reduced by 2 ! the
question is why ?
Can you reproduce it ?
Gilles Caulier
More information about the Digikam-devel
mailing list