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

◆ get_frame_as()

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

Get a single frame of data as a typed span.

Template Parameters
ValueTElement 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 ValueT

Definition at line 323 of file NDimensionalContainer.hpp.

324 {
325 return get_frame(frame_index).template as<ValueT>();
326 }
auto get_frame(uint64_t frame_index) const -> FrameView
Get a single frame of data efficiently.