pub enum DeviceDecodeRequest {
Full,
Region {
roi: Rect,
},
Scaled {
scale: Downscale,
},
RegionScaled {
roi: Rect,
scale: Downscale,
},
}Expand description
Device decode shape requested by a GPU adapter.
Variants§
Full
Decode the full image at full resolution.
Region
Decode a full-resolution source region.
Scaled
Decode the full image at reduced resolution.
RegionScaled
Decode a source region at reduced resolution.
Trait Implementations§
Source§impl Clone for DeviceDecodeRequest
impl Clone for DeviceDecodeRequest
impl Copy for DeviceDecodeRequest
Source§impl Debug for DeviceDecodeRequest
impl Debug for DeviceDecodeRequest
impl Eq for DeviceDecodeRequest
Source§impl PartialEq for DeviceDecodeRequest
impl PartialEq for DeviceDecodeRequest
impl StructuralPartialEq for DeviceDecodeRequest
Auto Trait Implementations§
impl Freeze for DeviceDecodeRequest
impl RefUnwindSafe for DeviceDecodeRequest
impl Send for DeviceDecodeRequest
impl Sync for DeviceDecodeRequest
impl Unpin for DeviceDecodeRequest
impl UnsafeUnpin for DeviceDecodeRequest
impl UnwindSafe for DeviceDecodeRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more