pub struct JpegDecoder {
pub transfer_syntax_uid: &'static str,
}Expand description
JPEG codec for DICOM — decodes JPEG Baseline, Extended, and Lossless transfer syntaxes.
JPEG Lossless (PS3.4 Process 14) decoding depends on jpeg-decoder
support; it may return dicom_toolkit_core::error::DcmError::DecompressionError
if the lossless process is not supported by the library.
Fields§
§transfer_syntax_uid: &'static strTransfer syntax UID this instance is associated with.
Implementations§
Source§impl JpegDecoder
impl JpegDecoder
Sourcepub fn decode_frame(data: &[u8]) -> DcmResult<DecodedFrame>
pub fn decode_frame(data: &[u8]) -> DcmResult<DecodedFrame>
Decode a JPEG-compressed fragment to raw pixel bytes.
Works for JPEG Baseline (1.2.840.10008.1.2.4.50), JPEG Extended (…4.51), JPEG Lossless (…4.57, …4.70).
Auto Trait Implementations§
impl Freeze for JpegDecoder
impl RefUnwindSafe for JpegDecoder
impl Send for JpegDecoder
impl Sync for JpegDecoder
impl Unpin for JpegDecoder
impl UnsafeUnpin for JpegDecoder
impl UnwindSafe for JpegDecoder
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> 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