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
qffmpegioutils_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 QFFMPEGIOUTILS_P_H
5#define QFFMPEGIOUTILS_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
19#include "qffmpegdefs_p.h"
20
21#include <type_traits>
22
24
25namespace QFFmpeg {
26
27int readQIODevice(void *opaque, uint8_t *buf, int buf_size);
28
31
32int writeQIODevice(void *opaque, AvioWriteBufferType buf, int buf_size);
33
34int64_t seekQIODevice(void *opaque, int64_t offset, int whence);
35
36} // namespace QFFmpeg
37
39
40#endif // QFFMPEGIOUTILS_P_H
static QByteArray value(const QMediaMetaData &metaData, QMediaMetaData::Key key)
static AVDictionary * toAVMetaData(const QMediaMetaData &metaData)
static QMediaMetaData fromAVMetaData(const AVDictionary *tags)
static void addEntry(QMediaMetaData &metaData, AVDictionaryEntry *entry)
MediaDataHolder(AVFormatContextUPtr context, const std::shared_ptr< ICancelToken > &cancelToken)
bool setActiveTrack(QPlatformMediaPlayer::TrackType type, int streamNumber)
static Maybe create(const QUrl &url, QIODevice *stream, const std::shared_ptr< ICancelToken > &cancelToken)
int currentStreamIndex(QPlatformMediaPlayer::TrackType trackType) const
VideoTransformation transformation() const
const QMediaMetaData & metaData() const
static QPlatformMediaPlayer::TrackType trackTypeFromMediaType(int mediaType)
const QList< StreamInfo > & streamInfo(QPlatformMediaPlayer::TrackType trackType) const
int activeTrack(QPlatformMediaPlayer::TrackType type) const
Definition qlist.h:76
static VideoTransformation streamTransformation(const AVStream *stream)
int writeQIODevice(void *opaque, AvioWriteBufferType buf, int buf_size)
static bool colorTransferSupportsHdr(const AVStream *stream)
static void insertMediaData(QMediaMetaData &metaData, QPlatformMediaPlayer::TrackType trackType, const AVStream *stream)
static std::optional< qint64 > streamDuration(const AVStream &stream)
int64_t seekQIODevice(void *opaque, int64_t offset, int whence)
static QTransform displayMatrixToTransform(const int32_t *displayMatrix)
int readQIODevice(void *opaque, uint8_t *buf, int buf_size)
const AVPacketSideData * streamSideData(const AVStream *stream, AVPacketSideDataType type)
Definition qffmpeg.cpp:121
#define QT_FFMPEG_AVIO_WRITE_CONST
#define qCWarning(category,...)
#define qCDebug(category,...)
#define Q_STATIC_LOGGING_CATEGORY(name,...)
#define QT_BEGIN_NAMESPACE
#define QT_END_NAMESPACE
virtual bool isCancelled() const =0
virtual ~ICancelToken()=default