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

◆ get_frames_as()

template<DataVariantElement T>
void MayaFlux::Kakshya::NDDataContainer::get_frames_as ( std::vector< T > &  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 T from the vector element type; no visitor, no type query needed at the call site.

Template Parameters
TElement 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 335 of file NDimensionalContainer.hpp.

336 {
337 get_frames_impl(output.data(), output.size(), start_frame, num_frames, typeid(T));
338 }
std::shared_ptr< Core::VKImage > output
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.

References output.