pub enum SwChromaKeyError {
FrameRef(i32),
UnsupportedFormat(Pixel),
UnsupportedBuffer(&'static str),
}Expand description
Errors specific to SwChromaKey. Converts into the crate-wide Error
via ? (see crate::error::Error).
Variants§
FrameRef(i32)
FFmpeg could not take a second reference to the keyed frame already in hand, which is how an unchanged input picture is answered.
UnsupportedFormat(Pixel)
The input video is not in the BGRA pixel format required by this filter.
UnsupportedBuffer(&'static str)
The sink received a buffer other than decoded video or end-of-stream.
Trait Implementations§
Source§impl Debug for SwChromaKeyError
impl Debug for SwChromaKeyError
Source§impl Display for SwChromaKeyError
impl Display for SwChromaKeyError
Source§impl Error for SwChromaKeyError
impl Error for SwChromaKeyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<SwChromaKeyError> for Error
impl From<SwChromaKeyError> for Error
Source§fn from(source: SwChromaKeyError) -> Self
fn from(source: SwChromaKeyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SwChromaKeyError
impl RefUnwindSafe for SwChromaKeyError
impl Send for SwChromaKeyError
impl Sync for SwChromaKeyError
impl Unpin for SwChromaKeyError
impl UnsafeUnpin for SwChromaKeyError
impl UnwindSafe for SwChromaKeyError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more