Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qffmpegencodingformatcontext_p.h
Go to the documentation of this file.
1
// Copyright (C) 2024 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
#
ifndef
QFFMPEGENCODINGFORMATCONTEXT_P_H
5
#
define
QFFMPEGENCODINGFORMATCONTEXT_P_H
6
7
#
include
<
QtFFmpegMediaPluginImpl
/
private
/
qffmpeg_p
.
h
>
8
#
include
<
QtFFmpegMediaPluginImpl
/
private
/
qffmpegdefs_p
.
h
>
9
10
#
include
<
QtMultimedia
/
qmediaformat
.
h
>
11
12
//
13
// W A R N I N G
14
// -------------
15
//
16
// This file is not part of the Qt API. It exists purely as an
17
// implementation detail. This header file may change from version to
18
// version without notice, or even be removed.
19
//
20
// We mean it.
21
//
22
23
QT_BEGIN_NAMESPACE
24
25
class
QIODevice;
26
class
QFile;
27
28
namespace
QFFmpeg
{
29
30
class
EncodingFormatContext
31
{
32
public
:
33
explicit
EncodingFormatContext
(QMediaFormat::FileFormat fileFormat);
34
~
EncodingFormatContext
();
35
36
[[nodiscard]]
bool
openAVIO
(
const
QString &filePath);
37
[[nodiscard]]
bool
openAVIO
(QIODevice *device);
38
bool
isAVIOOpen
()
const
{
return
m_avFormatContext->pb !=
nullptr
; }
39
void
closeAVIO
();
40
41
AVFormatContext
*
avFormatContext
() {
return
m_avFormatContext.get(); }
42
43
const
AVFormatContext
*
avFormatContext
()
const
{
return
m_avFormatContext.get(); }
44
45
private
:
46
Q_DISABLE_COPY_MOVE
(
EncodingFormatContext
)
47
48
[[
nodiscard
]]
bool
openAVIOWithQFile
(
const
QString
&
filePath
);
49
50
private
:
51
AVMuxerContextUPtr m_avFormatContext;
52
std::unique_ptr<QFile> m_outputFile;
53
};
54
55
}
// namespace QFFmpeg
56
57
QT_END_NAMESPACE
58
59
#
endif
// QFFMPEGENCODINGFORMATCONTEXT_P_H
QFFmpeg::EncodingFormatContext
Definition
qffmpegencodingformatcontext_p.h:31
QFFmpeg::EncodingFormatContext::avFormatContext
AVFormatContext * avFormatContext()
Definition
qffmpegencodingformatcontext_p.h:41
QFFmpeg::EncodingFormatContext::closeAVIO
void closeAVIO()
Definition
qffmpegencodingformatcontext.cpp:95
QFFmpeg::EncodingFormatContext::openAVIO
bool openAVIO(const QString &filePath)
Definition
qffmpegencodingformatcontext.cpp:35
QFFmpeg::EncodingFormatContext::openAVIO
bool openAVIO(QIODevice *device)
Definition
qffmpegencodingformatcontext.cpp:81
QFFmpeg::EncodingFormatContext::~EncodingFormatContext
~EncodingFormatContext()
Definition
qffmpegencodingformatcontext.cpp:30
QFFmpeg::EncodingFormatContext::EncodingFormatContext
EncodingFormatContext(QMediaFormat::FileFormat fileFormat)
Definition
qffmpegencodingformatcontext.cpp:23
QFFmpeg::EncodingFormatContext::avFormatContext
const AVFormatContext * avFormatContext() const
Definition
qffmpegencodingformatcontext_p.h:43
QFFmpeg::EncodingFormatContext::isAVIOOpen
bool isAVIOOpen() const
Definition
qffmpegencodingformatcontext_p.h:38
QFFmpeg
Definition
qandroidcacertificates.cpp:26
QFFmpeg::Q_STATIC_LOGGING_CATEGORY
Q_STATIC_LOGGING_CATEGORY(qLCAndroidCaCertificates, "qt.multimedia.ffmpeg.android.caCertificates")
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtmultimedia
src
plugins
multimedia
ffmpeg
qffmpegencodingformatcontext_p.h
Generated on
for Qt by
1.18.0