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

◆ mutable_frame_ptr()

uint8_t * MayaFlux::Kakshya::WindowContainer::mutable_frame_ptr ( uint32_t  frame_index)

Mutable pointer into m_data[frame_index] for the processor to write into.

Parameters
frame_indexSlot index in [0, frame_capacity).
Returns
Pointer to the pixel buffer, or nullptr if out of range or unallocated.

Definition at line 105 of file WindowContainer.cpp.

106{
107 if (frame_index >= m_data.size())
108 return nullptr;
109
110 auto* v = std::get_if<std::vector<uint8_t>>(&m_data[frame_index]);
111 return (v && !v->empty()) ? v->data() : nullptr;
112}
std::vector< DataVariant > m_data

References m_data.