pub struct CudaLosslessEncodeResult { /* private fields */ }Expand description
Opaque result from CudaLosslessEncoder.
The requested backend is retained separately from the backend that actually
satisfied the request. A CPU result is a fallback only when the request used
EncodeBackendPreference::Auto.
Implementations§
Source§impl CudaLosslessEncodeResult
impl CudaLosslessEncodeResult
Sourcepub const fn requested_backend(&self) -> EncodeBackendPreference
pub const fn requested_backend(&self) -> EncodeBackendPreference
Backend preference supplied for this encode job.
Sourcepub const fn actual_backend(&self) -> BackendKind
pub const fn actual_backend(&self) -> BackendKind
Backend that satisfied the encode contract.
Sourcepub const fn fallback_reason(&self) -> Option<CudaEncodeFallbackReason>
pub const fn fallback_reason(&self) -> Option<CudaEncodeFallbackReason>
Why an Auto request completed on the CPU, if it did.
Sourcepub const fn dispatch_report(&self) -> J2kEncodeDispatchReport
pub const fn dispatch_report(&self) -> J2kEncodeDispatchReport
Encode-stage dispatches observed while producing the codestream.
Sourcepub const fn encoded(&self) -> &EncodedJ2k
pub const fn encoded(&self) -> &EncodedJ2k
Borrow the encoded codestream and its image metadata.
Sourcepub fn into_encoded(self) -> EncodedJ2k
pub fn into_encoded(self) -> EncodedJ2k
Consume the route report and return the encoded codestream and metadata.
Trait Implementations§
Source§impl Clone for CudaLosslessEncodeResult
impl Clone for CudaLosslessEncodeResult
Source§fn clone(&self) -> CudaLosslessEncodeResult
fn clone(&self) -> CudaLosslessEncodeResult
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 CudaLosslessEncodeResult
impl Debug for CudaLosslessEncodeResult
impl Eq for CudaLosslessEncodeResult
Source§impl PartialEq for CudaLosslessEncodeResult
impl PartialEq for CudaLosslessEncodeResult
impl StructuralPartialEq for CudaLosslessEncodeResult
Auto Trait Implementations§
impl Freeze for CudaLosslessEncodeResult
impl RefUnwindSafe for CudaLosslessEncodeResult
impl Send for CudaLosslessEncodeResult
impl Sync for CudaLosslessEncodeResult
impl Unpin for CudaLosslessEncodeResult
impl UnsafeUnpin for CudaLosslessEncodeResult
impl UnwindSafe for CudaLosslessEncodeResult
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