Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
22QT_BEGIN_NAMESPACE
23
24class QAndroidMediaEncoder;
26class QAndroidCamera;
29
31{
33
34public:
37
38 QPlatformCamera *camera() override;
39 void setCamera(QPlatformCamera *camera) override;
40
42 void setImageCapture(QPlatformImageCapture *imageCapture) override;
43
45 void setMediaRecorder(QPlatformMediaRecorder *recorder) override;
46
47 void setAudioInput(QPlatformAudioInput *input) override;
48
49 void setVideoPreview(QVideoSink *sink) override;
50
51 void setAudioOutput(QPlatformAudioOutput *output) override;
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
64QT_END_NAMESPACE
65
66#endif // QANDROIDCAPTURESERVICE_H
void setVideoSink(QVideoSink *surface)
void setCameraSession(QAndroidCameraSession *cameraSession=0)
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