pub enum SwVideoCompositorError {
Ffmpeg(Error),
FrameRef(i32),
InvalidOutputDimensions {
width: u32,
height: u32,
},
InvalidFrameRate(Rational),
InvalidLayerDimensions {
width: u32,
height: u32,
},
InvalidOpacity(f32),
InvalidSourceRegion {
width: u32,
height: u32,
},
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.
FrameRef(i32)
FFmpeg could not take a second reference to the frame last composed, which is how an unchanged picture is offered again.
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.
InvalidSourceRegion
A layer’s source region is empty. Hiding a layer is
VideoLayer::visible; asking it to draw nothing is a mistake.
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()