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
int currentStreamIndex(TrackType trackType) const
static std::optional< TrackType > trackTypeFromMediaType(int mediaType)
bool setActiveTrack(TrackType type, int streamNumber)
int activeTrack(TrackType type) const
MediaDataHolder(AVDemuxerContextUPtr context, const std::shared_ptr< ICancelToken > &cancelToken)
VideoTransformation transformation() const
const QMediaMetaData & metaData() const
const QList< StreamInfo > & streamInfo(TrackType trackType) const
static Maybe create(const QUrl &url, QIODevice *stream, const QPlaybackOptions &options, const std::shared_ptr< ICancelToken > &cancelToken)
Definition qlist.h:82
static VideoTransformation streamTransformation(const AVStream *stream)
int writeQIODevice(void *opaque, AvioWriteBufferType buf, int buf_size)
static bool colorTransferSupportsHdr(const AVStream *stream)
static std::optional< TrackDuration > streamDuration(const AVStream &stream)
static void insertMediaData(QMediaMetaData &metaData, TrackType trackType, 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)
static std::optional< TrackPosition > streamStart(const AVStream &stream, const AVDemuxerContextUPtr &context)
Combined button and popup list for selecting options.
virtual bool isCancelled() const =0
virtual ~ICancelToken()=default