2 #include <Gfx/Graph/NodeRenderer.hpp>
3 #include <Gfx/Graph/VideoNode.hpp>
4 #include <Video/VideoInterface.hpp>
25 void createGpuDecoder();
27 void checkFormat(
RenderList& r, AVPixelFormat fmt,
int w,
int h);
29 void init(
RenderList& renderer, QRhiResourceUpdateBatch& res)
override;
30 void runRenderPass(
RenderList&, QRhiCommandBuffer& commands,
Edge& edge)
override;
32 void update(
RenderList& renderer, QRhiResourceUpdateBatch& res)
override;
37 void displayFrame(AVFrame& frame,
RenderList& renderer, QRhiResourceUpdateBatch& res);
44 QRhiBuffer* m_meshBuffer{};
45 QRhiBuffer* m_idxBuffer{};
46 QRhiBuffer* m_processUBO{};
47 QRhiBuffer* m_materialUBO{};
51 float scale_w{}, scale_h{};
52 float tex_w{}, tex_h{};
55 std::unique_ptr<GPUVideoDecoder> m_gpu;
60 std::shared_ptr<RefcountedFrame> m_currentFrame{};
61 int64_t m_currentFrameIdx{-1};
62 bool m_recomputeScale{};
Renderer for a given node.
Definition: NodeRenderer.hpp:11
List of nodes to be rendered to an output.
Definition: RenderList.hpp:19
Definition: VideoNode.hpp:71
Definition: VideoNodeRenderer.hpp:11
Graphics rendering pipeline for ossia score.
Definition: Filter/PreviewWidget.hpp:12
ScaleMode
How to resize a texture to adapt it to a viewport.
Definition: Scale.hpp:10
Connection between two score::gfx::Port.
Definition: score-plugin-gfx/Gfx/Graph/Utils.hpp:66
Port of a score::gfx::Node.
Definition: score-plugin-gfx/Gfx/Graph/Utils.hpp:48
Useful abstraction for storing all the data related to a render target.
Definition: score-plugin-gfx/Gfx/Graph/Utils.hpp:111
Definition: VideoNode.hpp:28