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>
This commit is contained in:
Yoann Lopes
2013-07-19 14:36:06 +02:00
committed by The Qt Project
parent d8e56bc4b8
commit c74b544610

View File

@@ -595,7 +595,7 @@ void DSCameraSession::captureFrame()
mutex.lock(); mutex.lock();
image = QImage(frames.at(0)->buffer,m_windowSize.width(),m_windowSize.height(), 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); QVideoFrame frame(image);
frame.setStartTime(frames.at(0)->time); frame.setStartTime(frames.at(0)->time);