717{
718 std::span<const uint8_t> result;
722 return;
723
726 return;
727
729 const uint64_t
offset = frame_index * row_elems;
731 return;
732
733 result = std::span<const uint8_t>(
pixels->data() +
offset, row_elems);
734 });
735
736 return result;
737}
const std::vector< float > * pixels
Memory::Seqlock m_data_lock
std::vector< DataVariant > m_processed_data
ContainerDataStructure m_structure
bool seqlock_read_void(const Seqlock &lock, uint32_t max_attempts, Fn &&fn)
Invoke a void read functor under a Seqlock with a bounded retry count.
static uint64_t get_height(const std::vector< DataDimension > &dimensions)
Extract height from image/video dimensions.
static uint64_t get_channel_count(const std::vector< DataDimension > &dimensions)
Extract channel count from dimensions.
static uint64_t get_width(const std::vector< DataDimension > &dimensions)
Extract width from image/video dimensions.