pub struct CcittDecoder { /* private fields */ }Expand description
CCITT Fax decoder with full Group 3 and Group 4 support
Implementations§
Source§impl CcittDecoder
impl CcittDecoder
Sourcepub fn new(columns: usize, rows: usize) -> Self
pub fn new(columns: usize, rows: usize) -> Self
Creates a new CCITT decoder with specified dimensions
pub fn with_end_of_line(self, eol: bool) -> Self
pub fn with_encoded_byte_align(self, align: bool) -> Self
pub fn with_end_of_block(self, eob: bool) -> Self
pub fn with_black_is_1(self, black: bool) -> Self
pub fn with_damaged_rows_before_error(self, rows: i32) -> Self
Sourcepub fn decode_group3_1d(&self, data: &[u8]) -> Result<Vec<u8>, String>
pub fn decode_group3_1d(&self, data: &[u8]) -> Result<Vec<u8>, String>
Decode Group 3 1D (Modified Huffman)
Auto Trait Implementations§
impl Freeze for CcittDecoder
impl RefUnwindSafe for CcittDecoder
impl Send for CcittDecoder
impl Sync for CcittDecoder
impl Unpin for CcittDecoder
impl UnwindSafe for CcittDecoder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more