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
QPlatformCamera Class Referenceabstract

#include <qplatformcamera_p.h>

+ Inheritance diagram for QPlatformCamera:
+ Collaboration diagram for QPlatformCamera:

Signals

void error (int error, const QString &errorString)
 
- Signals inherited from QPlatformVideoSource
void newVideoFrame (const QVideoFrame &)
 
void activeChanged (bool)
 
- Signals inherited from QObject
void destroyed (QObject *=nullptr)
 This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked.
 
void objectNameChanged (const QString &objectName, QPrivateSignal)
 This signal is emitted after the object's name has been changed.
 

Public Member Functions

virtual void setCamera (const QCameraDevice &camera)=0
 
virtual bool setCameraFormat (const QCameraFormat &)
 
QCameraFormat cameraFormat () const
 
virtual bool isFocusModeSupported (QCamera::FocusMode mode) const
 
virtual void setFocusMode (QCamera::FocusMode)
 
virtual void setCustomFocusPoint (const QPointF &)
 
virtual void setFocusDistance (float)
 
virtual void zoomTo (float, float=-1.)
 
virtual void setFlashMode (QCamera::FlashMode)
 
virtual bool isFlashModeSupported (QCamera::FlashMode mode) const
 
virtual bool isFlashReady () const
 
virtual void setTorchMode (QCamera::TorchMode)
 
virtual bool isTorchModeSupported (QCamera::TorchMode mode) const
 
virtual void setExposureMode (QCamera::ExposureMode)
 
virtual bool isExposureModeSupported (QCamera::ExposureMode mode) const
 
virtual void setExposureCompensation (float)
 
virtual int isoSensitivity () const
 
virtual void setManualIsoSensitivity (int)
 
virtual void setManualExposureTime (float)
 
virtual float exposureTime () const
 
virtual bool isWhiteBalanceModeSupported (QCamera::WhiteBalanceMode mode) const
 
virtual void setWhiteBalanceMode (QCamera::WhiteBalanceMode)
 
virtual void setColorTemperature (int)
 
QVideoFrameFormat frameFormat () const override
 
QCamera::Features supportedFeatures () const
 
QCamera::FocusMode focusMode () const
 
QPointF focusPoint () const
 
float minZoomFactor () const
 
float maxZoomFactor () const
 
float zoomFactor () const
 
QPointF customFocusPoint () const
 
float focusDistance () const
 
QCamera::FlashMode flashMode () const
 
QCamera::TorchMode torchMode () const
 
QCamera::ExposureMode exposureMode () const
 
float exposureCompensation () const
 
int manualIsoSensitivity () const
 
int minIso () const
 
int maxIso () const
 
float manualExposureTime () const
 
float minExposureTime () const
 
float maxExposureTime () const
 
QCamera::WhiteBalanceMode whiteBalanceMode () const
 
int colorTemperature () const
 
void supportedFeaturesChanged (QCamera::Features)
 
void minimumZoomFactorChanged (float factor)
 
void maximumZoomFactorChanged (float)
 
void focusModeChanged (QCamera::FocusMode mode)
 
void customFocusPointChanged (const QPointF &point)
 
void focusDistanceChanged (float d)
 
void zoomFactorChanged (float zoom)
 
void flashReadyChanged (bool)
 
void flashModeChanged (QCamera::FlashMode mode)
 
void torchModeChanged (QCamera::TorchMode mode)
 
void exposureModeChanged (QCamera::ExposureMode mode)
 
void exposureCompensationChanged (float compensation)
 
void exposureCompensationRangeChanged (float min, float max)
 
void isoSensitivityChanged (int iso)
 
void minIsoChanged (int iso)
 
void maxIsoChanged (int iso)
 
void exposureTimeChanged (float speed)
 
void minExposureTimeChanged (float secs)
 
void maxExposureTimeChanged (float secs)
 
void whiteBalanceModeChanged (QCamera::WhiteBalanceMode mode)
 
void colorTemperatureChanged (int temperature)
 
- Public Member Functions inherited from QPlatformVideoSource
virtual void setActive (bool active)=0
 
virtual bool isActive () const =0
 
virtual std::optional< int > ffmpegHWPixelFormat () const
 
virtual void setCaptureSession (QPlatformMediaCaptureSession *)
 
Q_INVOKABLE QObject (QObject *parent=nullptr)
 Constructs an object with parent object parent.
 
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 Constructs an object with parent object parent.
 
virtual ~QObject ()
 Destroys the object, deleting all its child objects.
 
virtual bool event (QEvent *event)
 This virtual function receives events to an object and should return true if the event e was recognized and processed.
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 Filters events if this object has been installed as an event filter for the watched object.
 
QString objectName () const
 
Q_WEAK_OVERLOAD void setObjectName (const QString &name)
 Sets the object's name to name.
 
void setObjectName (QAnyStringView name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QBindable< QStringbindableObjectName ()
 
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false.
 
bool isWindowType () const
 Returns true if the object is a window; otherwise returns false.
 
bool isQuickItemType () const
 Returns true if the object is a QQuickItem; otherwise returns false.
 
bool signalsBlocked () const noexcept
 Returns true if signals are blocked; otherwise returns false.
 
bool blockSignals (bool b) noexcept
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it).
 
QThreadthread () const
 Returns the thread in which the object lives.
 
bool moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL)
 Changes the thread affinity for this object and its children and returns true on success.
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds.
 
int startTimer (std::chrono::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer)
 
void killTimer (int id)
 Kills the timer with timer identifier, id.
 
void killTimer (Qt::TimerId id)
 
template<typename T >
findChild (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object.
 
template<typename T >
QList< T > findChildren (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects.
 
template<typename T >
findChild (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename T >
QList< T > findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
const QObjectListchildren () const
 Returns a list of child objects.
 
void setParent (QObject *parent)
 Makes the object a child of parent.
 
void installEventFilter (QObject *filterObj)
 Installs an event filter filterObj on this object.
 
void removeEventFilter (QObject *obj)
 Removes an event filter object obj from this object.
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
 
bool disconnect (const QObject *receiver, const char *member=nullptr) const
 
void dumpObjectTree () const
 Dumps a tree of children to the debug output.
 
void dumpObjectInfo () const
 Dumps information about signal connections, etc.
 
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value.
 
bool setProperty (const char *name, QVariant &&value)
 
QVariant property (const char *name) const
 Returns the value of the object's name property.
 
QList< QByteArraydynamicPropertyNames () const
 
QBindingStoragebindingStorage ()
 
const QBindingStoragebindingStorage () const
 
QObjectparent () const
 Returns a pointer to the parent object.
 
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false.
 

Static Public Member Functions

static int colorTemperatureForWhiteBalance (QCamera::WhiteBalanceMode mode)
 
- Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 \threadsafe
 
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 \threadsafe
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static bool disconnect (const QMetaObject::Connection &)
 Disconnect a connection.
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
 
template<typename Func1 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
 

Protected Member Functions

 QPlatformCamera (QCamera *parent)
 
virtual int cameraPixelFormatScore (QVideoFrameFormat::PixelFormat, QVideoFrameFormat::ColorRange) const
 
QCameraFormat findBestCameraFormat (const QCameraDevice &camera) const
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr.
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal.
 
bool isSignalConnected (const QMetaMethod &signal) const
 
virtual void timerEvent (QTimerEvent *event)
 This event handler can be reimplemented in a subclass to receive timer events for the object.
 
virtual void childEvent (QChildEvent *event)
 This event handler can be reimplemented in a subclass to receive child events.
 
virtual void customEvent (QEvent *event)
 This event handler can be reimplemented in a subclass to receive custom events.
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)
 

Protected Attributes

QCameraFormat m_cameraFormat
 
QVideoFrameFormat::PixelFormat m_framePixelFormat = QVideoFrameFormat::Format_Invalid
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 \threadsafe
 
- Properties inherited from QObject
QString objectName
 the name of this object
 

Detailed Description

Definition at line 24 of file qplatformcamera_p.h.

Constructor & Destructor Documentation

◆ QPlatformCamera()

QT_BEGIN_NAMESPACE QPlatformCamera::QPlatformCamera ( QCamera * parent)
explicitprotected

Definition at line 9 of file qplatformcamera.cpp.

Member Function Documentation

◆ cameraFormat()

QCameraFormat QPlatformCamera::cameraFormat ( ) const
inline

Definition at line 31 of file qplatformcamera_p.h.

◆ cameraPixelFormatScore()

virtual int QPlatformCamera::cameraPixelFormatScore ( QVideoFrameFormat::PixelFormat ,
QVideoFrameFormat::ColorRange  ) const
inlineprotectedvirtual

Reimplemented in QAVFCamera.

Definition at line 119 of file qplatformcamera_p.h.

Referenced by findBestCameraFormat().

+ Here is the caller graph for this function:

◆ colorTemperature()

int QPlatformCamera::colorTemperature ( ) const
inline

Definition at line 87 of file qplatformcamera_p.h.

◆ colorTemperatureChanged()

void QPlatformCamera::colorTemperatureChanged ( int temperature)

Definition at line 189 of file qplatformcamera.cpp.

References QCamera::colorTemperatureChanged(), emit, Q_ASSERT, QCamera::WhiteBalanceAuto, QCamera::WhiteBalanceManual, and whiteBalanceMode().

Referenced by QGstreamerCamera::setColorTemperature(), QWasmCamera::setColorTemperature(), and QV4L2Camera::setColorTemperature().

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

◆ colorTemperatureForWhiteBalance()

int QPlatformCamera::colorTemperatureForWhiteBalance ( QCamera::WhiteBalanceMode mode)
static

◆ customFocusPoint()

QPointF QPlatformCamera::customFocusPoint ( ) const
inline

Definition at line 72 of file qplatformcamera_p.h.

Referenced by QAVFCameraBase::setCustomFocusPoint(), and QAVFCameraBase::updateCameraConfiguration().

+ Here is the caller graph for this function:

◆ customFocusPointChanged()

void QPlatformCamera::customFocusPointChanged ( const QPointF & point)

Definition at line 89 of file qplatformcamera.cpp.

References QCamera::customFocusPointChanged(), and emit.

Referenced by QQnxPlatformCamera::setCamera(), and QAVFCameraBase::setCustomFocusPoint().

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

◆ error

void QPlatformCamera::error ( int error,
const QString & errorString )
signal

Referenced by ActiveCamera::onReadSample(), and QAndroidCamera::setCaptureSession().

+ Here is the caller graph for this function:

◆ exposureCompensation()

float QPlatformCamera::exposureCompensation ( ) const
inline

Definition at line 79 of file qplatformcamera_p.h.

Referenced by QAndroidCamera::setExposureCompensation(), and QAVFCameraBase::updateCameraConfiguration().

+ Here is the caller graph for this function:

◆ exposureCompensationChanged()

void QPlatformCamera::exposureCompensationChanged ( float compensation)

Definition at line 148 of file qplatformcamera.cpp.

References emit, and QCamera::exposureCompensationChanged().

Referenced by QAndroidCamera::setExposureCompensation(), QAVFCameraBase::setExposureCompensation(), QWasmCamera::setExposureCompensation(), QV4L2Camera::setExposureCompensation(), and QGstreamerCamera::setExposureCompensation().

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

◆ exposureCompensationRangeChanged()

void QPlatformCamera::exposureCompensationRangeChanged ( float min,
float max )

Definition at line 156 of file qplatformcamera.cpp.

◆ exposureMode()

QCamera::ExposureMode QPlatformCamera::exposureMode ( ) const
inline

Definition at line 78 of file qplatformcamera_p.h.

Referenced by QWasmCamera::isExposureModeSupported(), QWasmCamera::isTorchModeSupported(), QAndroidCamera::setExposureMode(), and QAVFCameraBase::updateCameraConfiguration().

+ Here is the caller graph for this function:

◆ exposureModeChanged()

void QPlatformCamera::exposureModeChanged ( QCamera::ExposureMode mode)

Definition at line 140 of file qplatformcamera.cpp.

References emit, and QCamera::exposureModeChanged().

Referenced by QAndroidCamera::setExposureMode(), QWasmCamera::setExposureMode(), QAVFCameraBase::setExposureMode(), QV4L2Camera::setExposureMode(), and QGstreamerCamera::setExposureMode().

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

◆ exposureTime()

virtual float QPlatformCamera::exposureTime ( ) const
inlinevirtual

Reimplemented in QAVFCameraBase, QV4L2Camera, QGstreamerCamera, and QQnxPlatformCamera.

Definition at line 56 of file qplatformcamera_p.h.

Referenced by QWasmCamera::setManualExposureTime().

+ Here is the caller graph for this function:

◆ exposureTimeChanged()

void QPlatformCamera::exposureTimeChanged ( float speed)

Definition at line 173 of file qplatformcamera.cpp.

References emit, and QCamera::exposureTimeChanged().

Referenced by QAVFCameraBase::setManualExposureTime(), QV4L2Camera::setManualExposureTime(), QGstreamerCamera::setManualExposureTime(), and QWasmCamera::setManualExposureTime().

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

◆ findBestCameraFormat()

QCameraFormat QPlatformCamera::findBestCameraFormat ( const QCameraDevice & camera) const
protected

Definition at line 14 of file qplatformcamera.cpp.

References camera, cameraPixelFormatScore(), fmt, QVideoFrameFormat::Format_Invalid, QCameraFormatPrivate::getColorRange(), and QCameraFormat::pixelFormat.

Referenced by QV4L2Camera::resolveCameraFormat(), QWindowsCamera::setActive(), QGstreamerCamera::setCamera(), AVFCamera::setCameraFormat(), QAVFCameraBase::setCameraFormat(), and QGstreamerCamera::setCameraFormat().

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

◆ flashMode()

QCamera::FlashMode QPlatformCamera::flashMode ( ) const
inline

Definition at line 75 of file qplatformcamera_p.h.

Referenced by QAVFCameraBase::applyFlashSettings(), QAVFCameraBase::isFlashReady(), QAndroidCamera::setFlashMode(), QAVFCameraBase::setFlashMode(), QGstreamerCamera::setFlashMode(), and QAndroidCamera::setTorchMode().

+ Here is the caller graph for this function:

◆ flashModeChanged()

void QPlatformCamera::flashModeChanged ( QCamera::FlashMode mode)

Definition at line 124 of file qplatformcamera.cpp.

References emit, and QCamera::flashModeChanged().

Referenced by QAndroidCamera::setFlashMode(), QAVFCameraBase::setFlashMode(), QGstreamerCamera::setFlashMode(), and QV4L2Camera::setFlashMode().

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

◆ flashReadyChanged()

void QPlatformCamera::flashReadyChanged ( bool ready)

Definition at line 116 of file qplatformcamera.cpp.

References emit, and QCamera::flashReady.

Referenced by QAVFCameraBase::updateCameraConfiguration().

+ Here is the caller graph for this function:

◆ focusDistance()

float QPlatformCamera::focusDistance ( ) const
inline

Definition at line 73 of file qplatformcamera_p.h.

Referenced by QV4L2Camera::setFocusMode().

+ Here is the caller graph for this function:

◆ focusDistanceChanged()

void QPlatformCamera::focusDistanceChanged ( float d)

Definition at line 107 of file qplatformcamera.cpp.

References d, emit, and QCamera::focusDistanceChanged().

Referenced by QAVFCameraBase::setFocusDistance(), and QV4L2Camera::setFocusDistance().

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

◆ focusMode()

QCamera::FocusMode QPlatformCamera::focusMode ( ) const
inline

Definition at line 66 of file qplatformcamera_p.h.

Referenced by QWasmCamera::isFocusModeSupported(), QAVFCameraBase::setCustomFocusPoint(), QAndroidCamera::setFocusMode(), QAVFCameraBase::setFocusMode(), QGstreamerCamera::setFocusMode(), QV4L2Camera::setFocusMode(), and QAVFCameraBase::updateCameraConfiguration().

+ Here is the caller graph for this function:

◆ focusModeChanged()

void QPlatformCamera::focusModeChanged ( QCamera::FocusMode mode)

Definition at line 81 of file qplatformcamera.cpp.

References emit, and QCamera::focusModeChanged().

Referenced by QAndroidCamera::setFocusMode(), QAVFCameraBase::setFocusMode(), QGstreamerCamera::setFocusMode(), QWasmCamera::setFocusMode(), and QV4L2Camera::setFocusMode().

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

◆ focusPoint()

QPointF QPlatformCamera::focusPoint ( ) const
inline

Definition at line 67 of file qplatformcamera_p.h.

◆ frameFormat()

QVideoFrameFormat QPlatformCamera::frameFormat ( ) const
overridevirtual

Implements QPlatformVideoSource.

Reimplemented in QV4L2Camera.

Definition at line 47 of file qplatformcamera.cpp.

References QVideoFrameFormat::Format_Invalid, m_cameraFormat, m_framePixelFormat, QCameraFormat::maxFrameRate, QCameraFormat::pixelFormat, QCameraFormat::resolution, and QVideoFrameFormat::setFrameRate().

Referenced by QV4L2Camera::frameFormat().

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

◆ isExposureModeSupported()

virtual bool QPlatformCamera::isExposureModeSupported ( QCamera::ExposureMode mode) const
inlinevirtual

Reimplemented in QAndroidCamera, QAVFCameraBase, QV4L2Camera, QGstreamerCamera, and QWasmCamera.

Definition at line 51 of file qplatformcamera_p.h.

References QCamera::ExposureAuto.

◆ isFlashModeSupported()

virtual bool QPlatformCamera::isFlashModeSupported ( QCamera::FlashMode mode) const
inlinevirtual

Reimplemented in QAndroidCamera, QAVFCameraBase, QAndroidCamera, QV4L2Camera, and QGstreamerCamera.

Definition at line 44 of file qplatformcamera_p.h.

References QCamera::FlashOff.

◆ isFlashReady()

virtual bool QPlatformCamera::isFlashReady ( ) const
inlinevirtual

Reimplemented in QAndroidCamera, QAVFCameraBase, QAndroidCamera, QV4L2Camera, and QGstreamerCamera.

Definition at line 45 of file qplatformcamera_p.h.

◆ isFocusModeSupported()

virtual bool QPlatformCamera::isFocusModeSupported ( QCamera::FocusMode mode) const
inlinevirtual

◆ isoSensitivity()

virtual int QPlatformCamera::isoSensitivity ( ) const
inlinevirtual

Reimplemented in QAVFCameraBase, QV4L2Camera, QGstreamerCamera, QQnxPlatformCamera, and QWasmCamera.

Definition at line 53 of file qplatformcamera_p.h.

◆ isoSensitivityChanged()

void QPlatformCamera::isoSensitivityChanged ( int iso)

Definition at line 165 of file qplatformcamera.cpp.

References emit, and QCamera::isoSensitivityChanged().

Referenced by QAVFCameraBase::setManualIsoSensitivity(), QGstreamerCamera::setManualIsoSensitivity(), and QWasmCamera::setManualIsoSensitivity().

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

◆ isTorchModeSupported()

virtual bool QPlatformCamera::isTorchModeSupported ( QCamera::TorchMode mode) const
inlinevirtual

Reimplemented in QAndroidCamera, QAVFCameraBase, QAndroidCamera, QV4L2Camera, and QWasmCamera.

Definition at line 48 of file qplatformcamera_p.h.

References QCamera::TorchOff.

◆ isWhiteBalanceModeSupported()

virtual bool QPlatformCamera::isWhiteBalanceModeSupported ( QCamera::WhiteBalanceMode mode) const
inlinevirtual

◆ manualExposureTime()

float QPlatformCamera::manualExposureTime ( ) const
inline

Definition at line 83 of file qplatformcamera_p.h.

Referenced by QAVFCameraBase::updateCameraConfiguration().

+ Here is the caller graph for this function:

◆ manualIsoSensitivity()

int QPlatformCamera::manualIsoSensitivity ( ) const
inline

Definition at line 80 of file qplatformcamera_p.h.

Referenced by QAVFCameraBase::isoSensitivity(), and QAVFCameraBase::updateCameraConfiguration().

+ Here is the caller graph for this function:

◆ maxExposureTime()

float QPlatformCamera::maxExposureTime ( ) const
inline

Definition at line 85 of file qplatformcamera_p.h.

◆ maxExposureTimeChanged()

void QPlatformCamera::maxExposureTimeChanged ( float secs)
inline

Definition at line 107 of file qplatformcamera_p.h.

◆ maximumZoomFactorChanged()

void QPlatformCamera::maximumZoomFactorChanged ( float factor)

Definition at line 73 of file qplatformcamera.cpp.

References emit, and QCamera::maximumZoomFactorChanged().

Referenced by QAVFCameraBase::updateCameraConfiguration().

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

◆ maxIso()

int QPlatformCamera::maxIso ( ) const
inline

Definition at line 82 of file qplatformcamera_p.h.

Referenced by QV4L2Camera::setManualIsoSensitivity(), and QGstreamerCamera::setManualIsoSensitivity().

+ Here is the caller graph for this function:

◆ maxIsoChanged()

void QPlatformCamera::maxIsoChanged ( int iso)
inline

Definition at line 104 of file qplatformcamera_p.h.

◆ maxZoomFactor()

float QPlatformCamera::maxZoomFactor ( ) const
inline

Definition at line 70 of file qplatformcamera_p.h.

Referenced by QAndroidCamera::zoomTo(), and QQnxPlatformCamera::zoomTo().

+ Here is the caller graph for this function:

◆ minExposureTime()

float QPlatformCamera::minExposureTime ( ) const
inline

Definition at line 84 of file qplatformcamera_p.h.

◆ minExposureTimeChanged()

void QPlatformCamera::minExposureTimeChanged ( float secs)
inline

Definition at line 106 of file qplatformcamera_p.h.

◆ minimumZoomFactorChanged()

void QPlatformCamera::minimumZoomFactorChanged ( float factor)

Definition at line 65 of file qplatformcamera.cpp.

References emit, and QCamera::minimumZoomFactorChanged().

Referenced by QAVFCameraBase::updateCameraConfiguration().

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

◆ minIso()

int QPlatformCamera::minIso ( ) const
inline

Definition at line 81 of file qplatformcamera_p.h.

Referenced by QV4L2Camera::setManualIsoSensitivity(), and QGstreamerCamera::setManualIsoSensitivity().

+ Here is the caller graph for this function:

◆ minIsoChanged()

void QPlatformCamera::minIsoChanged ( int iso)
inline

Definition at line 103 of file qplatformcamera_p.h.

◆ minZoomFactor()

float QPlatformCamera::minZoomFactor ( ) const
inline

Definition at line 69 of file qplatformcamera_p.h.

Referenced by QQnxPlatformCamera::zoomTo().

+ Here is the caller graph for this function:

◆ setCamera()

virtual void QPlatformCamera::setCamera ( const QCameraDevice & camera)
pure virtual

Implemented in QAndroidCamera, AVFCamera, QAVFCameraBase, QAndroidCamera, QAVFCamera, QV4L2Camera, QWindowsCamera, QGstreamerCamera, QQnxPlatformCamera, QWasmCamera, and QWindowsCamera.

Referenced by QCameraPrivate::init().

+ Here is the caller graph for this function:

◆ setCameraFormat()

virtual bool QPlatformCamera::setCameraFormat ( const QCameraFormat & )
inlinevirtual

◆ setColorTemperature()

virtual void QPlatformCamera::setColorTemperature ( int )
inlinevirtual

Reimplemented in QGstreamerCamera, QQnxPlatformCamera, QWasmCamera, and QV4L2Camera.

Definition at line 60 of file qplatformcamera_p.h.

◆ setCustomFocusPoint()

virtual void QPlatformCamera::setCustomFocusPoint ( const QPointF & )
inlinevirtual

Reimplemented in QAVFCameraBase, and QQnxPlatformCamera.

Definition at line 36 of file qplatformcamera_p.h.

◆ setExposureCompensation()

virtual void QPlatformCamera::setExposureCompensation ( float )
inlinevirtual

◆ setExposureMode()

virtual void QPlatformCamera::setExposureMode ( QCamera::ExposureMode )
inlinevirtual

Reimplemented in QAndroidCamera, QWasmCamera, QAVFCameraBase, QV4L2Camera, and QGstreamerCamera.

Definition at line 50 of file qplatformcamera_p.h.

◆ setFlashMode()

virtual void QPlatformCamera::setFlashMode ( QCamera::FlashMode )
inlinevirtual

Reimplemented in QAndroidCamera, QAVFCameraBase, QAndroidCamera, QGstreamerCamera, and QV4L2Camera.

Definition at line 43 of file qplatformcamera_p.h.

◆ setFocusDistance()

virtual void QPlatformCamera::setFocusDistance ( float )
inlinevirtual

Reimplemented in QAVFCameraBase, QQnxPlatformCamera, and QV4L2Camera.

Definition at line 38 of file qplatformcamera_p.h.

◆ setFocusMode()

virtual void QPlatformCamera::setFocusMode ( QCamera::FocusMode )
inlinevirtual

◆ setManualExposureTime()

virtual void QPlatformCamera::setManualExposureTime ( float )
inlinevirtual

Reimplemented in QQnxPlatformCamera, QAVFCameraBase, QV4L2Camera, QGstreamerCamera, and QWasmCamera.

Definition at line 55 of file qplatformcamera_p.h.

◆ setManualIsoSensitivity()

virtual void QPlatformCamera::setManualIsoSensitivity ( int )
inlinevirtual

Reimplemented in QAVFCameraBase, QQnxPlatformCamera, QV4L2Camera, QGstreamerCamera, and QWasmCamera.

Definition at line 54 of file qplatformcamera_p.h.

◆ setTorchMode()

virtual void QPlatformCamera::setTorchMode ( QCamera::TorchMode )
inlinevirtual

Reimplemented in QAndroidCamera, QAVFCameraBase, QAndroidCamera, QWasmCamera, and QV4L2Camera.

Definition at line 47 of file qplatformcamera_p.h.

◆ setWhiteBalanceMode()

virtual void QPlatformCamera::setWhiteBalanceMode ( QCamera::WhiteBalanceMode )
inlinevirtual

Reimplemented in QAndroidCamera, QGstreamerCamera, QQnxPlatformCamera, QWasmCamera, and QV4L2Camera.

Definition at line 59 of file qplatformcamera_p.h.

◆ supportedFeatures()

QCamera::Features QPlatformCamera::supportedFeatures ( ) const
inline

Definition at line 64 of file qplatformcamera_p.h.

Referenced by QV4L2Camera::isFocusModeSupported(), QV4L2Camera::isoSensitivity(), QGstreamerCamera::isoSensitivity(), QV4L2Camera::setFocusMode(), QV4L2Camera::setManualIsoSensitivity(), and QGstreamerCamera::setManualIsoSensitivity().

+ Here is the caller graph for this function:

◆ supportedFeaturesChanged()

void QPlatformCamera::supportedFeaturesChanged ( QCamera::Features f)

Definition at line 57 of file qplatformcamera.cpp.

References emit, and QCamera::supportedFeaturesChanged().

Referenced by QAVFCameraBase::updateCameraProperties().

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

◆ torchMode()

QCamera::TorchMode QPlatformCamera::torchMode ( ) const
inline

Definition at line 76 of file qplatformcamera_p.h.

Referenced by QAVFCameraBase::applyFlashSettings(), and QAVFCameraBase::setTorchMode().

+ Here is the caller graph for this function:

◆ torchModeChanged()

void QPlatformCamera::torchModeChanged ( QCamera::TorchMode mode)

Definition at line 132 of file qplatformcamera.cpp.

References emit, and QCamera::torchModeChanged().

Referenced by QAndroidCamera::setTorchMode(), QAVFCameraBase::setTorchMode(), QWasmCamera::setTorchMode(), and QV4L2Camera::setTorchMode().

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

◆ whiteBalanceMode()

QCamera::WhiteBalanceMode QPlatformCamera::whiteBalanceMode ( ) const
inline

Definition at line 86 of file qplatformcamera_p.h.

Referenced by colorTemperatureChanged(), QWasmCamera::isWhiteBalanceModeSupported(), and QWasmCamera::setColorTemperature().

+ Here is the caller graph for this function:

◆ whiteBalanceModeChanged()

void QPlatformCamera::whiteBalanceModeChanged ( QCamera::WhiteBalanceMode mode)

Definition at line 181 of file qplatformcamera.cpp.

References emit, and QCamera::whiteBalanceModeChanged().

Referenced by QAndroidCamera::setWhiteBalanceMode(), QGstreamerCamera::setWhiteBalanceMode(), QWasmCamera::setWhiteBalanceMode(), and QV4L2Camera::setWhiteBalanceMode().

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

◆ zoomFactor()

float QPlatformCamera::zoomFactor ( ) const
inline

Definition at line 71 of file qplatformcamera_p.h.

Referenced by QAVFCameraBase::updateCameraConfiguration(), QAndroidCamera::zoomTo(), and QAVFCameraBase::zoomTo().

+ Here is the caller graph for this function:

◆ zoomFactorChanged()

void QPlatformCamera::zoomFactorChanged ( float zoom)

Definition at line 98 of file qplatformcamera.cpp.

References emit, and QCamera::zoomFactorChanged().

Referenced by QAndroidCamera::zoomTo(), QQnxPlatformCamera::zoomTo(), and QV4L2Camera::zoomTo().

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

◆ zoomTo()

virtual void QPlatformCamera::zoomTo ( float ,
float = -1. )
inlinevirtual

Reimplemented in QAndroidCamera, QAVFCameraBase, QAndroidCamera, QQnxPlatformCamera, and QV4L2Camera.

Definition at line 41 of file qplatformcamera_p.h.

Member Data Documentation

◆ m_cameraFormat

◆ m_framePixelFormat

QVideoFrameFormat::PixelFormat QPlatformCamera::m_framePixelFormat = QVideoFrameFormat::Format_Invalid
protected

Definition at line 127 of file qplatformcamera_p.h.

Referenced by frameFormat().


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