Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qqnxvideodevices.cpp File Reference
#include "qqnxvideodevices_p.h"
#include "qqnxcamera_p.h"
#include "private/qcameradevice_p.h"
#include "qcameradevice.h"
#include <qdir.h>
#include <qdebug.h>
#include <optional>
+ Include dependency graph for qqnxvideodevices.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE QVideoFrameFormat::PixelFormat fromCameraFrametype (camera_frametype_t type)
 
static std::optional< QCameraDevicecreateCameraDevice (camera_unit_t unit, bool isDefault)
 

Function Documentation

◆ createCameraDevice()

static std::optional< QCameraDevice > createCameraDevice ( camera_unit_t  unit,
bool  isDefault 
)
static

Definition at line 39 of file qqnxvideodevices.cpp.

References camera, QVideoFrameFormat::Format_Invalid, fromCameraFrametype(), QCameraDevicePrivate::id, QByteArray::number(), qWarning, and QCameraFormatPrivate::resolution.

Referenced by QQnxVideoDevices::videoDevices().

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

◆ fromCameraFrametype()

static QT_BEGIN_NAMESPACE QVideoFrameFormat::PixelFormat fromCameraFrametype ( camera_frametype_t  type)
static

Definition at line 16 of file qqnxvideodevices.cpp.

References QVideoFrameFormat::Format_ARGB8888, QVideoFrameFormat::Format_Invalid, QVideoFrameFormat::Format_Jpeg, QVideoFrameFormat::Format_NV12, QVideoFrameFormat::Format_UYVY, QVideoFrameFormat::Format_Y8, QVideoFrameFormat::Format_YUV420P, and QVideoFrameFormat::Format_YUYV.

Referenced by createCameraDevice().

+ Here is the caller graph for this function: