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
qandroidmediacapturesession_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// Copyright (C) 2016 Ruslan Baratov
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef QANDROIDCAPTURESERVICE_H
6#define QANDROIDCAPTURESERVICE_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <private/qplatformmediacapture_p.h>
20#include <private/qplatformmediaintegration_p.h>
21
23
26class QAndroidCamera;
29
31{
33
34public:
37
38 QPlatformCamera *camera() override;
39 void setCamera(QPlatformCamera *camera) override;
40
43
46
48
49 void setVideoPreview(QVideoSink *sink) override;
50
52
53 QAndroidCaptureSession *captureSession() const { return m_captureSession; }
54 QAndroidCameraSession *cameraSession() const { return m_cameraSession; }
55
56private:
57 QAndroidMediaEncoder *m_encoder = nullptr;
58 QAndroidCaptureSession *m_captureSession = nullptr;
59 QAndroidCamera *m_cameraControl = nullptr;
60 QAndroidCameraSession *m_cameraSession = nullptr;
61 QAndroidImageCapture *m_imageCaptureControl = nullptr;
62};
63
65
66#endif // QANDROIDCAPTURESERVICE_H
void setCamera(QPlatformCamera *camera) override
void setAudioOutput(QPlatformAudioOutput *output) override
void setVideoPreview(QVideoSink *sink) override
QPlatformCamera * camera() override
QPlatformMediaRecorder * mediaRecorder() override
void setImageCapture(QPlatformImageCapture *imageCapture) override
QAndroidCaptureSession * captureSession() const
QAndroidCameraSession * cameraSession() const
QPlatformImageCapture * imageCapture() override
void setAudioInput(QPlatformAudioInput *input) override
void setMediaRecorder(QPlatformMediaRecorder *recorder) override
The QVideoSink class represents a generic sink for video data.
Definition qvideosink.h:22
QMediaRecorder * recorder
Definition camera.cpp:20
Combined button and popup list for selecting options.
GLsizei GLenum GLboolean sink
GLenum GLenum GLenum input
#define Q_OBJECT
QT_BEGIN_NAMESPACE typedef uchar * output