MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
existing Class Reference

Cycle Behavior: The for_cycles(N) configuration controls how many times the capture operation executes within a single pipeline cycle. More...

+ Collaboration diagram for existing:

Detailed Description

Cycle Behavior: The for_cycles(N) configuration controls how many times the capture operation executes within a single pipeline cycle.

When a capture has .for_cycles(20), the operation will capture 20 times sequentially, with each capture receiving incrementing cycle numbers (0, 1, 2... 19) and calling on_data_ready() for each iteration.

This is distinct from pipeline-level cycle control:

  • .for_cycles(20) on capture → operation executes 20 times per pipeline cycle
  • execute_scheduled(5, ...) → pipeline runs 5 times total
  • Combined: 5 × 20 = 100 total capture executions

Example:

auto pipeline = BufferPipeline::create(*scheduler);
pipeline >> BufferOperation::capture_from(buffer)
.for_cycles(10) // Capture 10 times per pipeline invocation
.on_data_ready([](const auto& data, uint32_t cycle) {
std::cout << "Capture #" << cycle << '\n'; // Prints 0-9
});
pipeline->execute_scheduled(3, 512); // Runs pipeline 3 times → 30 total captures
See also
BufferPipeline For pipeline construction and execution
BufferCapture For flexible data capture strategies
CycleCoordinator For cross-pipeline synchronization

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