pub enum InlineImageFilter {
Raw,
DctDecode,
JpxDecode,
Jbig2Decode,
CcittFaxDecode,
}Expand description
Terminal codec filter declared by an inline image’s /F entry.
Marks how a downstream decoder should interpret the PdfInlineImage::data
byte payload. Raw means the payload is the literal pixel byte
sequence at the declared bit-depth (no terminal codec filter — the
dictionary may or may not list a non-codec filter like /Fl in the
chain, but those are peeled before the payload reaches the caller).
Variants§
Raw
No terminal codec filter — payload is raw pixel bytes. Real PDFs use this most often for small inline images.
DctDecode
/DCTDecode (/DCT) — payload is a JPEG-1 / JFIF stream
ready for a JPEG decoder, exactly the same shape the round-23
XObject walker surfaces.
JpxDecode
/JPXDecode (/JPX) — payload is a JPEG 2000 codestream.
Jbig2Decode
/JBIG2Decode (/JBIG2) — payload is a JBIG2 codestream.
CcittFaxDecode
/CCITTFaxDecode (/CCF) — payload is a CCITT T.4 / T.6
fax-encoded stream. (/DecodeParms carries the per-stream
/K / /Columns / /Rows parameters; round 35 surfaces the
raw bytes only.)
Trait Implementations§
Source§impl Clone for InlineImageFilter
impl Clone for InlineImageFilter
Source§fn clone(&self) -> InlineImageFilter
fn clone(&self) -> InlineImageFilter
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InlineImageFilter
impl Debug for InlineImageFilter
impl Eq for InlineImageFilter
Source§impl PartialEq for InlineImageFilter
impl PartialEq for InlineImageFilter
Source§fn eq(&self, other: &InlineImageFilter) -> bool
fn eq(&self, other: &InlineImageFilter) -> bool
self and other values to be equal, and is used by ==.