Skip to main content

Crate manifold

Crate manifold 

Source
Expand description

Manifold: lossless RGB8 shared-patch-atlas image codecs (MNF5/6/7/8).

NOTE on names: the published package is manifold-codec, but the lib target is manifold (the original crate name, kept for path stability). Depend on manifold-codec in Cargo.toml and import as manifold:

[dependencies]
manifold-codec = "1.3"
use manifold::codec::Dims;

Entry points:

Decoding is deterministic integer arithmetic (no float, no allocation beyond the pixel buffer). Formats are frozen at v1.x; malformed input returns error::Error::Format, never a panic.

Modulesยง

codec
MNF5 (v0.5 format): atlas codec, zlib container.
error
Shared error and Result types for the whole library.
img
Image-I/O shims (JPEG/PNG load, PNG save) โ€” image-io feature.
mnf6
MNF6/7: zstd container, planar packing, YCoCg + modular color modes. decode_mnf7 accepts both magics.
mnf8
MNF8: versioned backend-byte container (zlib/zstd-19), profiles, FLAG_PRED_MED.
refdecode
Independent MNF5 decoder (differential-testing instrument).
tokens
LZ77-2D token engine (MNF8 FLAG_TOKENS; the retained ladder arm).