From 1ec7737b317c71c31757be69c3caf650caa5e41f Mon Sep 17 00:00:00 2001 From: wang-bin Date: Tue, 28 Oct 2014 10:46:06 +0800 Subject: [PATCH] QImage::Format_RGBX8888 is added in Qt5.2 --- src/VideoFormat.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/VideoFormat.cpp b/src/VideoFormat.cpp index 352ed57f..3c778260 100644 --- a/src/VideoFormat.cpp +++ b/src/VideoFormat.cpp @@ -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 },