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>.
|
#include "qandroidcamera_p.h"
#include <jni.h>
#include <QMediaFormat>
#include <memory>
#include <optional>
#include <qmediadevices.h>
#include <qguiapplication.h>
#include <qscreen.h>
#include <QDebug>
#include <qloggingcategory.h>
#include <QtCore/qcoreapplication.h>
#include <QtCore/qpermissions.h>
#include <QtCore/private/qandroidextras_p.h>
#include <private/qcameradevice_p.h>
#include <QReadWriteLock>
#include <private/qvideoframeconverter_p.h>
#include <private/qvideotexturehelper_p.h>
#include <qffmpegvideobuffer_p.h>
#include <qandroidcameraframe_p.h>
#include <utility>
#include "libavutil/hwcontext.h"
#include "libavutil/pixfmt.h"
Go to the source code of this file.
Macros | |
#define | GET_CAMERA(cameraId) |
Typedefs | |
typedef QMap< QString, QAndroidCamera * > | QAndroidCameraMap |
Functions | |
Q_DECLARE_JNI_CLASS (QtCamera2, "org/qtproject/qt/android/multimedia/QtCamera2") | |
Q_DECLARE_JNI_CLASS (QtVideoDeviceManager, "org/qtproject/qt/android/multimedia/QtVideoDeviceManager") | |
Q_DECLARE_JNI_CLASS (AndroidImageFormat, "android/graphics/ImageFormat") | |
static QT_BEGIN_NAMESPACE | Q_LOGGING_CATEGORY (qLCAndroidCamera, "qt.multimedia.ffmpeg.androidCamera") |
static void | deleteFrame (void *opaque, uint8_t *data) |
static void | onFrameAvailable (JNIEnv *env, jobject obj, jstring cameraId, QtJniTypes::AndroidImage image) |
static void | onPhotoAvailable (JNIEnv *env, jobject obj, jstring cameraId, QtJniTypes::AndroidImage image) |
static void | onCameraOpened (JNIEnv *env, jobject obj, jstring cameraId) |
static void | onCameraDisconnect (JNIEnv *env, jobject obj, jstring cameraId) |
static void | onCameraError (JNIEnv *env, jobject obj, jstring cameraId, jint error) |
static void | onCaptureSessionConfigured (JNIEnv *env, jobject obj, jstring cameraId) |
static void | onCaptureSessionConfigureFailed (JNIEnv *env, jobject obj, jstring cameraId) |
static void | onSessionActive (JNIEnv *env, jobject obj, jstring cameraId) |
static void | onSessionClosed (JNIEnv *env, jobject obj, jstring cameraId) |
static void | onCaptureSessionFailed (JNIEnv *env, jobject obj, jstring cameraId, jint reason, jlong framenumber) |
#define GET_CAMERA | ( | cameraId | ) |
Definition at line 563 of file qandroidcamera.cpp.
Referenced by onCameraDisconnect(), onCameraError(), onCameraOpened(), onCaptureSessionConfigured(), onCaptureSessionConfigureFailed(), onCaptureSessionFailed(), onFrameAvailable(), onPhotoAvailable(), onSessionActive(), and onSessionClosed().
typedef QMap<QString, QAndroidCamera *> QAndroidCameraMap |
Definition at line 46 of file qandroidcamera.cpp.
Definition at line 143 of file qandroidcamera.cpp.
References frame, and Q_UNUSED.
Referenced by QAndroidCamera::frameAvailable().
|
static |
Definition at line 605 of file qandroidcamera.cpp.
References camera, GET_CAMERA, and Q_UNUSED.
Referenced by QAndroidCamera::registerNativeMethods().
|
static |
Definition at line 615 of file qandroidcamera.cpp.
References camera, error, GET_CAMERA, and Q_UNUSED.
Referenced by QAndroidCamera::registerNativeMethods().
|
static |
Definition at line 595 of file qandroidcamera.cpp.
References camera, GET_CAMERA, and Q_UNUSED.
Referenced by QAndroidCamera::registerNativeMethods().
|
static |
Definition at line 625 of file qandroidcamera.cpp.
References camera, GET_CAMERA, and Q_UNUSED.
Referenced by QAndroidCamera::registerNativeMethods().
|
static |
Definition at line 635 of file qandroidcamera.cpp.
References camera, GET_CAMERA, and Q_UNUSED.
Referenced by QAndroidCamera::registerNativeMethods().
|
static |
Definition at line 665 of file qandroidcamera.cpp.
References camera, GET_CAMERA, and Q_UNUSED.
Referenced by QAndroidCamera::registerNativeMethods().
|
static |
Definition at line 572 of file qandroidcamera.cpp.
References camera, GET_CAMERA, and Q_UNUSED.
Referenced by QAndroidCamera::registerNativeMethods().
|
static |
Definition at line 583 of file qandroidcamera.cpp.
References camera, GET_CAMERA, and Q_UNUSED.
Referenced by QAndroidCamera::registerNativeMethods().
|
static |
Definition at line 645 of file qandroidcamera.cpp.
References camera, GET_CAMERA, and Q_UNUSED.
Referenced by QAndroidCamera::registerNativeMethods().
|
static |
Definition at line 655 of file qandroidcamera.cpp.
References camera, GET_CAMERA, and Q_UNUSED.
Referenced by QAndroidCamera::registerNativeMethods().
Q_DECLARE_JNI_CLASS | ( | AndroidImageFormat | , |
"android/graphics/ImageFormat" | ) |
Q_DECLARE_JNI_CLASS | ( | QtCamera2 | , |
"org/qtproject/qt/android/multimedia/QtCamera2" | ) |
Q_DECLARE_JNI_CLASS | ( | QtVideoDeviceManager | , |
"org/qtproject/qt/android/multimedia/QtVideoDeviceManager" | ) |
|
static |