Change vectorscope to use QImage::pixel()
Vectorscope tried to directly reinterpret the input QImage as RGB data, which makes an assumption that the input is RGB. On Windows, the input QImage is BGR, causing red and blue to be switched in the Vectorscope. QImage::pixel() checks QImageData->format and converts the to QRgb appropriately. Casual benchmarking seems to show that using pixel() is about 5% slower for each vectorscope calculation in the no-conversion case (e.g. Linux). BUG: 453149
parent
9eca9f07
Please register or sign in to comment