#[non_exhaustive]pub enum LimitKind {
Samples,
PacketWork,
CodeBlockWork,
AddressSpace,
TileCodeBlocks,
TilePrecincts,
PocVolumes,
BitPlanes,
}Expand description
Which limit an Error::Limit names.
The first three are DecodeOptions limits that
a WorkLimit raises. No option raises the others, so they refuse the
input whatever the options.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Samples
The sample limit,
DecodeOptions::sample_limit:
the image area, and the samples that palette expansion, sYCC chroma
replication and a monochrome ICC conversion produce.
PacketWork
The packet work bound,
DecodeOptions::packet_work_limit,
on reading the packet headers.
CodeBlockWork
The code-block work bound,
DecodeOptions::code_block_work_limit,
on decoding the code-blocks.
AddressSpace
An image of more samples than the target can address, refused under any sample limit.
TileCodeBlocks
A tile of more than 2^20 code-blocks.
TilePrecincts
A tile of more than 2^18 precincts.
PocVolumes
A tile’s progression order change (POC) volumes past a fixed cap:
more than 32 of them, or more packets than the decoder tracks for
them.
BitPlanes
A code-block of more than 30 bit-planes.
Implementations§
Source§impl LimitKind
impl LimitKind
Sourcepub fn is_adjustable(self) -> bool
pub fn is_adjustable(self) -> bool
Whether a DecodeOptions limit raises this
one: true for Samples,
PacketWork and
CodeBlockWork.