Fixed dispmanx2png (incorrect color byte order)

Former-commit-id: fe2529ba068e690e19797b3bd7ae10a2243c7286
This commit is contained in:
T. van der Zwan 2013-11-14 08:52:10 +00:00
parent 9ff76ad97e
commit 14a1adb9e0

View File

@ -116,7 +116,8 @@ int main(int argc, char** argv)
memcpy(scanLinePtr, imageRgba.memptr()+imageRgba.width()*iScanline, imageRgba.width()*sizeof(ColorRgba)); memcpy(scanLinePtr, imageRgba.memptr()+imageRgba.width()*iScanline, imageRgba.width()*sizeof(ColorRgba));
} }
qImage.save(QString("HYPERION_%3.png").arg(iFrame)); const QImage qImageSwp = qImage.rgbSwapped();
qImageSwp.save(QString("HYPERION_%3.png").arg(iFrame));
++iFrame; ++iFrame;
timespec sleepTime; timespec sleepTime;