Public Member Functions |
Static Public Member Functions |
Public Attributes |
Static Public Attributes |
List of all members
score::gfx::HAPMDecoder Struct Reference
Decodes HAP-M (HAP + alpha channel) More...
Inheritance diagram for score::gfx::HAPMDecoder:
Detailed Description
Decodes HAP-M (HAP + alpha channel)
Public Member Functions | |
HAPMDecoder (Video::ImageFormat &d, QString f="") | |
std::pair< QShader, QShader > | init (RenderList &r) override |
Initialize a GPUVideoDecoder. More... | |
void | exec (RenderList &, QRhiResourceUpdateBatch &res, AVFrame &frame) override |
Decode and upload a video frame to the GPU. | |
Public Member Functions inherited from score::gfx::HAPDecoder | |
void | setPixels_noEncoding (QRhiResourceUpdateBatch &res, const uint8_t *data_start, std::size_t size) |
void | setPixels_snappy (QRhiResourceUpdateBatch &res, const uint8_t *data_start, std::size_t size) |
Public Member Functions inherited from score::gfx::GPUVideoDecoder | |
void | release (RenderList &) |
This method will release all the created samplers and textures. | |
Static Public Member Functions | |
static void | setPixels (QRhiResourceUpdateBatch &res, QRhiTexture *tex, const uint8_t *ycocg_start, std::size_t ycocg_size) |
Static Public Member Functions inherited from score::gfx::GPUVideoDecoder | |
static QRhiTextureSubresourceUploadDescription | createTextureUpload (uint8_t *pixels, int w, int h, int bytesPerPixel, int stride) |
Utility method to create a QRhiTextureSubresourceUploadDescription. More... | |
static QString | vertexShader () noexcept |
Public Attributes | |
Video::ImageFormat & | decoder |
QString | filter |
std::unique_ptr< char[]> | m_alphaBuffer = std::make_unique<char[]>(1024 * 1024 * 16) |
Public Attributes inherited from score::gfx::HAPDecoder | |
std::unique_ptr< char[]> | m_buffer = std::make_unique<char[]>(1024 * 1024 * 16) |
Public Attributes inherited from score::gfx::GPUVideoDecoder | |
std::vector< Sampler > | samplers |
Static Public Attributes | |
static const QString | fragment |
Static Public Attributes inherited from score::gfx::HAPDecoder | |
static constexpr int | buffer_size = 1024 * 1024 * 16 |
Member Function Documentation
◆ init()
|
overridevirtual |
Initialize a GPUVideoDecoder.
This method must :
- Create samplers and textures for the video format.
- Create shaders that will render the data put into these textures.
It returns a {vertex, fragment} shader pair.
Implements score::gfx::GPUVideoDecoder.
The documentation for this struct was generated from the following files:
- HAP.hpp
- HAP.cpp