pub struct EncodedLossyJ2k {
pub codestream: Vec<u8>,
pub backend: BackendKind,
pub dispatch_report: J2kEncodeDispatchReport,
pub width: u32,
pub height: u32,
pub components: u16,
pub bit_depth: u8,
pub signed: bool,
pub report: J2kLossyEncodeReport,
}Expand description
Encoded JPEG 2000 lossy codestream and encode metadata.
Fields§
§codestream: Vec<u8>Raw JPEG 2000 codestream bytes.
backend: BackendKindBackend that satisfied the encode contract.
dispatch_report: J2kEncodeDispatchReportEncode-stage dispatches observed while producing this codestream.
This can be nonzero even when Self::backend is BackendKind::Cpu
for Auto routes that used one or more device stages but did not satisfy
every stage required for a fully device-backed encode contract.
width: u32Encoded image width in pixels.
height: u32Encoded image height in pixels.
components: u16Encoded component count.
bit_depth: u8Encoded significant bits per sample.
signed: boolWhether encoded samples are signed.
report: J2kLossyEncodeReportLossy encode metrics.
Trait Implementations§
Source§impl Clone for EncodedLossyJ2k
impl Clone for EncodedLossyJ2k
Source§fn clone(&self) -> EncodedLossyJ2k
fn clone(&self) -> EncodedLossyJ2k
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 EncodedLossyJ2k
impl Debug for EncodedLossyJ2k
Source§impl PartialEq for EncodedLossyJ2k
impl PartialEq for EncodedLossyJ2k
Source§fn eq(&self, other: &EncodedLossyJ2k) -> bool
fn eq(&self, other: &EncodedLossyJ2k) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EncodedLossyJ2k
Auto Trait Implementations§
impl Freeze for EncodedLossyJ2k
impl RefUnwindSafe for EncodedLossyJ2k
impl Send for EncodedLossyJ2k
impl Sync for EncodedLossyJ2k
impl Unpin for EncodedLossyJ2k
impl UnsafeUnpin for EncodedLossyJ2k
impl UnwindSafe for EncodedLossyJ2k
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