pub struct JpegCapabilityReport {
pub request: JpegCapabilityRequest,
pub info: Info,
pub device: DeviceBatchSummary,
pub cpu: JpegBackendEligibility,
pub owned_cuda: JpegBackendEligibility,
pub metal_fast: JpegBackendEligibility,
}Expand description
Parsed JPEG metadata and backend eligibility for one request.
Fields§
§request: JpegCapabilityRequestOriginal capability request.
info: InfoPublic JPEG metadata.
device: DeviceBatchSummaryDevice batch summary derived from J2K’s parser/planner.
cpu: JpegBackendEligibilityPortable CPU decode eligibility.
owned_cuda: JpegBackendEligibilityJ2K-owned CUDA-kernel eligibility.
metal_fast: JpegBackendEligibilityMetal fast-packet shape eligibility.
Implementations§
Source§impl JpegCapabilityReport
impl JpegCapabilityReport
Sourcepub fn for_decoder(
decoder: &Decoder<'_>,
request: JpegCapabilityRequest,
) -> Self
pub fn for_decoder( decoder: &Decoder<'_>, request: JpegCapabilityRequest, ) -> Self
Build a capability report from an already parsed decoder.
Sourcepub fn metal_resident_rgb8_batch_output(&self) -> JpegBackendEligibility
pub fn metal_resident_rgb8_batch_output(&self) -> JpegBackendEligibility
Eligibility for explicit reusable RGB8 Metal batch outputs.
This is narrower than Self::metal_fast: it describes the current
caller-owned Metal buffer/texture batch APIs, not every Metal-capable
surface decode shape.
Sourcepub fn resolve_path(&self, backend: BackendRequest) -> JpegResolvedDecodePath
pub fn resolve_path(&self, backend: BackendRequest) -> JpegResolvedDecodePath
Resolve a backend request using this report’s eligibility results.
Trait Implementations§
Source§impl Clone for JpegCapabilityReport
impl Clone for JpegCapabilityReport
Source§fn clone(&self) -> JpegCapabilityReport
fn clone(&self) -> JpegCapabilityReport
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 moreSource§impl Debug for JpegCapabilityReport
impl Debug for JpegCapabilityReport
impl Eq for JpegCapabilityReport
Source§impl PartialEq for JpegCapabilityReport
impl PartialEq for JpegCapabilityReport
impl StructuralPartialEq for JpegCapabilityReport
Auto Trait Implementations§
impl Freeze for JpegCapabilityReport
impl RefUnwindSafe for JpegCapabilityReport
impl Send for JpegCapabilityReport
impl Sync for JpegCapabilityReport
impl Unpin for JpegCapabilityReport
impl UnsafeUnpin for JpegCapabilityReport
impl UnwindSafe for JpegCapabilityReport
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