![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
The base class for platform-specific implementations of TextureConverter One of two virtual methods, createTextures and createTextureHandles, must be overridden. If the implementation operates with QRhiTexture under the hood, overriding of createTextures is prefferable, otherwise expose texture handles of native textures by createTextureHandles. More...
#include <qffmpegtextureconverter_p.h>
Public Member Functions | |
TextureConverterBackend (QRhi *rhi) | |
virtual | ~TextureConverterBackend () |
virtual QVideoFrameTexturesUPtr | createTextures (AVFrame *, QVideoFrameTexturesUPtr &) |
virtual QVideoFrameTexturesHandlesUPtr | createTextureHandles (AVFrame *, QVideoFrameTexturesHandlesUPtr) |
Public Attributes | |
QRhi * | rhi = nullptr |
Points to the matching QRhi. If the constructor, createTextures, or createTextureHandles get failed without chances for recovery, it may set the pointer to nullptr, which will invalidate the parent TextureConverter, and textures creation won't be invoked anymore. |
The base class for platform-specific implementations of TextureConverter One of two virtual methods, createTextures and createTextureHandles, must be overridden. If the implementation operates with QRhiTexture under the hood, overriding of createTextures is prefferable, otherwise expose texture handles of native textures by createTextureHandles.
Definition at line 36 of file qffmpegtextureconverter_p.h.
|
inline |
Definition at line 39 of file qffmpegtextureconverter_p.h.
References rhi.
|
virtualdefault |
|
inlinevirtual |
Reimplemented in QFFmpeg::MediaCodecTextureConverter.
Definition at line 50 of file qffmpegtextureconverter_p.h.
|
inlinevirtual |
Reimplemented in QFFmpeg::MediaCodecTextureConverter.
Definition at line 43 of file qffmpegtextureconverter_p.h.
QRhi* QFFmpeg::TextureConverterBackend::rhi = nullptr |
Points to the matching QRhi. If the constructor, createTextures, or createTextureHandles get failed without chances for recovery, it may set the pointer to nullptr, which will invalidate the parent TextureConverter, and textures creation won't be invoked anymore.
Definition at line 61 of file qffmpegtextureconverter_p.h.
Referenced by TextureConverterBackend().