Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qffmpeghwaccel_cuda_p.h
Go to the documentation of this file.
1
// Copyright (C) 2026 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_CUDA_P_H
4
#
define
QFFMPEGHWACCEL_CUDA_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
/
qffmpegtextureconverter_p
.
h
>
18
19
#
include
<
QtMultimedia
/
private
/
qvideotexturehelper_p
.
h
>
20
21
#
include
<
memory
>
22
23
QT_BEGIN_NAMESPACE
24
25
class
QRhi;
26
27
namespace
QFFmpeg
{
28
29
// HW-texture converter for AV_PIX_FMT_CUDA frames: copies decoded planes from CUDA device
30
// memory into a GL- or Vulkan-registered texture (GPU-to-GPU memory copy, not zero-copy).
31
// Zero-copy isn't possible here: NVDEC's decode output is pitch-linear device memory, which
32
// isn't a format GL/Vulkan can sample as a texture without a copy/retiling step.
33
//
34
// NB: The Vulkan path requires the CUDA and QRhi Vulkan devices to be the same GPU.
35
//
36
struct
CUDATextureConverterFactory
37
{
38
static
std
::
shared_ptr
<
TextureConverterBackend
>
create
(QRhi *rhi);
39
};
40
41
}
// namespace QFFmpeg
42
43
QT_END_NAMESPACE
44
45
#
endif
QFFmpeg
Definition
qandroidcacertificates.cpp:26
Q_STATIC_LOGGING_CATEGORY
QT_BEGIN_NAMESPACE Q_STATIC_LOGGING_CATEGORY(lcSynthesizedIterableAccess, "qt.iterable.synthesized", QtWarningMsg)
QFFmpeg::CUDATextureConverterFactory
Definition
qffmpeghwaccel_cuda_p.h:37
QFFmpeg::CUDATextureConverterFactory::create
static std::shared_ptr< TextureConverterBackend > create(QRhi *rhi)
Definition
qffmpeghwaccel_cuda.cpp:1069
qtmultimedia
src
plugins
multimedia
ffmpeg
qffmpeghwaccel_cuda_p.h
Generated on
for Qt by
1.18.0