pub enum PipelineError {
Decode(DecodeError),
Filter(FilterError),
Encode(EncodeError),
NoInput,
NoOutput,
SecondaryInputWithoutFilter,
Cancelled,
Io(Error),
FrameNotAvailable,
}Expand description
Errors that can occur while building or running a pipeline.
§Error Categories
- Downstream errors:
Decode,Filter,Encode— propagated from the underlying crates via#[from] - Configuration errors:
NoInput,NoOutput,SecondaryInputWithoutFilter— returned byPipelineBuilder::build - Runtime control:
Cancelled— returned byPipeline::runwhen the progress callback returnsfalse - Availability:
FrameNotAvailable— no frame at position
Variants§
Decode(DecodeError)
A decoding step failed.
Wraps ff_decode::DecodeError and is produced automatically via #[from]
when a decode operation inside the pipeline returns an error.
Filter(FilterError)
A filter graph step failed.
Wraps ff_filter::FilterError and is produced automatically via #[from]
when the filter graph inside the pipeline returns an error.
Encode(EncodeError)
An encoding step failed.
Wraps ff_encode::EncodeError and is produced automatically via #[from]
when an encode operation inside the pipeline returns an error.
NoInput
No input path was provided to the builder.
At least one call to PipelineBuilder::input
is required before PipelineBuilder::build.
NoOutput
No output path and config were provided to the builder.
A call to PipelineBuilder::output is
required before PipelineBuilder::build.
SecondaryInputWithoutFilter
secondary_input() was called but no filter graph was provided.
A secondary input only makes sense when a multi-slot filter is set via
PipelineBuilder::filter.
Cancelled
The pipeline was cancelled by the progress callback.
Returned by Pipeline::run when the
ProgressCallback returns false.
Io(Error)
An I/O error (e.g. creating the output directory for thumbnails).
FrameNotAvailable
No frame was available at the requested position.
Returned by thumbnail and seek-and-decode operations when the decoder
reports Ok(None) — the position is past the end of the stream or no
decodable frame exists at that point.
Trait Implementations§
Source§impl Debug for PipelineError
impl Debug for PipelineError
Source§impl Display for PipelineError
impl Display for PipelineError
Source§impl Error for PipelineError
impl Error for PipelineError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()