#[non_exhaustive]pub enum CompressedTransferSyntax {
JpegBaseline8,
JpegExtendedSequential,
JpegProgressive,
JpegLossless,
JpegLosslessSv1,
Jpeg2000Lossless,
Jpeg2000Lossy,
HtJpeg2000Lossless,
HtJpeg2000Lossy,
}Expand description
Compressed syntax carried by a source frame or accepted by a destination.
The enum intentionally names codec profiles rather than container-specific UIDs. Container integrations can map these variants to their local transfer syntax identifiers and keep that policy outside the codec crates.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
JpegBaseline8
Baseline 8-bit JPEG interchange format.
JpegExtendedSequential
Sequential JPEG beyond the baseline profile.
JpegProgressive
Progressive Huffman-coded JPEG.
JpegLossless
Lossless Huffman-coded JPEG using predictive coding.
JpegLosslessSv1
Lossless Huffman-coded JPEG restricted to selection value 1.
This is the bitstream subset used by the DICOM JPEG Lossless SV1 transfer syntax.
Jpeg2000Lossless
Classic JPEG 2000 codestream using reversible coding.
Jpeg2000Lossy
Classic JPEG 2000 codestream using irreversible coding.
HtJpeg2000Lossless
High-throughput JPEG 2000 codestream using reversible coding.
HtJpeg2000Lossy
High-throughput JPEG 2000 codestream using irreversible coding.
Implementations§
Source§impl CompressedTransferSyntax
impl CompressedTransferSyntax
Sourcepub const fn is_lossless(self) -> bool
pub const fn is_lossless(self) -> bool
True when the syntax profile is lossless.
Sourcepub const fn is_jpeg_family(self) -> bool
pub const fn is_jpeg_family(self) -> bool
True when the syntax belongs to the classic JPEG family.
Sourcepub const fn is_jpeg2000_family(self) -> bool
pub const fn is_jpeg2000_family(self) -> bool
True when the syntax belongs to the JPEG 2000 family.
Trait Implementations§
Source§impl Clone for CompressedTransferSyntax
impl Clone for CompressedTransferSyntax
Source§fn clone(&self) -> CompressedTransferSyntax
fn clone(&self) -> CompressedTransferSyntax
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more