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 <QtFFmpegMediaPluginImpl/private/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
38QT_END_NAMESPACE
39
40#endif // QFFMPEGIOUTILS_P_H
MediaDataHolder(AVFormatContextUPtr context, const std::shared_ptr< ICancelToken > &cancelToken)
bool setActiveTrack(QPlatformMediaPlayer::TrackType type, int streamNumber)
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
static Maybe create(const QUrl &url, QIODevice *stream, const QPlaybackOptions &options, const std::shared_ptr< ICancelToken > &cancelToken)
Definition qlist.h:80
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< TrackDuration > streamDuration(const AVStream &stream)
int64_t seekQIODevice(void *opaque, int64_t offset, int whence)
std::conditional_t< QT_FFMPEG_AVIO_WRITE_CONST, const uint8_t *, uint8_t * > AvioWriteBufferType
static QTransform displayMatrixToTransform(const int32_t *displayMatrix)
int readQIODevice(void *opaque, uint8_t *buf, int buf_size)
#define qCWarning(category,...)
#define qCDebug(category,...)
#define Q_STATIC_LOGGING_CATEGORY(name,...)
virtual bool isCancelled() const =0
virtual ~ICancelToken()=default