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
ActiveCamera Class Reference
+ Collaboration diagram for ActiveCamera:

Public Member Functions

bool setFormat (const QCameraFormat &format)
 
void onReadSample (HRESULT status, LONGLONG timestamp, IMFSample *sample)
 
void onFlush ()
 
 ~ActiveCamera ()
 

Static Public Member Functions

static std::unique_ptr< ActiveCameracreate (QWindowsCamera &wc, const QCameraDevice &device, const QCameraFormat &format)
 

Detailed Description

Definition at line 146 of file qwindowscamera.cpp.

Constructor & Destructor Documentation

◆ ~ActiveCamera()

ActiveCamera::~ActiveCamera ( )
inline

Definition at line 225 of file qwindowscamera.cpp.

Member Function Documentation

◆ create()

static std::unique_ptr< ActiveCamera > ActiveCamera::create ( QWindowsCamera & wc,
const QCameraDevice & device,
const QCameraFormat & format )
inlinestatic

Definition at line 148 of file qwindowscamera.cpp.

References createCameraReader(), createCameraSource(), and device.

Referenced by QWindowsCamera::setActive().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onFlush()

void ActiveCamera::onFlush ( )
inline

Definition at line 220 of file qwindowscamera.cpp.

References QSemaphore::release().

Referenced by CameraReaderCallback::OnFlush().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onReadSample()

void ActiveCamera::onReadSample ( HRESULT status,
LONGLONG timestamp,
IMFSample * sample )
inline

Definition at line 185 of file qwindowscamera.cpp.

References QCamera::CameraError, emit, QPlatformCamera::error(), frame, QString::fromStdString(), and QPlatformVideoSource::newVideoFrame().

Referenced by CameraReaderCallback::OnReadSample().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setFormat()

bool ActiveCamera::setFormat ( const QCameraFormat & format)
inline

Definition at line 167 of file qwindowscamera.cpp.

References calculateVideoFrameStride(), findVideoType(), QVideoFrameFormat::pixelFormat(), and setCameraReaderFormat().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: