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

◆ get_frames_as()

template<typename T >
template<DataVariantElement ValueT>
void MayaFlux::Kakshya::NDDataContainer< T >::get_frames_as ( std::vector< ValueT > &  output,
uint64_t  start_frame,
uint64_t  num_frames 
) const
inline

Get multiple frames efficiently as a typed span.

Convenience wrapper over get_frames() for callers that know the element type statically but hold the output buffer as a plain vector rather than a typed span. Deduces ValueT from the vector element type; no visitor, no type query needed at the call site.

Template Parameters
ValueTElement type. Must satisfy DataVariantElement and match the container's native element type. The impl silently no-ops or errors on mismatch depending on the container.
Parameters
outputDestination vector. Resized to num_frames * frame_size by the caller before passing; content is overwritten.
start_frameFirst frame index.
num_framesNumber of frames to retrieve.

Definition at line 345 of file NDimensionalContainer.hpp.

346 {
347 get_frames_impl(output.data(), output.size(), start_frame, num_frames, typeid(ValueT));
348 }
virtual void get_frames_impl(void *output, size_t count, uint64_t start_frame, uint64_t num_frames, const std::type_info &type) const =0
Implementation-specific method to retrieve multiple frames.