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

◆ validate_input()

template<ComputeData InputType = Kakshya::DataVariant, ComputeData OutputType = InputType>
bool MayaFlux::Yantra::Transformer< InputType, OutputType >::validate_input ( const input_type & ) const
inlineoverrideprotectedvirtual

Validates if the input data meets the operation's requirements.

Parameters
inputData to validate
Returns
True if input is valid, false otherwise

Reimplemented from MayaFlux::Yantra::ComputeOperation< Kakshya::DataVariant, Kakshya::DataVariant >.

Definition at line 165 of file Transformer.hpp.

166 {
167 if constexpr (RequiresContainer<InputType>) {
168 const auto source = input.get_container();
169 if (!source) {
170 return false;
171 }
174 } else {
177 }
178 }
static NumericChannels extract_numeric_data(const T &compute_data)
extract numeric data from single-variant types
bool validate_multi_channel_data(const std::vector< std::span< double > > &channels) const
Base of every transformer family.

References MayaFlux::Yantra::Datum< T >::data, MayaFlux::Yantra::OperationHelper::extract_numeric_data(), MayaFlux::Yantra::Datum< T >::get_container(), and validate_multi_channel_data().

Referenced by operation_function().

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