pub struct MetalDecodeRequest {
pub fmt: PixelFormat,
pub op: MetalDecodeOp,
pub backend: BackendRequest,
}Expand description
Single-image J2K Metal decode request.
Fields§
§fmt: PixelFormatRequested output pixel format.
op: MetalDecodeOpDecode geometry operation.
backend: BackendRequestBackend routing preference for device decode APIs.
Implementations§
Source§impl MetalDecodeRequest
impl MetalDecodeRequest
Sourcepub const fn full(fmt: PixelFormat, backend: BackendRequest) -> Self
pub const fn full(fmt: PixelFormat, backend: BackendRequest) -> Self
Full-image decode request.
Sourcepub const fn region(
fmt: PixelFormat,
roi: Rect,
backend: BackendRequest,
) -> Self
pub const fn region( fmt: PixelFormat, roi: Rect, backend: BackendRequest, ) -> Self
Source-region decode request.
Sourcepub const fn scaled(
fmt: PixelFormat,
scale: Downscale,
backend: BackendRequest,
) -> Self
pub const fn scaled( fmt: PixelFormat, scale: Downscale, backend: BackendRequest, ) -> Self
Full-image downscale decode request.
Sourcepub const fn region_scaled(
fmt: PixelFormat,
roi: Rect,
scale: Downscale,
backend: BackendRequest,
) -> Self
pub const fn region_scaled( fmt: PixelFormat, roi: Rect, scale: Downscale, backend: BackendRequest, ) -> Self
Source-region downscale decode request.
Trait Implementations§
Source§impl Clone for MetalDecodeRequest
impl Clone for MetalDecodeRequest
Source§fn clone(&self) -> MetalDecodeRequest
fn clone(&self) -> MetalDecodeRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MetalDecodeRequest
Source§impl Debug for MetalDecodeRequest
impl Debug for MetalDecodeRequest
impl Eq for MetalDecodeRequest
Source§impl PartialEq for MetalDecodeRequest
impl PartialEq for MetalDecodeRequest
impl StructuralPartialEq for MetalDecodeRequest
Auto Trait Implementations§
impl Freeze for MetalDecodeRequest
impl RefUnwindSafe for MetalDecodeRequest
impl Send for MetalDecodeRequest
impl Sync for MetalDecodeRequest
impl Unpin for MetalDecodeRequest
impl UnsafeUnpin for MetalDecodeRequest
impl UnwindSafe for MetalDecodeRequest
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