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

◆ transform_time_reverse() [2/2]

template<OperationReadyData DataType>
DataType MayaFlux::Yantra::transform_time_reverse ( DataType &  input,
std::vector< std::vector< double > > &  working_buffer 
)

Time reversal transformation using C++20 ranges (OUT-OF-PLACE)

Template Parameters
DataTypeOperationReadyData type
Parameters
inputInput data - will NOT be modified
working_bufferBuffer for operations (will be resized if needed)
Returns
Time-reversed data

Definition at line 87 of file TemporalHelper.hpp.

88{
89 auto [target_data, structure_info] = OperationHelper::setup_operation_buffer(input, working_buffer);
90
91 for (auto& span : target_data) {
92 std::ranges::reverse(span);
93 }
94
95 return OperationHelper::reconstruct_from_double<DataType>(working_buffer, structure_info);
96}

References MayaFlux::Yantra::OperationHelper::setup_operation_buffer().

+ Here is the call graph for this function: