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

◆ convert_data()

template<typename From , typename To >
std::span< To > MayaFlux::Kakshya::convert_data ( std::span< From >  source,
std::vector< To > &  storage,
Utils::ComplexConversionStrategy  strategy = Utils::ComplexConversionStrategy::MAGNITUDE 
)

Convert a span of one data type to another (with type conversion).

Template Parameters
FromSource type.
ToDestination type.
Parameters
sourceSource data span.
destDestination data span.
Returns
Span of converted data.

Definition at line 337 of file DataUtils.hpp.

340{
341 return DataConverter<From, To>::convert(source, storage, strategy);
342}

References MayaFlux::Kakshya::DataConverter< From, To, Enable >::convert().

Referenced by convert_complex(), convert_variant(), and extract_from_variant().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: