Skip to main content

Module dicom_codecs

Module dicom_codecs 

Source
Expand description

Explicit preserve/decode/interpret profiles; native integer samples are not display pixels.

Re-exports§

pub use encapsulated::EncapError;
pub use encapsulated::EncapLimits;
pub use j2k::annex_c_ht_vlc_tables;
pub use j2k::decode_ht_cblk_annex_c;
pub use j2k::decode_j2k_codestream_into;
pub use j2k::decode_j2k_part10_dataset_into;
pub use j2k::decode_j2k_part10_into;
pub use j2k::decode_j2k_part10_with_annex_c_into;
pub use j2k::encode_ht_cleanup_segment;
pub use j2k::HtVlcEntry;
pub use j2k::HtVlcTables;
pub use j2k::J2kError;
pub use j2k::J2kFrameInfo;
pub use j2k::J2kLimits;
pub use j2k::ProgressionOrder;
pub use j2k::WaveletTransform;
pub use j2k::ANNEX_C_HT_VLC_TABLES;
pub use j2k::ANNEX_C_TBL0;
pub use j2k::ANNEX_C_TBL1;
pub use j2k::TS_HTJ2K;
pub use j2k::TS_HTJ2K_LOSSLESS;
pub use j2k::TS_HTJ2K_RPCL;
pub use j2k::TS_J2K;
pub use j2k::TS_J2K_LOSSLESS;
pub use jpeg::decode_jpeg_into;
pub use jpeg::JpegColorFormat;
pub use jpeg::JpegDecodedInfo;
pub use jpeg::JpegError;
pub use jpeg::JpegLimits;
pub use jpeg::TS_JPEG_BASELINE;
pub use jpeg::TS_JPEG_EXTENDED;
pub use jpegls::decode_jpegls_codestream_into;
pub use jpegls::decode_jpegls_part10_into;
pub use jpegls::JpegLsError;
pub use jpegls::JpegLsFrameInfo;
pub use jpegls::JpegLsLimits;
pub use jpegls::TS_JPEGLS_LOSSLESS;
pub use jpegls::TS_JPEGLS_NEAR_LOSSLESS;
pub use jxl::decode_jxl_codestream_into;
pub use jxl::decode_jxl_part10_into;
pub use jxl::encode_jbrd_box_from_jpeg;
pub use jxl::extract_jbrd_payload;
pub use jxl::reconstruct_jpeg_from_jbrd;
pub use jxl::reconstruct_jpeg_from_jxl_container;
pub use jxl::JbrdExtractedCoeffs;
pub use jxl::JxlDecodedCodestream;
pub use jxl::JxlEncoding;
pub use jxl::JxlError;
pub use jxl::JxlFrameInfo;
pub use jxl::JxlFrameType;
pub use jxl::JxlImageHeader;
pub use jxl::JxlLimits;
pub use jxl::JxlTransferFunction;
pub use jxl::TS_JXL;
pub use jxl::TS_JXL_JPEG_RECOMPRESSION;
pub use jxl::TS_JXL_LOSSLESS;

Modules§

encapsulated
Shared bounded DICOM Part-10 Explicit Little Endian encapsulated reader. Serves JPEG-LS (.80/.81), JPEG 2000 (.90/.91), HTJ2K (.201-.203) and JPEG-XL (.110-.112) without altering dicom_dataset TransferSyntax admissions.
float_pixels
Native DICOM OF/OD values retain exact source bits; validity is separate.
j2k
ISO/IEC 15444-1 JPEG 2000 (.90/.91) & ISO/IEC 15444-15 HTJ2K (.201-.203) decoder.
jpeg
Bounded DICOM encapsulated JPEG Baseline (.50) & Extended (.51) decoder. All framing, dimensions, color/subsampling and budgets are verified before touching the caller output buffer.
jpeg_12bit
Pure-Rust ITU-T T.81 SOF1 Extended Sequential 12-bit JPEG decoder (1.2.840.10008.1.2.4.51). Supports 8-bit (Pq=0) & 16-bit (Pq=1) DQT, extended DC/AC DHT categories (0..=15), DRI/RSTm, interleaved & non-interleaved sequential scans, IEEE-1180 f64 separable IDCT, and 12-bit MONOCHROME1/MONOCHROME2/RGB/YBR_FULL/YBR_FULL_422 LE u16 output.
jpegls
ITU-T T.87 / ISO 14495-1 JPEG-LS decoder for DICOM Transfer Syntaxes 1.2.840.10008.1.2.4.80 (Lossless) and 1.2.840.10008.1.2.4.81 (Near-Lossless).
jxl
ISO/IEC 18181-1 / 18181-2 JPEG-XL decoder for DICOM Transfer Syntaxes 1.2.840.10008.1.2.4.110 (JPEG XL Lossless), 1.2.840.10008.1.2.4.111 (JPEG XL JPEG Recompression), and 1.2.840.10008.1.2.4.112 (JPEG XL).
padding
Stored-domain DICOM padding admission and measurement validity.

Structs§

NativePixelView
Borrowed native values with sign extension from BitsStored. Unused bits/source bytes remain intact. MONOCHROME1 is not inverted; no display LUT is applied.
RleLimits
TransferSyntaxProfile

Enums§

PixelError
RleError
StoredSample

Functions§

decode_rle_lossless_into
Validate all metadata/fragments/segments/runs and admit complete resource/work bounds before writing output or scratch. Success returns a native-layout view bound to the ORIGINAL compressed source digest; no source/metadata is changed. Extra caller buffer tails remain untouched. Every RLE frame must occupy exactly one fragment. Empty BOT is supported; nonempty BOT is verified, not trusted.
transfer_syntax_profile
Return exact preservation, dataset, and decode guarantees for a Transfer Syntax UID.