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
QtMultimediaTest Namespace Reference

Classes

struct  VideoFrameInfo
class  FrameGrabber
 The FrameGrabber stores frames that arrive from a surface capture, and is used to inspect captured frames in the tests. More...
class  QIntegrationTestBase
class  MockSourceResolver

Functions

std::chrono::milliseconds surfaceCaptureTestTimeout ()
static std::optional< std::chrono::milliseconds > maxFrameInterval (std::optional< qreal > frameRate)
static qint64 startTimeOf (const QVideoFrame &frame)
static qint64 startTimeOf (const VideoFrameInfo &info)
static VideoFrameInfo makeVideoFrameInfo (const QVideoFrame &frame)
QByteArray makeBytes (std::initializer_list< uchar > bytes)
void fillPlaneRows (uchar *data, qsizetype stride, int width, int height, QByteArrayView texel)
q23::expected< void, QString > comparePlaneRows (const uchar *data, qsizetype stride, int width, int height, QByteArrayView texel)
std::unique_ptr< QRhi > createNullRhi ()
q23::expected< QByteArray, QString > readBackPlane (QRhi &rhi, quint64 handle, QSize planeSize, QRhiTexture::Format format)
std::unique_ptr< QScreenCapture > makeScreenCapture ()
std::unique_ptr< QWindowCapture > makeWindowCapture ()

Function Documentation

◆ comparePlaneRows()

q23::expected< void, QString > QtMultimediaTest::comparePlaneRows ( const uchar * data,
qsizetype stride,
int width,
int height,
QByteArrayView texel )

Definition at line 26 of file qvideoframetestutils.cpp.

◆ createNullRhi()

std::unique_ptr< QRhi > QtMultimediaTest::createNullRhi ( )

Definition at line 17 of file rhi_support.cpp.

◆ fillPlaneRows()

void QtMultimediaTest::fillPlaneRows ( uchar * data,
qsizetype stride,
int width,
int height,
QByteArrayView texel )

Definition at line 17 of file qvideoframetestutils.cpp.

◆ makeBytes()

QByteArray QtMultimediaTest::makeBytes ( std::initializer_list< uchar > bytes)

Definition at line 12 of file qvideoframetestutils.cpp.

◆ makeScreenCapture()

QT_BEGIN_NAMESPACE std::unique_ptr< QScreenCapture > QtMultimediaTest::makeScreenCapture ( )
nodiscard

Definition at line 13 of file surfacecapturetestutils.cpp.

◆ makeVideoFrameInfo()

VideoFrameInfo QtMultimediaTest::makeVideoFrameInfo ( const QVideoFrame & frame)
static

Definition at line 56 of file framegrabber.cpp.

◆ makeWindowCapture()

std::unique_ptr< QWindowCapture > QtMultimediaTest::makeWindowCapture ( )
nodiscard

Definition at line 21 of file surfacecapturetestutils.cpp.

◆ maxFrameInterval()

std::optional< std::chrono::milliseconds > QtMultimediaTest::maxFrameInterval ( std::optional< qreal > frameRate)
staticnodiscard

Definition at line 36 of file framegrabber.cpp.

References BackendUtilsImpl::isCI().

Here is the call graph for this function:

◆ readBackPlane()

q23::expected< QByteArray, QString > QtMultimediaTest::readBackPlane ( QRhi & rhi,
quint64 handle,
QSize planeSize,
QRhiTexture::Format format )

Definition at line 86 of file rhi_support.cpp.

◆ startTimeOf() [1/2]

qint64 QtMultimediaTest::startTimeOf ( const QVideoFrame & frame)
static

Definition at line 46 of file framegrabber.cpp.

◆ startTimeOf() [2/2]

qint64 QtMultimediaTest::startTimeOf ( const VideoFrameInfo & info)
static

Definition at line 51 of file framegrabber.cpp.

◆ surfaceCaptureTestTimeout()

std::chrono::milliseconds QtMultimediaTest::surfaceCaptureTestTimeout ( )
nodiscard

Definition at line 22 of file framegrabber.cpp.