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
qffmpegpacket_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 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 QFFMPEGPACKET_P_H
5#define QFFMPEGPACKET_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qffmpeg_p.h"
19#include "QtCore/qsharedpointer.h"
21
23
24namespace QFFmpeg {
25
26struct Packet
27{
40 Packet() = default;
42 : d(new Data(offset, std::move(p), sourceId))
43 {
44 }
45
46 bool isValid() const { return !!d; }
47 AVPacket *avPacket() const { return d->packet.get(); }
48 const LoopOffset &loopOffset() const { return d->loopOffset; }
49 quint64 sourceId() const { return d->sourceId; }
50
51private:
52 QExplicitlySharedDataPointer<Data> d;
53};
54
55} // namespace QFFmpeg
56
58
60
61#endif // QFFMPEGPACKET_P_H
\inmodule QtCore
Definition qatomic.h:112
std::unique_ptr< AVPacket, AVDeleter< decltype(&av_packet_free), &av_packet_free > > AVPacketUPtr
Definition qffmpeg_p.h:141
Combined button and popup list for selecting options.
#define Q_DECLARE_METATYPE(TYPE)
Definition qmetatype.h:1525
GLenum GLuint GLintptr offset
GLfloat GLfloat p
[1]
unsigned long long quint64
Definition qtypes.h:61
Data(const LoopOffset &offset, AVPacketUPtr p, quint64 sourceId)
Packet()=default
AVPacket * avPacket() const
bool isValid() const
const LoopOffset & loopOffset() const
Packet(const LoopOffset &offset, AVPacketUPtr p, quint64 sourceId)
quint64 sourceId() const