MayaFlux 0.5.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 39 of file VisionExecutor.cpp.

40{
41 if (m_slot_w == w && m_slot_h == h)
42 return;
43
44 const size_t n = static_cast<size_t>(w) * h;
45
46 for (size_t i = 0; i < k_slot_count; ++i)
47 m_slots[i] = std::vector<float>(n, 0.0F);
48
49 m_slot_w = w;
50 m_slot_h = h;
51}
uint32_t h
Definition InkPress.cpp:28
std::array< Kakshya::DataVariant, k_slot_count > m_slots

References h, k_slot_count, m_slot_h, m_slot_w, and m_slots.

Referenced by run().

+ Here is the caller graph for this function: