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
qffmpeghwaccel_vaapi_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#ifndef QFFMPEGHWACCEL_VAAPI_P_H
4#define QFFMPEGHWACCEL_VAAPI_P_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include <QtFFmpegMediaPluginImpl/private/qffmpeghwaccel_p.h>
18
19#if QT_CONFIG(vaapi)
20
21#include <qshareddata.h>
22
23QT_BEGIN_NAMESPACE
24
25class QRhi;
26class QOpenGLContext;
27
28namespace QFFmpeg {
29
30class VAAPITextureConverter : public TextureConverterBackend
31{
32public:
33 VAAPITextureConverter(QRhi *rhi);
34 ~VAAPITextureConverter() override;
35
36 QVideoFrameTexturesHandlesUPtr
37 createTextureHandles(AVFrame *frame, QVideoFrameTexturesHandlesUPtr oldHandles) override;
38
39 Qt::HANDLE eglDisplay = nullptr;
40 QOpenGLContext *glContext = nullptr;
41 QFunctionPointer eglImageTargetTexture2D = nullptr;
42};
43} // namespace QFFmpeg
44
45QT_END_NAMESPACE
46
47#endif
48
49#endif
The QOpenGLFunctions class provides cross-platform access to the OpenGL ES 2.0 API.
#define DRM_FORMAT_MOD_INVALID
Definition linuxdmabuf.h:36
static const quint32 * fourccFromPixelFormat(const QVideoFrameFormat::PixelFormat format)
std::conditional_t< QT_FFMPEG_AVIO_WRITE_CONST, const uint8_t *, uint8_t * > AvioWriteBufferType
#define __has_include(x)
#define DRM_FORMAT_R16
#define DRM_FORMAT_R8
#define DRM_FORMAT_ABGR8888
#define DRM_FORMAT_GR88
#define PLANE
#define DRM_FORMAT_GR1616
#define LAYER
#define qCDebug(category,...)
#define Q_STATIC_LOGGING_CATEGORY(name,...)