Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qvideotexturehelper.cpp File Reference
#include "qvideotexturehelper_p.h"
#include "qvideoframe.h"
#include "qabstractvideobuffer_p.h"
#include <qpainter.h>
#include <qloggingcategory.h>
+ Include dependency graph for qvideotexturehelper.cpp:

Go to the source code of this file.

Classes

class  QVideoTextureHelper::QVideoFrameTexturesArray
 

Namespaces

namespace  QVideoTextureHelper
 

Functions

const TextureDescriptionQVideoTextureHelper::textureDescription (QVideoFrameFormat::PixelFormat format)
 
QString QVideoTextureHelper::vertexShaderFileName (const QVideoFrameFormat &format)
 
QString QVideoTextureHelper::fragmentShaderFileName (const QVideoFrameFormat &format, QRhiSwapChain::Format surfaceFormat)
 
static QMatrix4x4 QVideoTextureHelper::colorMatrix (const QVideoFrameFormat &format)
 
static float QVideoTextureHelper::convertPQFromLinear (float sig)
 
float QVideoTextureHelper::convertHLGFromLinear (float sig)
 
static float QVideoTextureHelper::convertSDRFromLinear (float sig)
 
void QVideoTextureHelper::updateUniformData (QByteArray *dst, const QVideoFrameFormat &format, const QVideoFrame &frame, const QMatrix4x4 &transform, float opacity, float maxNits)
 
static bool QVideoTextureHelper::updateTextureWithMap (QVideoFrame frame, QRhi *rhi, QRhiResourceUpdateBatch *rub, int plane, std::unique_ptr< QRhiTexture > &tex)
 
static std::unique_ptr< QRhiTextureQVideoTextureHelper::createTextureFromHandle (const QVideoFrame &frame, QRhi *rhi, int plane)
 
static std::unique_ptr< QVideoFrameTexturesQVideoTextureHelper::createTexturesFromHandles (const QVideoFrame &frame, QRhi *rhi)
 
std::unique_ptr< QVideoFrameTexturesQVideoTextureHelper::createTexturesFromMemory (const QVideoFrame &frame, QRhi *rhi, QRhiResourceUpdateBatch *rub, QVideoFrameTextures *old)
 
std::unique_ptr< QVideoFrameTexturesQVideoTextureHelper::createTextures (QVideoFrame &frame, QRhi *rhi, QRhiResourceUpdateBatch *rub, std::unique_ptr< QVideoFrameTextures > &&oldTextures)
 

Variables

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