QImage::Format_RGBX8888 is added in Qt5.2

This commit is contained in:
wang-bin
2014-10-28 10:46:06 +08:00
parent 0cb2507e95
commit 1ec7737b31
+2
View File
@@ -377,7 +377,9 @@ static const struct {
{ PIXFMT_NE(ARGB32, BGRA32), QImage::Format_ARGB32 },
{ VideoFormat::Format_RGB32, QImage::Format_ARGB32 },
{ VideoFormat::Format_RGB32, QImage::Format_RGB32 },
#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)
{ VideoFormat::Format_RGBA32, QImage::Format_RGBA8888 }, //be 0xRRGGBBAA, le 0xAABBGGRR
#endif
{ VideoFormat::Format_RGB565, QImage::Format_RGB16 },
{ VideoFormat::Format_RGB555, QImage::Format_RGB555 },
{ VideoFormat::Format_RGB24, QImage::Format_RGB888 },