Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QVideoTextureHelper::TextureDescription Struct Reference

#include <qvideotexturehelper_p.h>

+ Collaboration diagram for QVideoTextureHelper::TextureDescription:

Classes

struct  SizeScale
 

Public Types

using BytesRequired = int(*)(int stride, int height)
 

Public Member Functions

int strideForWidth (int width) const
 
int bytesForSize (QSize s) const
 
int widthForPlane (int width, int plane) const
 
int heightForPlane (int height, int plane) const
 

Public Attributes

int nplanes
 
int strideFactor
 
BytesRequired bytesRequired
 
QRhiTexture::Format textureFormat [maxPlanes]
 
SizeScale sizeScale [maxPlanes]
 

Static Public Attributes

static constexpr int maxPlanes = 3
 

Detailed Description

Definition at line 32 of file qvideotexturehelper_p.h.

Member Typedef Documentation

◆ BytesRequired

Member Function Documentation

◆ bytesForSize()

int QVideoTextureHelper::TextureDescription::bytesForSize ( QSize  s) const
inline

Definition at line 42 of file qvideotexturehelper_p.h.

References bytesRequired, and strideForWidth().

Referenced by QVideoFrame::QVideoFrame().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ heightForPlane()

int QVideoTextureHelper::TextureDescription::heightForPlane ( int  height,
int  plane 
) const
inline

Definition at line 48 of file qvideotexturehelper_p.h.

References nplanes, sizeScale, and QVideoTextureHelper::TextureDescription::SizeScale::y.

Referenced by Q_LOGGING_CATEGORY(), and AVFVideoBuffer::textureHandle().

+ Here is the caller graph for this function:

◆ strideForWidth()

int QVideoTextureHelper::TextureDescription::strideForWidth ( int  width) const
inline

Definition at line 41 of file qvideotexturehelper_p.h.

References strideFactor.

Referenced by QVideoFrame::QVideoFrame(), bytesForSize(), and QWasmVideoOutput::videoFrameCallback().

+ Here is the caller graph for this function:

◆ widthForPlane()

int QVideoTextureHelper::TextureDescription::widthForPlane ( int  width,
int  plane 
) const
inline

Definition at line 43 of file qvideotexturehelper_p.h.

References nplanes, sizeScale, and QVideoTextureHelper::TextureDescription::SizeScale::x.

Referenced by Q_LOGGING_CATEGORY(), and AVFVideoBuffer::textureHandle().

+ Here is the caller graph for this function:

Member Data Documentation

◆ bytesRequired

BytesRequired QVideoTextureHelper::TextureDescription::bytesRequired

Definition at line 56 of file qvideotexturehelper_p.h.

Referenced by bytesForSize().

◆ maxPlanes

constexpr int QVideoTextureHelper::TextureDescription::maxPlanes = 3
staticconstexpr

Definition at line 34 of file qvideotexturehelper_p.h.

◆ nplanes

◆ sizeScale

SizeScale QVideoTextureHelper::TextureDescription::sizeScale[maxPlanes]

◆ strideFactor

int QVideoTextureHelper::TextureDescription::strideFactor

Definition at line 55 of file qvideotexturehelper_p.h.

Referenced by strideForWidth().

◆ textureFormat


The documentation for this struct was generated from the following file: