pub enum D3d11NvencEncoderError {
Show 16 variants
CodecNotFound(String),
HwDeviceInit(i32),
HwFramesAlloc,
HwFramesInit(i32, u32, u32),
HwFrameGet(i32),
UnsupportedFormat(Pixel),
DimensionMismatch {
actual_width: u32,
actual_height: u32,
expected_width: u32,
expected_height: u32,
},
ContextDeviceMismatch,
DeviceMismatch,
TextureTooSmall {
actual_width: u32,
actual_height: u32,
expected_width: u32,
expected_height: u32,
},
InvalidArrayIndex {
index: isize,
array_size: u32,
},
TextureFormatMismatch {
actual: i32,
expected: i32,
},
MissingTexture,
UnsupportedBuffer(&'static str),
Windows(Error),
Ffmpeg(Error),
}Available on Windows and crate feature
d3d11 only.Expand description
Errors specific to D3d11NvencEncoder. Converts into the crate-wide
Error via ? (see crate::error::Error).
Variants§
CodecNotFound(String)
HwDeviceInit(i32)
HwFramesAlloc
HwFramesInit(i32, u32, u32)
HwFrameGet(i32)
UnsupportedFormat(Pixel)
DimensionMismatch
ContextDeviceMismatch
DeviceMismatch
TextureTooSmall
InvalidArrayIndex
TextureFormatMismatch
MissingTexture
UnsupportedBuffer(&'static str)
Windows(Error)
Ffmpeg(Error)
Trait Implementations§
Source§impl Debug for D3d11NvencEncoderError
impl Debug for D3d11NvencEncoderError
Source§impl Display for D3d11NvencEncoderError
impl Display for D3d11NvencEncoderError
Source§impl Error for D3d11NvencEncoderError
impl Error for D3d11NvencEncoderError
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<D3d11NvencEncoderError> for Error
impl From<D3d11NvencEncoderError> for Error
Source§fn from(source: D3d11NvencEncoderError) -> Self
fn from(source: D3d11NvencEncoderError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for D3d11NvencEncoderError
impl From<Error> for D3d11NvencEncoderError
Auto Trait Implementations§
impl Freeze for D3d11NvencEncoderError
impl RefUnwindSafe for D3d11NvencEncoderError
impl Send for D3d11NvencEncoderError
impl Sync for D3d11NvencEncoderError
impl Unpin for D3d11NvencEncoderError
impl UnsafeUnpin for D3d11NvencEncoderError
impl UnwindSafe for D3d11NvencEncoderError
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