Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qvideoframe.h>
#include <d3d9.h>
#include <dxva2api.h>
#include <evr9.h>
#include <evr.h>
#include <mfidl.h>
#include <mfapi.h>
#include <mferror.h>
#include <private/quniquehandle_p.h>
Go to the source code of this file.
Classes | |
struct | NullHandleTraits |
Typedefs | |
using | EventHandle = QUniqueHandle<NullHandleTraits> |
using | ThreadHandle = QUniqueHandle<NullHandleTraits> |
Functions | |
template<class T > | |
static QT_BEGIN_NAMESPACE void | qt_evr_safe_release (T **unk) |
HRESULT | qt_evr_getFourCC (IMFMediaType *type, DWORD *fourCC) |
bool | qt_evr_areMediaTypesEqual (IMFMediaType *type1, IMFMediaType *type2) |
HRESULT | qt_evr_validateVideoArea (const MFVideoArea &area, UINT32 width, UINT32 height) |
bool | qt_evr_isSampleTimePassed (IMFClock *clock, IMFSample *sample) |
float | qt_evr_MFOffsetToFloat (const MFOffset &offset) |
MFOffset | qt_evr_makeMFOffset (float v) |
MFVideoArea | qt_evr_makeMFArea (float x, float y, DWORD width, DWORD height) |
HRESULT | qt_evr_getFrameRate (IMFMediaType *pType, MFRatio *pRatio) |
QVideoFrameFormat::PixelFormat | qt_evr_pixelFormatFromD3DFormat (DWORD format) |
D3DFORMAT | qt_evr_D3DFormatFromPixelFormat (QVideoFrameFormat::PixelFormat format) |
using EventHandle = QUniqueHandle<NullHandleTraits> |
Definition at line 87 of file evrhelpers_p.h.
using ThreadHandle = QUniqueHandle<NullHandleTraits> |
Definition at line 88 of file evrhelpers_p.h.
bool qt_evr_areMediaTypesEqual | ( | IMFMediaType * | type1, |
IMFMediaType * | type2 ) |
Definition at line 32 of file evrhelpers.cpp.
D3DFORMAT qt_evr_D3DFormatFromPixelFormat | ( | QVideoFrameFormat::PixelFormat | format | ) |
Definition at line 111 of file evrhelpers.cpp.
References D3DFMT_NV12, D3DFMT_YV12, QVideoFrameFormat::Format_ARGB8888, QVideoFrameFormat::Format_BGRA8888, QVideoFrameFormat::Format_BGRX8888, QVideoFrameFormat::Format_Invalid, QVideoFrameFormat::Format_NV12, QVideoFrameFormat::Format_RGBA8888, QVideoFrameFormat::Format_RGBX8888, QVideoFrameFormat::Format_UYVY, QVideoFrameFormat::Format_Y8, QVideoFrameFormat::Format_YUYV, and QVideoFrameFormat::Format_YV12.
Referenced by EVRCustomPresenter::supportedFormatsChanged().
HRESULT qt_evr_getFourCC | ( | IMFMediaType * | type, |
DWORD * | fourCC ) |
Definition at line 15 of file evrhelpers.cpp.
Referenced by D3DPresentEngine::createVideoSamples().
|
inline |
Definition at line 70 of file evrhelpers_p.h.
bool qt_evr_isSampleTimePassed | ( | IMFClock * | clock, |
IMFSample * | sample ) |
Definition at line 57 of file evrhelpers.cpp.
Referenced by Scheduler::scheduleSample().
|
inline |
Definition at line 60 of file evrhelpers_p.h.
References area(), and qt_evr_makeMFOffset().
|
inline |
Definition at line 52 of file evrhelpers_p.h.
Referenced by qt_evr_makeMFArea().
|
inline |
Definition at line 47 of file evrhelpers_p.h.
Referenced by qt_evr_validateVideoArea().
QVideoFrameFormat::PixelFormat qt_evr_pixelFormatFromD3DFormat | ( | DWORD | format | ) |
Definition at line 84 of file evrhelpers.cpp.
References D3DFMT_NV12, D3DFMT_YV12, QVideoFrameFormat::Format_BGRA8888, QVideoFrameFormat::Format_BGRX8888, QVideoFrameFormat::Format_Invalid, QVideoFrameFormat::Format_NV12, QVideoFrameFormat::Format_RGBA8888, QVideoFrameFormat::Format_RGBX8888, QVideoFrameFormat::Format_UYVY, QVideoFrameFormat::Format_Y8, QVideoFrameFormat::Format_YUYV, and QVideoFrameFormat::Format_YV12.
Referenced by D3DPresentEngine::createVideoSamples().
|
inlinestatic |
Definition at line 31 of file evrhelpers_p.h.
HRESULT qt_evr_validateVideoArea | ( | const MFVideoArea & | area, |
UINT32 | width, | ||
UINT32 | height ) |
Definition at line 45 of file evrhelpers.cpp.
References area(), and qt_evr_MFOffsetToFloat().