#[non_exhaustive]pub enum CompressedTransferSyntax {
JpegBaseline8,
JpegExtendedSequential,
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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
JpegBaseline8
Baseline 8-bit JPEG interchange format.
JpegExtendedSequential
Sequential JPEG beyond the baseline profile.
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_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
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 Copy for CompressedTransferSyntax
Source§impl Debug for CompressedTransferSyntax
impl Debug for CompressedTransferSyntax
impl Eq for CompressedTransferSyntax
Source§impl Hash for CompressedTransferSyntax
impl Hash for CompressedTransferSyntax
Source§impl PartialEq for CompressedTransferSyntax
impl PartialEq for CompressedTransferSyntax
Source§fn eq(&self, other: &CompressedTransferSyntax) -> bool
fn eq(&self, other: &CompressedTransferSyntax) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompressedTransferSyntax
Auto Trait Implementations§
impl Freeze for CompressedTransferSyntax
impl RefUnwindSafe for CompressedTransferSyntax
impl Send for CompressedTransferSyntax
impl Sync for CompressedTransferSyntax
impl Unpin for CompressedTransferSyntax
impl UnsafeUnpin for CompressedTransferSyntax
impl UnwindSafe for CompressedTransferSyntax
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