[Qt-interest] QImage bytesPerLine != width()*depth()/8 Why?
MARTIN Pierre
hickscorp at gmail.com
Wed Sep 21 03:39:12 CEST 2011
Hello Paul,
> Probably not. 4 (or 16) byte alignment is used so fancy SSE instructions
> can be used for extra performance. If your library requires the image to
> be w*h in size you'll probably have to copy the image data.
Thank you very much for the explaination Paul!
> But in over 20 years of image processing I've never seen any library
> that works with images that doesn't support arbitrary row-bytes. Maybe
> you can go to the API vendor and ask them to extend it? It doesn't seem
> very well designed as it is.
yeah... i've been working with many graphics APIs for over 10 years, and i have to admit this one is the first to be problematic. i have tried to explain that to the private API developers (A2iA checks recognition software), i'll see what they'll answer.
Thank you very much for your time guys!
Best,
Pierre.
More information about the Qt-interest-old
mailing list