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
AndroidCamera Class Reference

#include <androidcamera_p.h>

+ Inheritance diagram for AndroidCamera:
+ Collaboration diagram for AndroidCamera:

Classes

struct  FpsRange
 

Public Types

enum  CameraFacing { CameraFacingBack = 0 , CameraFacingFront = 1 }
 
enum  ImageFormat {
  UnknownImageFormat = 0 , RGB565 = 4 , NV16 = 16 , NV21 = 17 ,
  YUY2 = 20 , JPEG = 256 , YV12 = 842094169
}
 

Signals

void previewSizeChanged ()
 
void previewStarted ()
 
void previewFailedToStart ()
 
void previewStopped ()
 
void autoFocusStarted ()
 
void autoFocusComplete (bool success)
 
void whiteBalanceChanged ()
 
void takePictureFailed ()
 
void pictureExposed ()
 
void pictureCaptured (const QByteArray &frame, QVideoFrameFormat::PixelFormat format, QSize size, int bytesPerLine)
 
void lastPreviewFrameFetched (const QVideoFrame &frame)
 
void newPreviewFrame (const QVideoFrame &frame)
 
- 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

 ~AndroidCamera ()
 
int cameraId () const
 
bool lock ()
 
bool unlock ()
 
bool reconnect ()
 
void release ()
 
CameraFacing getFacing ()
 
int getNativeOrientation ()
 
QSize getPreferredPreviewSizeForVideo ()
 
QList< QSizegetSupportedPreviewSizes ()
 
QList< FpsRangegetSupportedPreviewFpsRange ()
 
FpsRange getPreviewFpsRange ()
 
void setPreviewFpsRange (FpsRange)
 
ImageFormat getPreviewFormat ()
 
void setPreviewFormat (ImageFormat fmt)
 
QList< ImageFormatgetSupportedPreviewFormats ()
 
QSize previewSize () const
 
QSize actualPreviewSize ()
 
void setPreviewSize (const QSize &size)
 
bool setPreviewTexture (AndroidSurfaceTexture *surfaceTexture)
 
bool setPreviewDisplay (AndroidSurfaceHolder *surfaceHolder)
 
void setDisplayOrientation (int degrees)
 
bool isZoomSupported ()
 
int getMaxZoom ()
 
QList< int > getZoomRatios ()
 
int getZoom ()
 
void setZoom (int value)
 
QStringList getSupportedFlashModes ()
 
QString getFlashMode ()
 
void setFlashMode (const QString &value)
 
QStringList getSupportedFocusModes ()
 
QString getFocusMode ()
 
void setFocusMode (const QString &value)
 
int getMaxNumFocusAreas ()
 
QList< QRectgetFocusAreas ()
 
void setFocusAreas (const QList< QRect > &areas)
 
void autoFocus ()
 
void cancelAutoFocus ()
 
bool isAutoExposureLockSupported ()
 
bool getAutoExposureLock ()
 
void setAutoExposureLock (bool toggle)
 
bool isAutoWhiteBalanceLockSupported ()
 
bool getAutoWhiteBalanceLock ()
 
void setAutoWhiteBalanceLock (bool toggle)
 
int getExposureCompensation ()
 
void setExposureCompensation (int value)
 
float getExposureCompensationStep ()
 
int getMinExposureCompensation ()
 
int getMaxExposureCompensation ()
 
QStringList getSupportedSceneModes ()
 
QString getSceneMode ()
 
void setSceneMode (const QString &value)
 
QStringList getSupportedWhiteBalance ()
 
QString getWhiteBalance ()
 
void setWhiteBalance (const QString &value)
 
void setRotation (int rotation)
 
int getRotation () const
 
QList< QCameraFormatgetSupportedFormats ()
 
QList< QSizegetSupportedPictureSizes ()
 
QList< QSizegetSupportedVideoSizes ()
 
void setPictureSize (const QSize &size)
 
void setJpegQuality (int quality)
 
void startPreview ()
 
void stopPreview ()
 
void stopPreviewSynchronous ()
 
void takePicture ()
 
void setupPreviewFrameCallback ()
 
void notifyNewFrames (bool notify)
 
void fetchLastPreviewFrame ()
 
QJniObject getCameraObject ()
 
QJniObject getParametersObject ()
 
- 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 AndroidCameraopen (int cameraId)
 
static int getNumberOfCameras ()
 
static void getCameraInfo (int id, QCameraDevicePrivate *info)
 
static QVideoFrameFormat::PixelFormat QtPixelFormatFromAndroidImageFormat (AndroidCamera::ImageFormat)
 
static AndroidCamera::ImageFormat AndroidImageFormatFromQtPixelFormat (QVideoFrameFormat::PixelFormat)
 
static bool requestCameraPermission ()
 
static bool registerNativeMethods ()
 
- 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)
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 \threadsafe
 
- 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 inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Properties inherited from QObject
QString objectName
 the name of this object
 

Detailed Description

Definition at line 34 of file androidcamera_p.h.

Member Enumeration Documentation

◆ CameraFacing

Enumerator
CameraFacingBack 
CameraFacingFront 

Definition at line 38 of file androidcamera_p.h.

◆ ImageFormat

Enumerator
UnknownImageFormat 
RGB565 
NV16 
NV21 
YUY2 
JPEG 
YV12 

Definition at line 44 of file androidcamera_p.h.

Constructor & Destructor Documentation

◆ ~AndroidCamera()

AndroidCamera::~AndroidCamera ( )

Definition at line 303 of file androidcamera.cpp.

References cameraId(), d, QThread::exit(), release(), and QThread::wait().

+ Here is the call graph for this function:

Member Function Documentation

◆ actualPreviewSize()

QSize AndroidCamera::actualPreviewSize ( )

Definition at line 444 of file androidcamera.cpp.

References d.

◆ AndroidImageFormatFromQtPixelFormat()

AndroidCamera::ImageFormat AndroidCamera::AndroidImageFormatFromQtPixelFormat ( QVideoFrameFormat::PixelFormat format)
static

Definition at line 827 of file androidcamera.cpp.

References QVideoFrameFormat::Format_Jpeg, QVideoFrameFormat::Format_NV21, QVideoFrameFormat::Format_YUYV, QVideoFrameFormat::Format_YV12, JPEG, NV21, UnknownImageFormat, YUY2, and YV12.

Referenced by QAndroidCameraSession::setCameraFormat().

+ Here is the caller graph for this function:

◆ autoFocus()

void AndroidCamera::autoFocus ( )

Definition at line 577 of file androidcamera.cpp.

References d, and QMetaObject::invokeMethod().

+ Here is the call graph for this function:

◆ autoFocusComplete

void AndroidCamera::autoFocusComplete ( bool success)
signal

◆ autoFocusStarted

void AndroidCamera::autoFocusStarted ( )
signal

◆ cameraId()

int AndroidCamera::cameraId ( ) const

Definition at line 342 of file androidcamera.cpp.

References d.

Referenced by ~AndroidCamera(), and open().

+ Here is the caller graph for this function:

◆ cancelAutoFocus()

void AndroidCamera::cancelAutoFocus ( )

Definition at line 583 of file androidcamera.cpp.

References d, QMetaObject::invokeMethod(), and Qt::QueuedConnection.

Referenced by QAndroidCamera::setFocusMode().

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

◆ fetchLastPreviewFrame()

void AndroidCamera::fetchLastPreviewFrame ( )

Definition at line 753 of file androidcamera.cpp.

References d, and QMetaObject::invokeMethod().

+ Here is the call graph for this function:

◆ getAutoExposureLock()

bool AndroidCamera::getAutoExposureLock ( )

Definition at line 595 of file androidcamera.cpp.

References d.

◆ getAutoWhiteBalanceLock()

bool AndroidCamera::getAutoWhiteBalanceLock ( )

Definition at line 613 of file androidcamera.cpp.

References d.

◆ getCameraInfo()

void AndroidCamera::getCameraInfo ( int id,
QCameraDevicePrivate * info )
static

Definition at line 774 of file androidcamera.cpp.

References arg, QCameraDevice::BackFace, CameraFacingBack, CameraFacingFront, QCameraDevice::FrontFace, info, QByteArray::number(), Q_ASSERT, QByteArray(), and QStringLiteral.

+ Here is the call graph for this function:

◆ getCameraObject()

QJniObject AndroidCamera::getCameraObject ( )

Definition at line 759 of file androidcamera.cpp.

References d.

◆ getExposureCompensation()

int AndroidCamera::getExposureCompensation ( )

Definition at line 625 of file androidcamera.cpp.

References d.

◆ getExposureCompensationStep()

float AndroidCamera::getExposureCompensationStep ( )

Definition at line 637 of file androidcamera.cpp.

References d.

◆ getFacing()

AndroidCamera::CameraFacing AndroidCamera::getFacing ( )

Definition at line 378 of file androidcamera.cpp.

References d.

Referenced by QAndroidCameraSession::currentCameraRotation(), and QAndroidCaptureSession::start().

+ Here is the caller graph for this function:

◆ getFlashMode()

QString AndroidCamera::getFlashMode ( )

Definition at line 529 of file androidcamera.cpp.

References d.

◆ getFocusAreas()

QList< QRect > AndroidCamera::getFocusAreas ( )

Definition at line 565 of file androidcamera.cpp.

References d.

◆ getFocusMode()

QString AndroidCamera::getFocusMode ( )

Definition at line 547 of file androidcamera.cpp.

References d.

◆ getMaxExposureCompensation()

int AndroidCamera::getMaxExposureCompensation ( )

Definition at line 649 of file androidcamera.cpp.

References d.

◆ getMaxNumFocusAreas()

int AndroidCamera::getMaxNumFocusAreas ( )

Definition at line 559 of file androidcamera.cpp.

References d.

◆ getMaxZoom()

int AndroidCamera::getMaxZoom ( )

Definition at line 499 of file androidcamera.cpp.

References d.

◆ getMinExposureCompensation()

int AndroidCamera::getMinExposureCompensation ( )

Definition at line 643 of file androidcamera.cpp.

References d.

◆ getNativeOrientation()

int AndroidCamera::getNativeOrientation ( )

Definition at line 384 of file androidcamera.cpp.

References d.

Referenced by QAndroidCameraSession::currentCameraRotation().

+ Here is the caller graph for this function:

◆ getNumberOfCameras()

int AndroidCamera::getNumberOfCameras ( )
static

Definition at line 765 of file androidcamera.cpp.

References qt_androidCheckCameraPermission().

+ Here is the call graph for this function:

◆ getParametersObject()

QJniObject AndroidCamera::getParametersObject ( )

Definition at line 879 of file androidcamera.cpp.

References d.

◆ getPreferredPreviewSizeForVideo()

QSize AndroidCamera::getPreferredPreviewSizeForVideo ( )

Definition at line 390 of file androidcamera.cpp.

References d.

Referenced by QAndroidCameraSession::applyResolution().

+ Here is the caller graph for this function:

◆ getPreviewFormat()

AndroidCamera::ImageFormat AndroidCamera::getPreviewFormat ( )

Definition at line 420 of file androidcamera.cpp.

References d.

Referenced by QAndroidCameraSession::applyResolution().

+ Here is the caller graph for this function:

◆ getPreviewFpsRange()

AndroidCamera::FpsRange AndroidCamera::getPreviewFpsRange ( )

Definition at line 408 of file androidcamera.cpp.

References d.

Referenced by QAndroidCameraSession::applyResolution(), and getSupportedFormats().

+ Here is the caller graph for this function:

◆ getRotation()

int AndroidCamera::getRotation ( ) const

Definition at line 705 of file androidcamera.cpp.

References d.

◆ getSceneMode()

QString AndroidCamera::getSceneMode ( )

Definition at line 661 of file androidcamera.cpp.

References d.

◆ getSupportedFlashModes()

QStringList AndroidCamera::getSupportedFlashModes ( )

Definition at line 523 of file androidcamera.cpp.

References d.

◆ getSupportedFocusModes()

QStringList AndroidCamera::getSupportedFocusModes ( )

Definition at line 541 of file androidcamera.cpp.

References d.

◆ getSupportedFormats()

QList< QCameraFormat > AndroidCamera::getSupportedFormats ( )

Definition at line 843 of file androidcamera.cpp.

References getPreviewFpsRange(), getSupportedPreviewFormats(), getSupportedVideoSizes(), previewSize(), and QtPixelFormatFromAndroidImageFormat().

+ Here is the call graph for this function:

◆ getSupportedPictureSizes()

QList< QSize > AndroidCamera::getSupportedPictureSizes ( )

Definition at line 711 of file androidcamera.cpp.

References d.

◆ getSupportedPreviewFormats()

QList< AndroidCamera::ImageFormat > AndroidCamera::getSupportedPreviewFormats ( )

Definition at line 432 of file androidcamera.cpp.

References d.

Referenced by getSupportedFormats(), and QAndroidCameraSession::getSupportedPixelFormats().

+ Here is the caller graph for this function:

◆ getSupportedPreviewFpsRange()

QList< AndroidCamera::FpsRange > AndroidCamera::getSupportedPreviewFpsRange ( )

Definition at line 402 of file androidcamera.cpp.

References d.

Referenced by QAndroidCameraSession::getSupportedPreviewFpsRange().

+ Here is the caller graph for this function:

◆ getSupportedPreviewSizes()

QList< QSize > AndroidCamera::getSupportedPreviewSizes ( )

Definition at line 396 of file androidcamera.cpp.

References d.

Referenced by QAndroidCameraSession::applyResolution(), and QAndroidCameraSession::getSupportedPreviewSizes().

+ Here is the caller graph for this function:

◆ getSupportedSceneModes()

QStringList AndroidCamera::getSupportedSceneModes ( )

Definition at line 655 of file androidcamera.cpp.

References d.

◆ getSupportedVideoSizes()

QList< QSize > AndroidCamera::getSupportedVideoSizes ( )

Definition at line 717 of file androidcamera.cpp.

References d.

Referenced by getSupportedFormats().

+ Here is the caller graph for this function:

◆ getSupportedWhiteBalance()

QStringList AndroidCamera::getSupportedWhiteBalance ( )

Definition at line 673 of file androidcamera.cpp.

References d.

◆ getWhiteBalance()

QString AndroidCamera::getWhiteBalance ( )

Definition at line 679 of file androidcamera.cpp.

References d.

◆ getZoom()

int AndroidCamera::getZoom ( )

Definition at line 511 of file androidcamera.cpp.

References d.

◆ getZoomRatios()

QList< int > AndroidCamera::getZoomRatios ( )

Definition at line 505 of file androidcamera.cpp.

References d.

◆ isAutoExposureLockSupported()

bool AndroidCamera::isAutoExposureLockSupported ( )

Definition at line 589 of file androidcamera.cpp.

References d.

◆ isAutoWhiteBalanceLockSupported()

bool AndroidCamera::isAutoWhiteBalanceLockSupported ( )

Definition at line 607 of file androidcamera.cpp.

References d.

◆ isZoomSupported()

bool AndroidCamera::isZoomSupported ( )

Definition at line 493 of file androidcamera.cpp.

References d.

◆ lastPreviewFrameFetched

void AndroidCamera::lastPreviewFrameFetched ( const QVideoFrame & frame)
signal

◆ lock()

bool AndroidCamera::lock ( )

Definition at line 348 of file androidcamera.cpp.

References Qt::BlockingQueuedConnection, d, QMetaObject::invokeMethod(), ok, and Q_RETURN_ARG.

+ Here is the call graph for this function:

◆ newPreviewFrame

void AndroidCamera::newPreviewFrame ( const QVideoFrame & frame)
signal

◆ notifyNewFrames()

void AndroidCamera::notifyNewFrames ( bool notify)

Definition at line 747 of file androidcamera.cpp.

References d, QMetaObject::invokeMethod(), and Q_ARG.

Referenced by QAndroidCameraSession::setPreviewCallback().

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

◆ open()

AndroidCamera * AndroidCamera::open ( int cameraId)
static

Definition at line 316 of file androidcamera.cpp.

References Qt::BlockingQueuedConnection, cameraId(), QObject::connect(), d, QObject::deleteLater(), QThread::finished(), QMetaObject::invokeMethod(), ok, Q_ARG, Q_RETURN_ARG, qt_androidCheckCameraPermission(), QThread::quit(), QThread::start(), and QThread::wait().

+ Here is the call graph for this function:

◆ pictureCaptured

void AndroidCamera::pictureCaptured ( const QByteArray & frame,
QVideoFrameFormat::PixelFormat format,
QSize size,
int bytesPerLine )
signal

◆ pictureExposed

void AndroidCamera::pictureExposed ( )
signal

◆ previewFailedToStart

void AndroidCamera::previewFailedToStart ( )
signal

◆ previewSize()

QSize AndroidCamera::previewSize ( ) const

Definition at line 438 of file androidcamera.cpp.

References d.

Referenced by QAndroidCameraSession::applyResolution(), and getSupportedFormats().

+ Here is the caller graph for this function:

◆ previewSizeChanged

void AndroidCamera::previewSizeChanged ( )
signal

◆ previewStarted

void AndroidCamera::previewStarted ( )
signal

◆ previewStopped

void AndroidCamera::previewStopped ( )
signal

◆ QtPixelFormatFromAndroidImageFormat()

QVideoFrameFormat::PixelFormat AndroidCamera::QtPixelFormatFromAndroidImageFormat ( AndroidCamera::ImageFormat format)
static

Definition at line 811 of file androidcamera.cpp.

References QVideoFrameFormat::Format_Invalid, QVideoFrameFormat::Format_Jpeg, QVideoFrameFormat::Format_NV21, QVideoFrameFormat::Format_YUYV, QVideoFrameFormat::Format_YV12, JPEG, NV21, YUY2, and YV12.

Referenced by getSupportedFormats(), and QAndroidCameraSession::getSupportedPixelFormats().

+ Here is the caller graph for this function:

◆ reconnect()

bool AndroidCamera::reconnect ( )

Definition at line 364 of file androidcamera.cpp.

References Qt::BlockingQueuedConnection, d, QMetaObject::invokeMethod(), ok, and Q_RETURN_ARG.

+ Here is the call graph for this function:

◆ registerNativeMethods()

bool AndroidCamera::registerNativeMethods ( )
static

Definition at line 1772 of file androidcamera.cpp.

References methods, notifyAutoFocusComplete(), notifyFrameAvailable(), notifyNewPreviewFrame(), notifyPictureCaptured(), and notifyPictureExposed().

Referenced by JNI_OnLoad().

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

◆ release()

void AndroidCamera::release ( )

Definition at line 372 of file androidcamera.cpp.

References Qt::BlockingQueuedConnection, d, and QMetaObject::invokeMethod().

Referenced by ~AndroidCamera().

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

◆ requestCameraPermission()

static bool AndroidCamera::requestCameraPermission ( )
static

◆ setAutoExposureLock()

void AndroidCamera::setAutoExposureLock ( bool toggle)

Definition at line 601 of file androidcamera.cpp.

References d, QMetaObject::invokeMethod(), and Q_ARG.

+ Here is the call graph for this function:

◆ setAutoWhiteBalanceLock()

void AndroidCamera::setAutoWhiteBalanceLock ( bool toggle)

Definition at line 619 of file androidcamera.cpp.

References d, QMetaObject::invokeMethod(), and Q_ARG.

+ Here is the call graph for this function:

◆ setDisplayOrientation()

void AndroidCamera::setDisplayOrientation ( int degrees)

Definition at line 487 of file androidcamera.cpp.

References d, QMetaObject::invokeMethod(), Q_ARG, and Qt::QueuedConnection.

+ Here is the call graph for this function:

◆ setExposureCompensation()

void AndroidCamera::setExposureCompensation ( int value)

Definition at line 631 of file androidcamera.cpp.

References d, QMetaObject::invokeMethod(), and Q_ARG.

Referenced by QAndroidCamera::setExposureCompensation().

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

◆ setFlashMode()

void AndroidCamera::setFlashMode ( const QString & value)

Definition at line 535 of file androidcamera.cpp.

References d, QMetaObject::invokeMethod(), and Q_ARG.

Referenced by QAndroidCamera::setFlashMode().

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

◆ setFocusAreas()

void AndroidCamera::setFocusAreas ( const QList< QRect > & areas)

Definition at line 571 of file androidcamera.cpp.

References d, QMetaObject::invokeMethod(), and Q_ARG.

+ Here is the call graph for this function:

◆ setFocusMode()

void AndroidCamera::setFocusMode ( const QString & value)

Definition at line 553 of file androidcamera.cpp.

References d, QMetaObject::invokeMethod(), and Q_ARG.

Referenced by QAndroidCamera::setFocusMode().

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

◆ setJpegQuality()

void AndroidCamera::setJpegQuality ( int quality)

Definition at line 729 of file androidcamera.cpp.

References d, QMetaObject::invokeMethod(), and Q_ARG.

+ Here is the call graph for this function:

◆ setPictureSize()

void AndroidCamera::setPictureSize ( const QSize & size)

Definition at line 723 of file androidcamera.cpp.

References d, QMetaObject::invokeMethod(), and Q_ARG.

+ Here is the call graph for this function:

◆ setPreviewDisplay()

bool AndroidCamera::setPreviewDisplay ( AndroidSurfaceHolder * surfaceHolder)

Definition at line 475 of file androidcamera.cpp.

References Qt::BlockingQueuedConnection, d, QMetaObject::invokeMethod(), ok, Q_ARG, Q_RETURN_ARG, and AndroidSurfaceHolder::surfaceHolder().

+ Here is the call graph for this function:

◆ setPreviewFormat()

void AndroidCamera::setPreviewFormat ( ImageFormat fmt)

Definition at line 426 of file androidcamera.cpp.

References d, fmt, QMetaObject::invokeMethod(), and Q_ARG.

Referenced by QAndroidCameraSession::applyResolution(), and QAndroidCameraSession::setPreviewFormat().

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

◆ setPreviewFpsRange()

void AndroidCamera::setPreviewFpsRange ( FpsRange range)

Definition at line 414 of file androidcamera.cpp.

References d, QMetaObject::invokeMethod(), and Q_ARG.

Referenced by QAndroidCameraSession::applyResolution().

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

◆ setPreviewSize()

void AndroidCamera::setPreviewSize ( const QSize & size)

Definition at line 450 of file androidcamera.cpp.

References d, and QMetaObject::invokeMethod().

Referenced by QAndroidCameraSession::applyResolution().

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

◆ setPreviewTexture()

bool AndroidCamera::setPreviewTexture ( AndroidSurfaceTexture * surfaceTexture)

Definition at line 463 of file androidcamera.cpp.

References Qt::BlockingQueuedConnection, d, QMetaObject::invokeMethod(), ok, Q_ARG, Q_RETURN_ARG, and AndroidSurfaceTexture::surfaceTexture().

+ Here is the call graph for this function:

◆ setRotation()

void AndroidCamera::setRotation ( int rotation)

Definition at line 691 of file androidcamera.cpp.

References d, and QMetaObject::invokeMethod().

+ Here is the call graph for this function:

◆ setSceneMode()

void AndroidCamera::setSceneMode ( const QString & value)

Definition at line 667 of file androidcamera.cpp.

References d, QMetaObject::invokeMethod(), and Q_ARG.

Referenced by QAndroidCamera::setExposureMode().

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

◆ setupPreviewFrameCallback()

void AndroidCamera::setupPreviewFrameCallback ( )

Definition at line 741 of file androidcamera.cpp.

References d, and QMetaObject::invokeMethod().

Referenced by QAndroidCaptureSession::start().

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

◆ setWhiteBalance()

void AndroidCamera::setWhiteBalance ( const QString & value)

Definition at line 685 of file androidcamera.cpp.

References d, QMetaObject::invokeMethod(), and Q_ARG.

+ Here is the call graph for this function:

◆ setZoom()

void AndroidCamera::setZoom ( int value)

Definition at line 517 of file androidcamera.cpp.

References d, QMetaObject::invokeMethod(), and Q_ARG.

Referenced by QAndroidCamera::zoomTo().

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

◆ startPreview()

void AndroidCamera::startPreview ( )

Definition at line 861 of file androidcamera.cpp.

References d, and QMetaObject::invokeMethod().

Referenced by QAndroidCameraSession::applyResolution().

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

◆ stopPreview()

void AndroidCamera::stopPreview ( )

Definition at line 867 of file androidcamera.cpp.

References d, and QMetaObject::invokeMethod().

Referenced by QAndroidCameraSession::applyResolution().

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

◆ stopPreviewSynchronous()

void AndroidCamera::stopPreviewSynchronous ( )

Definition at line 873 of file androidcamera.cpp.

References Qt::BlockingQueuedConnection, d, and QMetaObject::invokeMethod().

Referenced by QAndroidCaptureSession::start().

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

◆ takePicture()

void AndroidCamera::takePicture ( )

Definition at line 735 of file androidcamera.cpp.

References Qt::BlockingQueuedConnection, d, and QMetaObject::invokeMethod().

+ Here is the call graph for this function:

◆ takePictureFailed

void AndroidCamera::takePictureFailed ( )
signal

◆ unlock()

bool AndroidCamera::unlock ( )

Definition at line 356 of file androidcamera.cpp.

References Qt::BlockingQueuedConnection, d, QMetaObject::invokeMethod(), ok, and Q_RETURN_ARG.

Referenced by QAndroidCaptureSession::start().

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

◆ whiteBalanceChanged

void AndroidCamera::whiteBalanceChanged ( )
signal

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