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

◆ get_frame_as()

template<DataVariantElement T>
auto MayaFlux::Kakshya::NDDataContainer::get_frame_as ( uint64_t  frame_index) const -> std::span<const T>
inline

Get a single frame of data as a typed span.

Template Parameters
TElement type to interpret the frame data as
Parameters
frame_indexIndex of the frame (in the temporal dimension)
Returns
Span of data representing one complete frame, interpreted as type T

Definition at line 313 of file NDimensionalContainer.hpp.

314 {
315 return get_frame(frame_index).template as<T>();
316 }
auto get_frame(uint64_t frame_index) const -> FrameView
Get a single frame of data efficiently.