Pipeline Types
Pipeline
Standard linear pipeline implementation for connecting frame processors
Overview
Pipeline
is the primary implementation of BasePipeline
that connects frame processors in a linear sequence. It manages frame flow between processors and handles both upstream and downstream communication.
Class Definition
Constructor Parameters
processors
List[FrameProcessor]
requiredList of frame processors to connect in sequence
Internal Components
PipelineSource
Handles incoming frames and upstream communication:
PipelineSink
Handles outgoing frames and downstream communication:
Frame Flow
Methods
Process Frame
Cleanup
Metrics Collection
Usage Examples
Basic Pipeline
With Error Handling
Frame Processing Rules
- Frames flow downstream by default
- System frames can flow upstream
- Each processor maintains frame order
- Source and sink manage pipeline boundaries
- Cleanup happens in sequence
Notes
- Processors are linked in construction order
- Each processor gets parent pipeline reference
- Cleanup happens in reverse order
- Metrics are collected from all capable processors
- Source and sink handle pipeline boundaries
- Thread-safe frame processing
- Supports both sync and async processors