pub enum SwVideoCompositorError {
Ffmpeg(Error),
InvalidOutputDimensions {
width: u32,
height: u32,
},
InvalidFrameRate(Rational),
InvalidLayerDimensions {
width: u32,
height: u32,
},
InvalidOpacity(f32),
InvalidInputDimensions {
width: u32,
height: u32,
},
ScaledLayerTooLarge {
width: u32,
height: u32,
},
SourceRemoved,
UnsupportedBuffer(&'static str),
SeekUnsupported,
}Expand description
Errors specific to SwVideoCompositor.
Variants§
Ffmpeg(Error)
InvalidOutputDimensions
InvalidFrameRate(Rational)
InvalidLayerDimensions
InvalidOpacity(f32)
InvalidInputDimensions
ScaledLayerTooLarge
SourceRemoved
UnsupportedBuffer(&'static str)
SeekUnsupported
Trait Implementations§
Source§impl Debug for SwVideoCompositorError
impl Debug for SwVideoCompositorError
Source§impl Display for SwVideoCompositorError
impl Display for SwVideoCompositorError
Source§impl Error for SwVideoCompositorError
impl Error for SwVideoCompositorError
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<Error> for SwVideoCompositorError
impl From<Error> for SwVideoCompositorError
Source§impl From<SwVideoCompositorError> for Error
impl From<SwVideoCompositorError> for Error
Source§fn from(source: SwVideoCompositorError) -> Self
fn from(source: SwVideoCompositorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SwVideoCompositorError
impl RefUnwindSafe for SwVideoCompositorError
impl Send for SwVideoCompositorError
impl Sync for SwVideoCompositorError
impl Unpin for SwVideoCompositorError
impl UnsafeUnpin for SwVideoCompositorError
impl UnwindSafe for SwVideoCompositorError
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