pub enum SOFMarkers {
BaselineDct,
ExtendedSequentialHuffman,
ProgressiveDctHuffman,
LosslessHuffman,
ExtendedSequentialDctArithmetic,
ProgressiveDctArithmetic,
LosslessArithmetic,
}
Expand description
Markers that identify different Start of Image markers They identify the type of encoding and whether the file use lossy(DCT) or lossless compression and whether we use Huffman or arithmetic coding schemes
Variants§
BaselineDct
Baseline DCT markers
ExtendedSequentialHuffman
SOF_1 Extended sequential DCT,Huffman coding
ProgressiveDctHuffman
Progressive DCT, Huffman coding
LosslessHuffman
Lossless (sequential), huffman coding,
ExtendedSequentialDctArithmetic
Extended sequential DEC, arithmetic coding
ProgressiveDctArithmetic
Progressive DCT, arithmetic coding,
LosslessArithmetic
Lossless ( sequential), arithmetic coding
Implementations§
Source§impl SOFMarkers
impl SOFMarkers
Sourcepub fn is_sequential_dct(self) -> bool
pub fn is_sequential_dct(self) -> bool
Check if a certain marker is sequential DCT or not
Sourcepub fn is_lossless(self) -> bool
pub fn is_lossless(self) -> bool
Check if a marker is a Lossles type or not
Sourcepub fn is_progressive(self) -> bool
pub fn is_progressive(self) -> bool
Check whether a marker is a progressive marker or not
Sourcepub fn from_int(int: u16) -> Option<SOFMarkers>
pub fn from_int(int: u16) -> Option<SOFMarkers>
Create a marker from an integer
Trait Implementations§
Source§impl Clone for SOFMarkers
impl Clone for SOFMarkers
Source§fn clone(&self) -> SOFMarkers
fn clone(&self) -> SOFMarkers
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SOFMarkers
impl Debug for SOFMarkers
Source§impl Default for SOFMarkers
impl Default for SOFMarkers
Source§impl PartialEq for SOFMarkers
impl PartialEq for SOFMarkers
impl Copy for SOFMarkers
impl Eq for SOFMarkers
impl StructuralPartialEq for SOFMarkers
Auto Trait Implementations§
impl Freeze for SOFMarkers
impl RefUnwindSafe for SOFMarkers
impl Send for SOFMarkers
impl Sync for SOFMarkers
impl Unpin for SOFMarkers
impl UnwindSafe for SOFMarkers
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