Loading...
Searching...
No Matches
Gfx::LibavEncoderNode Struct Reference
Inheritance diagram for Gfx::LibavEncoderNode:
score::gfx::OutputNode score::gfx::Node

Public Member Functions

 LibavEncoderNode (const LibavOutputSettings &, LibavEncoder &encoder, int stream)
 
void startRendering () override
 
void onRendererChange () override
 
void render () override
 
bool canRender () const override
 
void stopRendering () override
 
void setRenderer (std::shared_ptr< score::gfx::RenderList > r) override
 
score::gfx::RenderListrenderer () const override
 
void createOutput (score::gfx::GraphicsApi graphicsApi, std::function< void()> onReady, std::function< void()> onUpdate, std::function< void()> onResize) override
 
void destroyOutput () override
 
std::shared_ptr< score::gfx::RenderStaterenderState () const override
 
score::gfx::OutputNodeRenderercreateRenderer (score::gfx::RenderList &r) const noexcept override
 Create a renderer in a given context for this node.
 
Configuration configuration () const noexcept override
 
- Public Member Functions inherited from score::gfx::OutputNode
virtual void updateGraphicsAPI (GraphicsApi)
 
- Public Member Functions inherited from score::gfx::Node
 Node (const Node &)=delete
 
 Node (Node &&)=delete
 
Nodeoperator= (const Node &)=delete
 
Nodeoperator= (Node &&)=delete
 
virtual void renderedNodesChanged ()
 Whenever render nodes are added / removed.
 
virtual void process (Message &&msg)
 Process a message from the execution engine.
 
virtual void update ()
 

Public Attributes

LibavEncoderencoder
 
int stream {}
 
std::weak_ptr< score::gfx::RenderListm_renderer {}
 
QRhiTexture * m_texture {}
 
QRhiTextureRenderTarget * m_renderTarget {}
 
std::function< void()> m_update
 
std::shared_ptr< score::gfx::RenderStatem_renderState {}
 
bool m_hasSender {}
 
LibavOutputSettings m_settings
 
QRhiReadbackResult m_readback
 
- Public Attributes inherited from score::gfx::Node
std::vector< Port * > input
 Input ports of that node.
 
ossia::small_pod_vector< Port *, 1 > output
 Output ports of that node.
 
ossia::flat_map< RenderList *, score::gfx::NodeRenderer * > renderedNodes
 Map associating each RenderList to a Renderer for this model.
 
int32_t id = -1
 
bool addedToGraph {}
 

Member Function Documentation

◆ canRender()

bool Gfx::LibavEncoderNode::canRender ( ) const
overridevirtual

◆ configuration()

score::gfx::OutputNode::Configuration Gfx::LibavEncoderNode::configuration ( ) const
overridevirtualnoexcept

◆ createOutput()

void Gfx::LibavEncoderNode::createOutput ( score::gfx::GraphicsApi  graphicsApi,
std::function< void()>  onReady,
std::function< void()>  onUpdate,
std::function< void()>  onResize 
)
overridevirtual

◆ createRenderer()

score::gfx::OutputNodeRenderer * Gfx::LibavEncoderNode::createRenderer ( score::gfx::RenderList r) const
overridevirtualnoexcept

Create a renderer in a given context for this node.

Implements score::gfx::OutputNode.

◆ destroyOutput()

void Gfx::LibavEncoderNode::destroyOutput ( )
overridevirtual

◆ onRendererChange()

void Gfx::LibavEncoderNode::onRendererChange ( )
overridevirtual

◆ render()

void Gfx::LibavEncoderNode::render ( )
overridevirtual

◆ renderer()

score::gfx::RenderList * Gfx::LibavEncoderNode::renderer ( ) const
overridevirtual

◆ renderState()

std::shared_ptr< score::gfx::RenderState > Gfx::LibavEncoderNode::renderState ( ) const
overridevirtual

◆ setRenderer()

void Gfx::LibavEncoderNode::setRenderer ( std::shared_ptr< score::gfx::RenderList r)
overridevirtual

◆ startRendering()

void Gfx::LibavEncoderNode::startRendering ( )
overridevirtual

◆ stopRendering()

void Gfx::LibavEncoderNode::stopRendering ( )
overridevirtual

The documentation for this struct was generated from the following files: