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
8QT_BEGIN_NAMESPACE
9
10namespace QFFmpeg {
11
17
21
23{
25 if (ret >= 0) {
27 if (androidCamera)
29 }
30
31 return ret;
32}
33
35{
37 if (androidCamera) {
38 connect(
41 this,
43
44 // The backend might call onImageCaptureFailed before the call to
45 // QAndroidImageCapture::doCapture() is finished and returns the request id to the user.
46 // Therefore we want to use queued connection for this to make sure any errors are raised
47 // after that function ends.
48 connect(
51 this,
54 }
55 else
57}
58
60{
61 Q_UNUSED(id);
63 if (androidCamera)
65}
66
67} // namespace QFFmpeg
std::conditional_t< QT_FFMPEG_AVIO_WRITE_CONST, const uint8_t *, uint8_t * > AvioWriteBufferType