#[non_exhaustive]pub struct J2kFrameEncodeRequest<'a> {
pub samples: FrameSamples<'a>,
pub transfer_syntax: TransferSyntax,
pub encode_backend: EncodeBackendPreference,
pub codec_validation: CodecValidation,
}Expand description
Request to encode one already-composed tile into DICOM-ready J2K/HTJ2K frame bytes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.samples: FrameSamples<'a>Interleaved samples and geometry for the frame.
transfer_syntax: TransferSyntaxDICOM transfer syntax to encode.
encode_backend: EncodeBackendPreferenceRuntime backend preference for the encoder.
codec_validation: CodecValidationOptional per-frame codec validation policy.
Implementations§
Source§impl<'a> J2kFrameEncodeRequest<'a>
impl<'a> J2kFrameEncodeRequest<'a>
Sourcepub fn new(
samples: FrameSamples<'a>,
transfer_syntax: TransferSyntax,
encode_backend: EncodeBackendPreference,
codec_validation: CodecValidation,
) -> Self
pub fn new( samples: FrameSamples<'a>, transfer_syntax: TransferSyntax, encode_backend: EncodeBackendPreference, codec_validation: CodecValidation, ) -> Self
Build a single-frame encode request.
Trait Implementations§
Source§impl<'a> Clone for J2kFrameEncodeRequest<'a>
impl<'a> Clone for J2kFrameEncodeRequest<'a>
Source§fn clone(&self) -> J2kFrameEncodeRequest<'a>
fn clone(&self) -> J2kFrameEncodeRequest<'a>
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<'a> Copy for J2kFrameEncodeRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for J2kFrameEncodeRequest<'a>
impl<'a> RefUnwindSafe for J2kFrameEncodeRequest<'a>
impl<'a> Send for J2kFrameEncodeRequest<'a>
impl<'a> Sync for J2kFrameEncodeRequest<'a>
impl<'a> Unpin for J2kFrameEncodeRequest<'a>
impl<'a> UnsafeUnpin for J2kFrameEncodeRequest<'a>
impl<'a> UnwindSafe for J2kFrameEncodeRequest<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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