pub struct EncodedJ2k {
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,
}Expand description
Encoded JPEG 2000 lossless 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.
Trait Implementations§
Source§impl Clone for EncodedJ2k
impl Clone for EncodedJ2k
Source§fn clone(&self) -> EncodedJ2k
fn clone(&self) -> EncodedJ2k
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 EncodedJ2k
impl Debug for EncodedJ2k
impl Eq for EncodedJ2k
Source§impl PartialEq for EncodedJ2k
impl PartialEq for EncodedJ2k
impl StructuralPartialEq for EncodedJ2k
Auto Trait Implementations§
impl Freeze for EncodedJ2k
impl RefUnwindSafe for EncodedJ2k
impl Send for EncodedJ2k
impl Sync for EncodedJ2k
impl Unpin for EncodedJ2k
impl UnsafeUnpin for EncodedJ2k
impl UnwindSafe for EncodedJ2k
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