diff options
Diffstat (limited to 'src/plugins/common/evr/evrhelpers.h')
-rw-r--r-- | src/plugins/common/evr/evrhelpers.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/common/evr/evrhelpers.h b/src/plugins/common/evr/evrhelpers.h index 3883379a0..1b1f64194 100644 --- a/src/plugins/common/evr/evrhelpers.h +++ b/src/plugins/common/evr/evrhelpers.h @@ -35,6 +35,9 @@ #define EVRHELPERS_H #include "evrdefs.h" +#include <qvideoframe.h> + +QT_USE_NAMESPACE template<class T> static inline void qt_evr_safe_release(T **unk) @@ -81,5 +84,8 @@ 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); +D3DFORMAT qt_evr_D3DFormatFromPixelFormat(QVideoFrame::PixelFormat format); + #endif // EVRHELPERS_H |