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

◆ retire()

void MayaFlux::Portal::Forma::FormaTarget::retire ( ) const

Release this target: retire a whole buffer, or remove a slice.

A buffer left with no slice is retired with the last one.

Definition at line 113 of file Target.cpp.

114{
115 if (!m_state)
116 return;
117
118 if (m_state->slice != 0) {
119 m_state->buffer->remove_slice(m_state->slice);
120 if (m_state->buffer->slice_count() == 0)
121 m_state->buffer->mark_for_removal();
122 return;
123 }
124 m_state->buffer->mark_for_removal();
125}
std::shared_ptr< State > m_state
Definition Target.hpp:126

References m_state.