summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@digia.com>2013-07-19 14:36:06 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-19 14:43:26 +0200
commitc74b544610376c753ea0a29ff2465e2bcfe70e1d (patch)
treeecd73cf4ec717a04168e0e8d9e0df563e8b97925
parentd8e56bc4b8d2bb35074d1158a068832054386c1a (diff)
DirectShow: avoid unnecessary RGB32 -> BGR32 conversion.
Frames in the RGB32 format are actually using the BGR byte order, no need to do the conversion. Task-number: QTBUG-29206 Change-Id: I13527bd9dacc8330df78beb0965b31469c1d7a87 Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
-rw-r--r--src/plugins/directshow/camera/dscamerasession.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/directshow/camera/dscamerasession.cpp b/src/plugins/directshow/camera/dscamerasession.cpp
index 353078f43..cc1594feb 100644
--- a/src/plugins/directshow/camera/dscamerasession.cpp
+++ b/src/plugins/directshow/camera/dscamerasession.cpp
@@ -595,7 +595,7 @@ void DSCameraSession::captureFrame()
mutex.lock();
image = QImage(frames.at(0)->buffer,m_windowSize.width(),m_windowSize.height(),
- QImage::Format_RGB32).rgbSwapped().mirrored(true);
+ QImage::Format_RGB32).mirrored(true);
QVideoFrame frame(image);
frame.setStartTime(frames.at(0)->time);