#[non_exhaustive]pub enum FilterGraphParseError {
Show 14 variants
OutOfMemory,
InvalidArgument,
EndOfFile,
IOError,
InvalidData,
NotImplemented,
PermissionDenied,
NotSocket,
OptionNotFound,
InvalidFileIndexInFg(usize, String),
InvalidFileIndexInOutput(usize, String),
InvalidFilterSpecifier(String),
OutputUnconnected(String, usize, String),
UnknownError(i32),
}Expand description
Errors from parsing a filtergraph description and wiring its inputs and outputs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
OutOfMemory
Memory allocation failed (AVERROR(ENOMEM)).
InvalidArgument
FFmpeg rejected an argument as invalid (AVERROR(EINVAL)).
EndOfFile
End of file was reached during parsing (AVERROR_EOF).
IOError
A low-level I/O error occurred (AVERROR(EIO)).
InvalidData
Invalid data was encountered during parsing
(AVERROR_INVALIDDATA).
NotImplemented
The functionality or filter is not supported by the linked FFmpeg
build (AVERROR(ENOSYS)).
PermissionDenied
Permission was denied — e.g. by a filter that opens files, such as
movie= (AVERROR(EACCES)).
NotSocket
A socket operation was attempted on a non-socket by a filter
touching network resources (AVERROR(ENOTSOCK)).
OptionNotFound
A filter option named in the description does not exist
(AVERROR_OPTION_NOT_FOUND).
InvalidFileIndexInFg(usize, String)
Returned when a stream reference in the filtergraph description names an input file index that does not exist; fields are the index and the description.
InvalidFileIndexInOutput(usize, String)
Returned when an output URL references an input file index that does not exist; fields are the index and the URL.
InvalidFilterSpecifier(String)
Returned when a stream specifier in the filtergraph description is malformed; the payload is the offending text.
OutputUnconnected(String, usize, String)
Returned when a filtergraph output pad is not connected to any output; fields are the filter name, the pad index, and its link label.
UnknownError(i32)
Any other failure; the payload is the raw FFmpeg error code.
Trait Implementations§
Source§impl Debug for FilterGraphParseError
impl Debug for FilterGraphParseError
Source§impl Display for FilterGraphParseError
impl Display for FilterGraphParseError
Source§impl Error for FilterGraphParseError
impl Error for FilterGraphParseError
1.30.0 · 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()