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
qandroidimagecapture.cpp
Go to the documentation of this file.
1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include <QtFFmpegMediaPluginImpl/private/qandroidimagecapture_p.h>
5
6#include <QtFFmpegMediaPluginImpl/private/qandroidcamera_p.h>
7#include <QtFFmpegMediaPluginImpl/private/qffmpegmediacapturesession_p.h>
8
9QT_BEGIN_NAMESPACE
10
11namespace QFFmpeg {
12
18
22
24{
26 if (ret >= 0) {
28 if (androidCamera)
30 }
31
32 return ret;
33}
34
36{
37 // Apply to the session's camera even if inactive, the still reader is created when it opens
39 captureSession() ? captureSession()->camera() : nullptr);
40 if (!androidCamera)
41 return;
42
44}
45
47{
49 if (androidCamera) {
50 connect(
53 this,
55
56 // The backend might call onImageCaptureFailed before the call to
57 // QAndroidImageCapture::doCapture() is finished and returns the request id to the user.
58 // Therefore we want to use queued connection for this to make sure any errors are raised
59 // after that function ends.
60 connect(
63 this,
66 }
67 else
69}
70
72{
73 Q_UNUSED(id);
75 if (androidCamera)
77}
78
79} // namespace QFFmpeg
80
81QT_END_NAMESPACE