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
qandroidmultimediautils.cpp File Reference

(bea75b36c62ed730c46603326ab4e08bfedd9e36)

#include "qandroidmultimediautils_p.h"
#include "qandroidglobal_p.h"
#include <qlist.h>
#include <QtCore/qcoreapplication.h>
#include <QtCore/qpermissions.h>
#include <QtCore/private/qandroidextras_p.h>
+ Include dependency graph for qandroidmultimediautils.cpp:

Go to the source code of this file.

Functions

QT_BEGIN_NAMESPACE int qt_findClosestValue (const QList< int > &list, int value)
 
bool qt_sizeLessThan (const QSize &s1, const QSize &s2)
 
QVideoFrameFormat::PixelFormat qt_pixelFormatFromAndroidImageFormat (AndroidCamera::ImageFormat f)
 
AndroidCamera::ImageFormat qt_androidImageFormatFromPixelFormat (QVideoFrameFormat::PixelFormat f)
 
static bool androidRequestPermission (const QString &permission)
 
static bool androidCheckPermission (const QPermission &permission)
 
bool qt_androidCheckCameraPermission ()
 
bool qt_androidCheckMicrophonePermission ()
 
bool qt_androidRequestWriteStoragePermission ()
 

Function Documentation

◆ androidCheckPermission()

static bool androidCheckPermission ( const QPermission & permission)
static

Definition at line 92 of file qandroidmultimediautils.cpp.

References Qt::Granted, and qApp.

Referenced by qt_androidCheckCameraPermission(), and qt_androidCheckMicrophonePermission().

+ Here is the caller graph for this function:

◆ androidRequestPermission()

static bool androidRequestPermission ( const QString & permission)
static

Definition at line 77 of file qandroidmultimediautils.cpp.

Referenced by qt_androidRequestWriteStoragePermission().

+ Here is the caller graph for this function:

◆ qt_androidCheckCameraPermission()

bool qt_androidCheckCameraPermission ( )

Definition at line 97 of file qandroidmultimediautils.cpp.

References androidCheckPermission(), and qCDebug.

Referenced by AndroidCamera::getNumberOfCameras(), AndroidCamera::open(), and QAndroidCaptureSession::start().

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

◆ qt_androidCheckMicrophonePermission()

bool qt_androidCheckMicrophonePermission ( )

Definition at line 106 of file qandroidmultimediautils.cpp.

References androidCheckPermission(), and qCDebug.

Referenced by QAndroidCaptureSession::start().

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

◆ qt_androidImageFormatFromPixelFormat()

◆ qt_androidRequestWriteStoragePermission()

bool qt_androidRequestWriteStoragePermission ( )

Definition at line 115 of file qandroidmultimediautils.cpp.

References androidRequestPermission(), qCDebug, and QStringLiteral.

Referenced by QAndroidMediaEncoder::setOutputLocation().

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

◆ qt_findClosestValue()

QT_BEGIN_NAMESPACE int qt_findClosestValue ( const QList< int > & list,
int value )

Definition at line 14 of file qandroidmultimediautils.cpp.

References QList< T >::at(), begin(), list, and QList< T >::size().

Referenced by QAndroidCamera::zoomTo().

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

◆ qt_pixelFormatFromAndroidImageFormat()

QVideoFrameFormat::PixelFormat qt_pixelFormatFromAndroidImageFormat ( AndroidCamera::ImageFormat f)

◆ qt_sizeLessThan()

bool qt_sizeLessThan ( const QSize & s1,
const QSize & s2 )

Definition at line 40 of file qandroidmultimediautils.cpp.

References s2.

Referenced by AndroidCameraPrivate::getSupportedPictureSizes(), AndroidCameraPrivate::getSupportedPreviewSizes(), and AndroidCameraPrivate::getSupportedVideoSizes().

+ Here is the caller graph for this function: