Loading...
Searching...
No Matches
GPUVideoDecoder.hpp
Processes and renders a video frame on the GPU.
Definition GPUVideoDecoder.hpp:90
virtual void exec(RenderList &, QRhiResourceUpdateBatch &res, AVFrame &frame)=0
Decode and upload a video frame to the GPU.
virtual std::pair< QShader, QShader > init(RenderList &r)=0
Initialize a GPUVideoDecoder.
static QRhiTextureSubresourceUploadDescription createTextureUpload(uint8_t *pixels, int w, int h, int bytesPerPixel, int stride)
Utility method to create a QRhiTextureSubresourceUploadDescription.
Definition GPUVideoDecoder.cpp:22
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:94
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:395
STL namespace.
Default decoder when we do not know what to render.
Definition GPUVideoDecoder.hpp:144
void exec(RenderList &, QRhiResourceUpdateBatch &res, AVFrame &frame) override
Decode and upload a video frame to the GPU.
Definition GPUVideoDecoder.hpp:158
std::pair< QShader, QShader > init(RenderList &r) override
Initialize a GPUVideoDecoder.
Definition GPUVideoDecoder.hpp:153
Definition GPUVideoDecoder.hpp:29
int log2ChromaW
Horizontal chroma subsampling: 0=4:4:4, 1=4:2:2/4:2:0.
Definition GPUVideoDecoder.hpp:30
static PixelFormatInfo fromAVPixelFormat(AVPixelFormat fmt)
Build from an AVPixelFormat.
Definition GPUVideoDecoder.hpp:39
int log2ChromaH
Vertical chroma subsampling: 0=4:4:4/4:2:2, 1=4:2:0.
Definition GPUVideoDecoder.hpp:31
int bitDepth
Per-component bit depth (8, 10, 12, 16)
Definition GPUVideoDecoder.hpp:32
bool hasAlpha
Format includes an alpha channel.
Definition GPUVideoDecoder.hpp:34
int numPlanes
Number of planes (2 for semi-planar, 3+ for planar)
Definition GPUVideoDecoder.hpp:33
static PixelFormatInfo fromCodecParameters(AVPixelFormat swFormat, AVPixelFormat codecparFormat, int bitsPerRawSample)
Definition GPUVideoDecoder.hpp:56
Stores a sampler and the texture currently associated with it.
Definition score-plugin-gfx/Gfx/Graph/Utils.hpp:26