Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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

int QVideoTextureHelper::TextureDescription::nplanes

◆ sizeScale

SizeScale QVideoTextureHelper::TextureDescription::sizeScale[maxPlanes]

Definition at line 58 of file qvideotexturehelper_p.h.

Referenced by heightForPlane(), and widthForPlane().

◆ strideFactor

int QVideoTextureHelper::TextureDescription::strideFactor

Definition at line 55 of file qvideotexturehelper_p.h.

Referenced by strideForWidth().

◆ textureFormat

QRhiTexture::Format QVideoTextureHelper::TextureDescription::textureFormat[maxPlanes]

Definition at line 57 of file qvideotexturehelper_p.h.

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


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