MayaFlux 1.0.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 118 of file WindowContainer.cpp.

119{
120 if (frame_index >= m_data.size())
121 return nullptr;
122
123 auto* v = std::get_if<std::vector<uint8_t>>(&m_data[frame_index]);
124 return (v && !v->empty()) ? v->data() : nullptr;
125}
std::vector< DataVariant > m_data

References m_data.