MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ setup_processors()

void MayaFlux::Buffers::TextureBuffer::setup_processors ( ProcessingToken  token)
overridevirtual

Setup processors with a processing token.

Parameters
tokenProcessingToken to assign.

For VKBuffer this is a no-op as processors get the token. This is meant for derived classes that need to setup default processors

Reimplemented from MayaFlux::Buffers::VKBuffer.

Reimplemented in MayaFlux::Buffers::VideoContainerBuffer.

Definition at line 45 of file TextureBuffer.cpp.

46{
47 auto self = std::dynamic_pointer_cast<TextureBuffer>(shared_from_this());
48
49 m_texture_processor = std::make_shared<TextureProcessor>();
50 m_texture_processor->set_processing_token(token);
51
53
54 auto chain = get_processing_chain();
55 if (!chain) {
56 chain = std::make_shared<BufferProcessingChain>();
58 }
59 chain->set_preferred_token(token);
60
62 "TextureBuffer setup_processors: TextureProcessor will be attached on first registration");
63}
#define MF_DEBUG(comp, ctx,...)
std::shared_ptr< TextureProcessor > m_texture_processor
std::shared_ptr< Buffers::BufferProcessingChain > get_processing_chain() override
Access the buffer's processing chain.
Definition VKBuffer.cpp:274
void set_default_processor(const std::shared_ptr< BufferProcessor > &processor) override
Set the buffer's default processor.
Definition VKBuffer.cpp:258
void set_processing_chain(const std::shared_ptr< BufferProcessingChain > &chain, bool force=false) override
Replace the buffer's processing chain.
Definition VKBuffer.cpp:279
@ Init
Engine/subsystem initialization.
@ Buffers
Buffers, Managers, processors and processing chains.

References MayaFlux::Journal::Buffers, MayaFlux::Buffers::VKBuffer::get_processing_chain(), MayaFlux::Journal::Init, m_texture_processor, MF_DEBUG, MayaFlux::Buffers::VKBuffer::set_default_processor(), and MayaFlux::Buffers::VKBuffer::set_processing_chain().

+ Here is the call graph for this function: