Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
ActiveCamera Class Reference
+ Collaboration diagram for ActiveCamera:

Public Member Functions

 ActiveCamera ()=delete
 
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 177 of file qwindowscamera.cpp.

Constructor & Destructor Documentation

◆ ActiveCamera()

ActiveCamera::ActiveCamera ( )
delete

Referenced by create().

+ Here is the caller graph for this function:

◆ ~ActiveCamera()

ActiveCamera::~ActiveCamera ( )
inline

Definition at line 258 of file qwindowscamera.cpp.

References QSemaphore::acquire().

+ Here is the call graph for this function:

Member Function Documentation

◆ create()

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

Definition at line 181 of file qwindowscamera.cpp.

References ActiveCamera(), 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 253 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 219 of file qwindowscamera.cpp.

References emit, QPlatformCamera::error(), frame, 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 200 of file qwindowscamera.cpp.

References QSemaphore::acquire(), 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: