DirectShow: support MJPEG cameras
Map MEDIASUBTYPE_MJPG to QVideoFrame::Format_Jpeg, which makes sure that cameras that only support MJPEG are configured properly. Task-number: QTBUG-55359 Change-Id: I732c56afc51109aba0231c8537f795e8d276c194 Reviewed-by: Christian Stromme <christian.stromme@qt.io>
This commit is contained in:
@@ -168,6 +168,8 @@ QVideoFrame::PixelFormat pixelFormatFromMediaSubtype(GUID uid)
|
||||
return QVideoFrame::Format_YUYV;
|
||||
else if (uid == MEDIASUBTYPE_NV12)
|
||||
return QVideoFrame::Format_NV12;
|
||||
else if (uid == MEDIASUBTYPE_MJPG)
|
||||
return QVideoFrame::Format_Jpeg;
|
||||
else if (uid == MEDIASUBTYPE_IMC1)
|
||||
return QVideoFrame::Format_IMC1;
|
||||
else if (uid == MEDIASUBTYPE_IMC2)
|
||||
|
||||
Reference in New Issue
Block a user