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)
FFmpeg rejected frame allocation or software scaling.
InvalidOutputDimensions
The output canvas dimensions are zero or exceed the safety limit.
InvalidFrameRate(Rational)
The output frame-rate numerator or denominator is non-positive.
InvalidLayerDimensions
A layer destination rectangle is zero-sized or exceeds the safety limit.
Fields
InvalidOpacity(f32)
A layer opacity is non-finite or outside 0.0..=1.0.
InvalidInputDimensions
An input frame reports a zero width or height.
ScaledLayerTooLarge
Aspect-ratio fitting would create an intermediate image above the safety limit.
SourceRemoved
A runtime layer handle refers to an input that has been removed or replaced.
UnsupportedBuffer(&'static str)
An input sink received a buffer other than decoded video.
SeekUnsupported
Seeking was requested on a live compositor with no stored timeline.
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