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

◆ TemporalTransformer() [2/2]

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = InputType>
MayaFlux::Yantra::TemporalTransformer< InputType, OutputType >::TemporalTransformer ( const TemporalTransformerConfig &  config)
inlineexplicit

Construct and configure a temporal transformer in one step.

Parameters
configInitial transformation settings.

Definition at line 57 of file TemporalTransformer.hpp.

58 : TemporalTransformer(config.operation)
59 {
60 this->set_strategy(config.strategy);
61 this->set_quality(config.quality);
62 this->set_scope(config.scope);
63 this->set_intensity(config.intensity);
64
65 for (const auto& key : config.keys) {
66 this->add_transformation_key(key);
67 }
68
69 for (const auto& [name, value] : config.parameters) {
70 this->set_parameter(name, value);
71 }
72 }
glm::vec3 value
std::string name
Definition VKDevice.cpp:123
TemporalTransformer(TemporalOperation op=TemporalOperation::TIME_REVERSE)
Constructs a TemporalTransformer with specified operation.
void set_strategy(TransformationStrategy strategy)
Sets the transformation strategy.
void set_intensity(double intensity)
Set transformation intensity (0.0 = no transformation, 1.0 = full transformation)
void set_scope(TransformationScope scope)
Sets the transformation scope.
void set_parameter(const std::string &name, std::any value) override
Type-safe parameter management with transformation-specific defaults.
void set_quality(TransformationQuality quality)
Sets the transformation quality level.
void add_transformation_key(const TransformationKey &key)
Add transformation key for multi-dimensional transformations.

References MayaFlux::Yantra::UniversalTransformer< InputType, OutputType >::add_transformation_key(), MayaFlux::Yantra::TransformerConfig< Operation >::intensity, MayaFlux::Yantra::TransformerConfig< Operation >::keys, name, MayaFlux::Yantra::TransformerConfig< Operation >::parameters, MayaFlux::Yantra::TransformerConfig< Operation >::quality, MayaFlux::Yantra::TransformerConfig< Operation >::scope, MayaFlux::Yantra::UniversalTransformer< InputType, OutputType >::set_intensity(), MayaFlux::Yantra::UniversalTransformer< InputType, OutputType >::set_parameter(), MayaFlux::Yantra::UniversalTransformer< InputType, OutputType >::set_quality(), MayaFlux::Yantra::UniversalTransformer< InputType, OutputType >::set_scope(), MayaFlux::Yantra::UniversalTransformer< InputType, OutputType >::set_strategy(), MayaFlux::Yantra::TransformerConfig< Operation >::strategy, and value.

+ Here is the call graph for this function: