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>.
Loading...
Searching...
No Matches
evrcustompresenter.cpp File Reference

(cc8492f75c285b58b90c16d8712b19ba181db443)

#include "evrcustompresenter_p.h"
#include "evrd3dpresentengine_p.h"
#include "evrhelpers_p.h"
#include <private/qwindowsmultimediautils_p.h>
#include <private/qplatformvideosink_p.h>
#include <private/qwindowsmfdefs_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
 

Functions

static QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY (qLcEvrCustomPresenter, "qt.multimedia.evrcustompresenter") const static MFRatio g_DefaultFrameRate
 
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 DWORD SCHEDULER_TIMEOUT = 5000
 
static const MFTIME ONE_SECOND = 10000000
 
static const LONG ONE_MSEC = 1000
 

Function Documentation

◆ MFTimeToMsec()

static LONG MFTimeToMsec ( const LONGLONG & time)
inlinestatic

Definition at line 40 of file evrcustompresenter.cpp.

References ONE_MSEC, ONE_SECOND, and time.

◆ pixelFormatFromMediaType()

static QVideoFrameFormat::PixelFormat pixelFormatFromMediaType ( IMFMediaType * type)
static

Definition at line 1834 of file evrcustompresenter.cpp.

References QVideoFrameFormat::Format_Invalid, and QWindowsMultimediaUtils::pixelFormatFromMediaSubtype().

+ Here is the call graph for this function:

◆ Q_LOGGING_CATEGORY()

static QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY ( qLcEvrCustomPresenter ,
"qt.multimedia.evrcustompresenter"  ) const
static

◆ qt_evr_setCustomPresenter()

bool qt_evr_setCustomPresenter ( IUnknown * evr,
EVRCustomPresenter * presenter )

Definition at line 45 of file evrcustompresenter.cpp.

References renderer.

◆ setMixerSourceRect()

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

Definition at line 1818 of file evrcustompresenter.cpp.

Variable Documentation

◆ ONE_MSEC

const LONG ONE_MSEC = 1000
static

Definition at line 34 of file evrcustompresenter.cpp.

Referenced by MFTimeToMsec().

◆ ONE_SECOND

const MFTIME ONE_SECOND = 10000000
static

Definition at line 33 of file evrcustompresenter.cpp.

Referenced by MFTimeToMsec().

◆ SCHEDULER_TIMEOUT

const DWORD SCHEDULER_TIMEOUT = 5000
static

Definition at line 32 of file evrcustompresenter.cpp.

Referenced by Scheduler::flush().