score::gfx::UYVY422Decoder Struct Reference
Decodes UYVY422 video, mostly used for NDI. More...
Inheritance diagram for score::gfx::UYVY422Decoder:
Detailed Description
Decodes UYVY422 video, mostly used for NDI.
The code and matrix coefficients are adapted from QtMultimedia.
Public Member Functions | |
UYVY422Decoder (Video::ImageFormat &d) | |
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::GPUVideoDecoder | |
void | release (RenderList &) |
This method will release all the created samplers and textures. | |
Public Attributes | |
Video::ImageFormat & | decoder |
Public Attributes inherited from score::gfx::GPUVideoDecoder | |
std::vector< Sampler > | samplers |
Static Public Attributes | |
static constexpr const auto | filter |
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()
|
inlineoverridevirtual |
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 file: