![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qvideotexturehelper_p.h>
Classes | |
struct | SizeScale |
Public Types | |
enum | TextureFormat { UnknownFormat , Red_8 , RG_8 , RGBA_8 , BGRA_8 , Red_16 , RG_16 } |
enum class | FallbackPolicy { Disable , Enable } |
using | BytesRequired = int(*)(int stride, int height) |
Public Member Functions | |
QRhiTexture::Format | rhiTextureFormat (int plane, QRhi *rhi, FallbackPolicy policy=FallbackPolicy::Enable) const |
int | strideForWidth (int width) const |
int | bytesForSize (QSize s) const |
int | widthForPlane (int width, int plane) const |
int | heightForPlane (int height, int plane) const |
SizeScale | rhiSizeScale (int plane, QRhi *rhi) const |
QSize | rhiPlaneSize (QSize frameSize, int plane, QRhi *rhi) const |
bool | hasTextureFormat (TextureFormat format) const |
Public Attributes | |
int | nplanes |
int | strideFactor |
BytesRequired | bytesRequired |
TextureFormat | textureFormat [maxPlanes] |
SizeScale | sizeScale [maxPlanes] |
Static Public Attributes | |
static constexpr int | maxPlanes = 3 |
Definition at line 35 of file qvideotexturehelper_p.h.
using QVideoTextureHelper::TextureDescription::BytesRequired = int(*)(int stride, int height) |
Definition at line 42 of file qvideotexturehelper_p.h.
|
strong |
Enumerator | |
---|---|
Disable | |
Enable |
Definition at line 54 of file qvideotexturehelper_p.h.
Enumerator | |
---|---|
UnknownFormat | |
Red_8 | |
RG_8 | |
RGBA_8 | |
BGRA_8 | |
Red_16 | |
RG_16 |
Definition at line 44 of file qvideotexturehelper_p.h.
|
inline |
Definition at line 64 of file qvideotexturehelper_p.h.
|
inline |
Definition at line 103 of file qvideotexturehelper_p.h.
|
inline |
Definition at line 70 of file qvideotexturehelper_p.h.
|
inline |
Definition at line 97 of file qvideotexturehelper_p.h.
|
inline |
Definition at line 80 of file qvideotexturehelper_p.h.
QRhiTexture::Format QVideoTextureHelper::TextureDescription::rhiTextureFormat | ( | int | plane, |
QRhi * | rhi, | ||
FallbackPolicy | policy = FallbackPolicy::Enable ) const |
Definition at line 247 of file qvideotexturehelper.cpp.
|
inline |
Definition at line 63 of file qvideotexturehelper_p.h.
|
inline |
Definition at line 65 of file qvideotexturehelper_p.h.
BytesRequired QVideoTextureHelper::TextureDescription::bytesRequired |
Definition at line 112 of file qvideotexturehelper_p.h.
|
staticconstexpr |
Definition at line 37 of file qvideotexturehelper_p.h.
int QVideoTextureHelper::TextureDescription::nplanes |
Definition at line 110 of file qvideotexturehelper_p.h.
Definition at line 114 of file qvideotexturehelper_p.h.
int QVideoTextureHelper::TextureDescription::strideFactor |
Definition at line 111 of file qvideotexturehelper_p.h.
TextureFormat QVideoTextureHelper::TextureDescription::textureFormat[maxPlanes] |
Definition at line 113 of file qvideotexturehelper_p.h.