diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-06-20 13:04:00 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-06-20 12:03:33 +0000 |
commit | 9649a6ed9853fda10392b8cf332ddc94c7361d09 (patch) | |
tree | 1418a52092a17854e26c0347825509006b76003b /src/plugins/common/evr/evrhelpers.h | |
parent | 523494be2dd799eb838ef4724de77111ce77c8f3 (diff) |
DirectShow: Change parameter of qt_evr_pixelFormatFromD3DFormat() to DWORD
Fixes g++ warnings:
..\common\evr\evrhelpers.cpp: In function 'QVideoFrame::PixelFormat qt_evr_pixelFormatFromD3DFormat(D3DFORMAT)':
..\common\evr\evrhelpers.cpp:143:5: warning: case value '842094158' not in enumerated type 'D3DFORMAT {aka _D3DFORMAT}' [-Wswitch]
case D3DFMT_NV12:
..\common\evr\evrhelpers.cpp:145:5: warning: case value '842094169' not in enumerated type 'D3DFORMAT {aka _D3DFORMAT}' [-Wswitch]
case D3DFMT_YV12:
Change-Id: I11869144b34d848bd68434d3a062852608518978
Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src/plugins/common/evr/evrhelpers.h')
-rw-r--r-- | src/plugins/common/evr/evrhelpers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/common/evr/evrhelpers.h b/src/plugins/common/evr/evrhelpers.h index d2fdfdcae..527612c45 100644 --- a/src/plugins/common/evr/evrhelpers.h +++ b/src/plugins/common/evr/evrhelpers.h @@ -90,7 +90,7 @@ inline HRESULT qt_evr_getFrameRate(IMFMediaType *pType, MFRatio *pRatio) return MFGetAttributeRatio(pType, MF_MT_FRAME_RATE, (UINT32*)&pRatio->Numerator, (UINT32*)&pRatio->Denominator); } -QVideoFrame::PixelFormat qt_evr_pixelFormatFromD3DFormat(D3DFORMAT format); +QVideoFrame::PixelFormat qt_evr_pixelFormatFromD3DFormat(DWORD format); D3DFORMAT qt_evr_D3DFormatFromPixelFormat(QVideoFrame::PixelFormat format); QT_END_NAMESPACE |