score::gfx::HAPDefaultDecoder Struct Reference

Decodes HAP basic format. More...

Inheritance diagram for score::gfx::HAPDefaultDecoder:
score::gfx::HAPDecoder score::gfx::GPUVideoDecoder

Detailed Description

Decodes HAP basic format.

Public Member Functions

 HAPDefaultDecoder (QRhiTexture::Format fmt, Video::ImageFormat &d, QString f="")
 
std::pair< QShader, QShader > init (RenderList &r) override
 Initialize a GPUVideoDecoder. More...
 
- Public Member Functions inherited from score::gfx::HAPDecoder
void exec (RenderList &, QRhiResourceUpdateBatch &res, AVFrame &frame) override
 Decode and upload a video frame to the GPU.
 
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.
 

Public Attributes

QRhiTexture::Format format
 
Video::ImageFormatdecoder
 
QString filter
 
- 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< Samplersamplers
 

Static Public Attributes

static const QString fragment
 
static const QString ycocg_filter = QStringLiteral("processed = processYCoCg(processed);\n")
 
- Static Public Attributes inherited from score::gfx::HAPDecoder
static constexpr int buffer_size = 1024 * 1024 * 16
 

Additional Inherited Members

- 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
 

Member Function Documentation

◆ init()

std::pair< QShader, QShader > score::gfx::HAPDefaultDecoder::init ( RenderList r)
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: