pub enum UpdateTextureYUVError {
PitchOverflows {
plane: &'static str,
value: usize,
},
InvalidPlaneLength {
plane: &'static str,
length: usize,
pitch: usize,
height: usize,
},
XMustBeMultipleOfTwoForFormat(i32),
YMustBeMultipleOfTwoForFormat(i32),
WidthMustBeMultipleOfTwoForFormat(u32),
HeightMustBeMultipleOfTwoForFormat(u32),
RectNotInsideTexture(Rect),
SdlError(String),
}
Variants
PitchOverflows
Fields
InvalidPlaneLength
Fields
XMustBeMultipleOfTwoForFormat(i32)
YMustBeMultipleOfTwoForFormat(i32)
WidthMustBeMultipleOfTwoForFormat(u32)
HeightMustBeMultipleOfTwoForFormat(u32)
RectNotInsideTexture(Rect)
SdlError(String)
Trait Implementations
Formats the value using the given formatter.