Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
evrcustompresenter.cpp File Reference

(e61928d319b3e0869792f2a678aff174c756f0c9)

#include "evrcustompresenter_p.h"
#include "evrd3dpresentengine_p.h"
#include "evrhelpers_p.h"
#include <private/qwindowsmultimediautils_p.h>
#include <private/qplatformvideosink_p.h>
#include <rhi/qrhi.h>
#include <QtCore/qmutex.h>
#include <QtCore/qvarlengtharray.h>
#include <QtCore/qrect.h>
#include <qthread.h>
#include <qcoreapplication.h>
#include <qmath.h>
#include <qloggingcategory.h>
#include <mutex>
#include <float.h>
#include <evcode.h>
Include dependency graph for evrcustompresenter.cpp:

Go to the source code of this file.

Classes

class  PresentSampleEvent

Macros

#define QMM_PRESENTATION_CURRENT_POSITION   0x7fffffffffffffff

Functions

QT_BEGIN_NAMESPACE Q_STATIC_LOGGING_CATEGORY (qLcEvrCustomPresenter, "qt.multimedia.evrcustompresenter")
static HRESULT setMixerSourceRect (IMFTransform *mixer, const MFVideoNormalizedRect &nrcSource)
static QVideoFrameFormat::PixelFormat pixelFormatFromMediaType (IMFMediaType *type)
static LONG MFTimeToMsec (const LONGLONG &time)
bool qt_evr_setCustomPresenter (IUnknown *evr, EVRCustomPresenter *presenter)

Variables

static const MFRatio g_DefaultFrameRate = { 30, 1 }
static const DWORD SCHEDULER_TIMEOUT = 5000
static const MFTIME ONE_SECOND = 10000000
static const LONG ONE_MSEC = 1000

Macro Definition Documentation

◆ QMM_PRESENTATION_CURRENT_POSITION

#define QMM_PRESENTATION_CURRENT_POSITION   0x7fffffffffffffff

Definition at line 35 of file evrcustompresenter.cpp.

Function Documentation

◆ MFTimeToMsec()

LONG MFTimeToMsec ( const LONGLONG & time)
inlinestatic

Definition at line 41 of file evrcustompresenter.cpp.

◆ pixelFormatFromMediaType()

QVideoFrameFormat::PixelFormat pixelFormatFromMediaType ( IMFMediaType * type)
static

Definition at line 1840 of file evrcustompresenter.cpp.

◆ Q_STATIC_LOGGING_CATEGORY()

QT_BEGIN_NAMESPACE Q_STATIC_LOGGING_CATEGORY ( qLcEvrCustomPresenter ,
"qt.multimedia.evrcustompresenter"  )

◆ qt_evr_setCustomPresenter()

bool qt_evr_setCustomPresenter ( IUnknown * evr,
EVRCustomPresenter * presenter )

Definition at line 46 of file evrcustompresenter.cpp.

◆ setMixerSourceRect()

HRESULT setMixerSourceRect ( IMFTransform * mixer,
const MFVideoNormalizedRect & nrcSource )
static

Definition at line 1824 of file evrcustompresenter.cpp.

Variable Documentation

◆ g_DefaultFrameRate

const MFRatio g_DefaultFrameRate = { 30, 1 }
static

Definition at line 30 of file evrcustompresenter.cpp.

◆ ONE_MSEC

const LONG ONE_MSEC = 1000
static

Definition at line 33 of file evrcustompresenter.cpp.

◆ ONE_SECOND

const MFTIME ONE_SECOND = 10000000
static

Definition at line 32 of file evrcustompresenter.cpp.

◆ SCHEDULER_TIMEOUT

const DWORD SCHEDULER_TIMEOUT = 5000
static

Definition at line 31 of file evrcustompresenter.cpp.