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
qvideotexturehelper.cpp File Reference

(c7d539164afdceddbb269c365abfe75f9ccf4698)

#include "qvideotexturehelper_p.h"
#include <QtMultimedia/private/qvideoframetexturefromsource_p.h>
#include <QtMultimedia/private/qvideoframe_p.h>
#include <QtMultimedia/private/qvideoframeconverter_p.h>
#include <QtMultimedia/private/qmultimediautils_p.h>
#include <QtMultimedia/private/qtmm_alignment_support_p.h>
#include <QtGui/qpainter.h>
#include <QtCore/qfile.h>
#include <QtCore/qloggingcategory.h>
#include <QtCore/qoperatingsystemversion.h>
#include <optional>
Include dependency graph for qvideotexturehelper.cpp:

Go to the source code of this file.

Namespaces

namespace  QVideoTextureHelper

Functions

bool QVideoTextureHelper::forceGlTextureExternalOesIsSet ()
void QVideoTextureHelper::setForceGlTextureExternalOesIsSet (bool isSet)
static bool QVideoTextureHelper::isRhiTextureFormatSupported (const QRhi *rhi, QRhiTexture::Format formatformat)
QRhiTexture::Format QVideoTextureHelper::resolvedRhiTextureFormat (QRhiTexture::Format formatformat, QRhi *rhi)
 Returns a QRhiTexture::Format taking into account rhi capabilities and explicitly excluded formats using a chain of pre-defined fallback texture formats. If no valid fallback is determined, will return the format argument.
void QVideoTextureHelper::setExcludedRhiTextureFormats (QList< QRhiTexture::Format > formatsformats)
const TextureDescription * QVideoTextureHelper::textureDescription (QVideoFrameFormat::PixelFormat formatformat)
QString QVideoTextureHelper::vertexShaderFileName (const QVideoFrameFormat &formatformat)
QString QVideoTextureHelper::fragmentShaderFileName (const QVideoFrameFormat &formatformat, QRhi *rhi, QRhiSwapChain::Format surfaceFormat)
static QMatrix4x4 QVideoTextureHelper::colorConversionMatrix (const QVideoFrameFormat &formatformat)
static float QVideoTextureHelper::convertPQFromLinear (float sig)
float QVideoTextureHelper::convertHLGFromLinear (float sig)
static float QVideoTextureHelper::convertSDRFromLinear (float sig)
void QVideoTextureHelper::updateUniformData (QByteArray *dstdst, QRhi *rhi, const QVideoFrameFormat &formatformat, const QVideoFrame &frame, const QMatrix4x4 &transformtransform, float opacity, float maxNits)
QVideoFrameTexturesUPtr QVideoTextureHelper::createTexturesFromHandles (QVideoFrameTexturesHandlesUPtr handles, QRhi &rhi, QVideoFrameFormat::PixelFormat pixelFormat, QSize sizesize, QVideoFrame sourceFrame={})
 Creates plane textures from texture handles set by the specified rhi. The result owns the specified handles set; the QRhiTexture(s), exposed by the result refer to the owned handles set. If the specified size is empty or pixelFormat is invalid, null is returned.
static std::unique_ptr< QVideoFrameTexturesFromMemory > QVideoTextureHelper::tryRecycleMemory (QVideoFrameTexturesUPtr oldTextures)
static QVideoFrameTexturesUPtr QVideoTextureHelper::createTexturesFromMemory (QVideoFrame frame, QRhi &rhi, QRhiResourceUpdateBatch &rub, QVideoFrameTexturesUPtr oldTextures)
QVideoFrameTexturesUPtr QVideoTextureHelper::createTextures (const QVideoFrame &frame, QRhi &rhi, QRhiResourceUpdateBatch &rub, QVideoFrameTexturesUPtr &oldTextures)
 Creates plane textures from a video frame by the specified rhi. If possible, the function modifies 'oldTextures', which is the texture from the pool, and returns the specified one or a new one with any taken data.

Variables

static const TextureDescription QVideoTextureHelper::descriptions [QVideoFrameFormat::NPixelFormats]