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

◆ ensure_slots()

void MayaFlux::Kinesis::Vision::VisionExecutor::ensure_slots ( uint32_t  w,
uint32_t  h 
)
private

Ensure all slots are sized to n_pixels floats.

No-op when geometry matches. Resizes and zero-fills all slots otherwise.

Definition at line 97 of file VisionExecutor.cpp.

98{
99 if (m_slot_w == w && m_slot_h == h)
100 return;
101
102 reset();
103 const size_t n = static_cast<size_t>(w) * h;
104
105 for (size_t i = 0; i < k_slot_count; ++i)
106 m_slots[i] = std::vector<float>(n, 0.0F);
107
108 m_slot_w = w;
109 m_slot_h = h;
110}
uint32_t h
Definition InkPress.cpp:29
std::array< Kakshya::DataVariant, k_slot_count > m_slots
void reset()
Clear stored inter-frame state.

References h, k_slot_count, m_slot_h, m_slot_w, m_slots, and reset().

Referenced by run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: