GPUVideoDecoder.hpp
Processes and renders a video frame on the GPU.
Definition: GPUVideoDecoder.hpp:43
virtual void exec(RenderList &, QRhiResourceUpdateBatch &res, AVFrame &frame)=0
Decode and upload a video frame to the GPU.
static QRhiTextureSubresourceUploadDescription createTextureUpload(uint8_t *pixels, int w, int h, int bytesPerPixel, int stride)
Utility method to create a QRhiTextureSubresourceUploadDescription.
Definition: GPUVideoDecoder.cpp:22
virtual std::pair< QShader, QShader > init(RenderList &r)=0
Initialize a GPUVideoDecoder.
void release(RenderList &)
This method will release all the created samplers and textures.
Definition: GPUVideoDecoder.cpp:10
RenderState & state
RenderState corresponding to this RenderList.
Definition: RenderList.hpp:89
std::pair< QShader, QShader > makeShaders(const RenderState &v, QString vert, QString frag)
Get a pair of compiled vertex / fragment shaders from GLSL 4.5 sources.
Definition: score-plugin-gfx/Gfx/Graph/Utils.cpp:342
Default decoder when we do not know what to render.
Definition: GPUVideoDecoder.hpp:87
void exec(RenderList &, QRhiResourceUpdateBatch &res, AVFrame &frame) override
Decode and upload a video frame to the GPU.
Definition: GPUVideoDecoder.hpp:101
std::pair< QShader, QShader > init(RenderList &r) override
Initialize a GPUVideoDecoder.
Definition: GPUVideoDecoder.hpp:96
Stores a sampler and the texture currently associated with it.
Definition: score-plugin-gfx/Gfx/Graph/Utils.hpp:25