Fix order of QSGVideoNode_RGB's supported formats.
RGB565 should not be the first pick. As a matter of fact it should be the last pick. Change-Id: I4b96fb02093e70d9c642efd79c48358ec7a664b0 Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
This commit is contained in:
@@ -46,11 +46,11 @@ QList<QVideoFrame::PixelFormat> QSGVideoNodeFactory_RGB::supportedPixelFormats(
|
||||
QList<QVideoFrame::PixelFormat> pixelFormats;
|
||||
|
||||
if (handleType == QAbstractVideoBuffer::NoHandle) {
|
||||
pixelFormats.append(QVideoFrame::Format_RGB565);
|
||||
pixelFormats.append(QVideoFrame::Format_RGB32);
|
||||
pixelFormats.append(QVideoFrame::Format_ARGB32);
|
||||
pixelFormats.append(QVideoFrame::Format_BGR32);
|
||||
pixelFormats.append(QVideoFrame::Format_BGRA32);
|
||||
pixelFormats.append(QVideoFrame::Format_RGB565);
|
||||
}
|
||||
|
||||
return pixelFormats;
|
||||
|
||||
Reference in New Issue
Block a user