MayaFlux 0.5.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 113 of file WindowContainer.cpp.

114{
115 if (frame_index >= m_data.size())
116 return nullptr;
117
118 auto* v = std::get_if<std::vector<uint8_t>>(&m_data[frame_index]);
119 return (v && !v->empty()) ? v->data() : nullptr;
120}
std::vector< DataVariant > m_data

References m_data.