Loading...
Searching...
No Matches
GPUVideoDecoder.hpp
Processes and renders a video frame on the GPU.
Definition GPUVideoDecoder.hpp:161
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 bool isTopField(const AVFrame &frame) noexcept
Whether this frame carries the EVEN lines of its picture.
Definition GPUVideoDecoder.hpp:202
RenderState & state
RenderState corresponding to this RenderList.
Definition RenderList.hpp:274
float videoFieldMode(Video::Interlacing interlacing, Video::Deinterlace deinterlace, bool partnerValid) noexcept
Which mode score_tc should run, as a uniform value.
Definition GPUVideoDecoder.hpp:85
std::pair< QShader, QShader > makeShaders(const RenderState &v, QString vert, QString frag, int multiViewCount)
Get a pair of compiled vertex / fragment shaders from GLSL 4.5 sources.
Definition score-plugin-gfx/Gfx/Graph/Utils.cpp:1359
STL namespace.
Definition VideoInterface.hpp:29
Default decoder when we do not know what to render.
Definition GPUVideoDecoder.hpp:263
void exec(RenderList &, QRhiResourceUpdateBatch &res, AVFrame &frame) override
Decode and upload a video frame to the GPU.
Definition GPUVideoDecoder.hpp:281
std::pair< QShader, QShader > init(RenderList &r) override
Initialize a GPUVideoDecoder.
Definition GPUVideoDecoder.hpp:276
The upload geometry for one plane of a possibly-fielded frame.
Definition GPUVideoDecoder.hpp:221
Definition GPUVideoDecoder.hpp:100
int log2ChromaW
Horizontal chroma subsampling: 0=4:4:4, 1=4:2:2/4:2:0.
Definition GPUVideoDecoder.hpp:101
static PixelFormatInfo fromAVPixelFormat(AVPixelFormat fmt)
Build from an AVPixelFormat.
Definition GPUVideoDecoder.hpp:110
int log2ChromaH
Vertical chroma subsampling: 0=4:4:4/4:2:2, 1=4:2:0.
Definition GPUVideoDecoder.hpp:102
int bitDepth
Per-component bit depth (8, 10, 12, 16)
Definition GPUVideoDecoder.hpp:103
bool hasAlpha
Format includes an alpha channel.
Definition GPUVideoDecoder.hpp:105
int numPlanes
Number of planes (2 for semi-planar, 3+ for planar)
Definition GPUVideoDecoder.hpp:104
static PixelFormatInfo fromCodecParameters(AVPixelFormat swFormat, AVPixelFormat codecparFormat, int bitsPerRawSample)
Definition GPUVideoDecoder.hpp:127