Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QFFmpeg::TextureConverterBackend Class Reference

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>

Inheritance diagram for QFFmpeg::TextureConverterBackend:
Collaboration diagram for QFFmpeg::TextureConverterBackend:

Public Member Functions

 TextureConverterBackend (QRhi *rhi)
virtual ~TextureConverterBackend ()
virtual QVideoFrameTexturesUPtr createTextures (AVFrame *, QVideoFrameTexturesUPtr &)
virtual QVideoFrameTexturesHandlesUPtr createTextureHandles (AVFrame *, QVideoFrameTexturesHandlesUPtr)

Public Attributes

QRhirhi = 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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ TextureConverterBackend()

QFFmpeg::TextureConverterBackend::TextureConverterBackend ( QRhi * rhi)
inline

Definition at line 39 of file qffmpegtextureconverter_p.h.

References rhi.

◆ ~TextureConverterBackend()

TextureConverterBackend::~TextureConverterBackend ( )
virtualdefault

Member Function Documentation

◆ createTextureHandles()

virtual QVideoFrameTexturesHandlesUPtr QFFmpeg::TextureConverterBackend::createTextureHandles ( AVFrame * ,
QVideoFrameTexturesHandlesUPtr  )
inlinevirtual

Reimplemented in QFFmpeg::MediaCodecTextureConverter.

Definition at line 50 of file qffmpegtextureconverter_p.h.

◆ createTextures()

virtual QVideoFrameTexturesUPtr QFFmpeg::TextureConverterBackend::createTextures ( AVFrame * ,
QVideoFrameTexturesUPtr &  )
inlinevirtual

Reimplemented in QFFmpeg::MediaCodecTextureConverter.

Definition at line 43 of file qffmpegtextureconverter_p.h.

Member Data Documentation

◆ rhi

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().


The documentation for this class was generated from the following files: