MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Yantra::IntervalExtractorConfig Struct Reference

Settings of an IntervalExtractor. More...

#include <IntervalExtractor.hpp>

Inheritance diagram for MayaFlux::Yantra::IntervalExtractorConfig:
Collaboration diagram for MayaFlux::Yantra::IntervalExtractorConfig:

Public Member Functions

const IntervalScanSettings & settings_of (size_t column) const noexcept
 Settings in force for a column.
Public Member Functions inherited from MayaFlux::Yantra::OperationConfig
template<typename Op>
void apply_to (Op &operation) const
 Apply retained concrete settings to an operation through its parent contract.
template<typename T>
const T * get () const
 The struct of this type, or nullptr when absent.
 OperationConfig ()=default
template<typename Config>
requires (!std::same_as<std::remove_cvref_t<Config>, OperationConfig> && std::derived_from<std::remove_cvref_t<Config>, OperationConfig>)
 OperationConfig (Config &&config)
 Retain a concrete config whole when placed in a parent-config collection.
 OperationConfig (const OperationConfig &)=default
 OperationConfig (OperationConfig &&) noexcept=default
OperationConfig & operator= (const OperationConfig &)=default
OperationConfig & operator= (OperationConfig &&) noexcept=default
template<typename T>
void set (T value)
 Stores a struct under its type identity.

Public Attributes

std::vector< IntervalScanSettings > columns {}
 Per column overrides, column i for index i.
bool flush { false }
 End the stream with this call.
uint32_t length { 0 }
 Length of the stream in samples when it ends, 0 to use the scores seen.
Reflect::EnumByte< IntervalMethod > method { IntervalMethod::HYSTERESIS_RUNS }
 Selection method, as an IntervalMethod value.
IntervalScanSettings scan {}
 Settings of every column not listed in columns.
Public Attributes inherited from MayaFlux::Yantra::ExtractorConfig
ExtractionScope scope { ExtractionScope::FULL_DATA }
 Portion of the input to extract from.

Detailed Description

Settings of an IntervalExtractor.

scan is the settings of every column. columns overrides them: column i uses columns[i] when the list has that entry, and scan otherwise. flush ends the stream: the open run of each column is closed at length, or at the end of its scores when length is 0, and the pending interval is emitted. Without flush the newest interval of each column stays pending until the next call. Both are the same for every column.

Definition at line 106 of file IntervalExtractor.hpp.


The documentation for this struct was generated from the following file: