Skip to main content

qualia_core_db/medical/dicom_codecs/
mod.rs

1//! Explicit preserve/decode/interpret profiles; native integer samples are not display pixels.
2pub mod encapsulated;
3pub mod float_pixels;
4pub mod j2k;
5pub mod jpeg;
6#[cfg(not(target_arch = "wasm32"))]
7pub mod jpeg_12bit;
8#[cfg(not(target_arch = "wasm32"))]
9mod jpeg_12bit_scan;
10pub mod jpegls;
11pub mod jxl;
12mod metadata;
13mod native;
14pub mod padding;
15mod profile;
16mod rle;
17
18pub use encapsulated::{EncapError, EncapLimits};
19pub use j2k::{
20    annex_c_ht_vlc_tables, decode_ht_cblk_annex_c, decode_j2k_codestream_into,
21    decode_j2k_part10_dataset_into, decode_j2k_part10_into, decode_j2k_part10_with_annex_c_into,
22    encode_ht_cleanup_segment, HtVlcEntry, HtVlcTables, J2kError, J2kFrameInfo, J2kLimits,
23    ProgressionOrder, WaveletTransform, ANNEX_C_HT_VLC_TABLES, ANNEX_C_TBL0, ANNEX_C_TBL1,
24    TS_HTJ2K, TS_HTJ2K_LOSSLESS, TS_HTJ2K_RPCL, TS_J2K, TS_J2K_LOSSLESS,
25};
26pub use jpeg::{
27    decode_jpeg_into, JpegColorFormat, JpegDecodedInfo, JpegError, JpegLimits,
28    TS_JPEG_BASELINE, TS_JPEG_EXTENDED,
29};
30pub use jpegls::{
31    decode_jpegls_codestream_into, decode_jpegls_part10_into, JpegLsError, JpegLsFrameInfo,
32    JpegLsLimits, TS_JPEGLS_LOSSLESS, TS_JPEGLS_NEAR_LOSSLESS,
33};
34pub use jxl::{
35    decode_jxl_codestream_into, decode_jxl_part10_into, encode_jbrd_box_from_jpeg,
36    extract_jbrd_payload, reconstruct_jpeg_from_jbrd, reconstruct_jpeg_from_jxl_container,
37    JbrdExtractedCoeffs, JxlDecodedCodestream, JxlEncoding, JxlError, JxlFrameInfo, JxlFrameType,
38    JxlImageHeader, JxlLimits, JxlTransferFunction, TS_JXL, TS_JXL_JPEG_RECOMPRESSION,
39    TS_JXL_LOSSLESS,
40};
41pub use native::{NativePixelView, PixelError, StoredSample};
42pub use profile::{transfer_syntax_profile, TransferSyntaxProfile};
43pub use rle::{decode_rle_lossless_into, RleError, RleLimits};
44
45#[cfg(test)]
46mod tests;