blad-container 0.0.3

Container parsing and lossless skeleton/payload decomposition for image files
Documentation
  • Coverage
  • 41.43%
    29 out of 70 items documented0 out of 24 items with examples
  • Size
  • Source code size: 46.58 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.34 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • n0tbhargav/blad
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • n0tbhargav

Container parsing and lossless decomposition.

The central idea: any image file can be described as an ordered list of byte [Segment]s covering it completely and without overlap. Most segments are [SegmentKind::Verbatim] — headers, IFDs, metadata, previews — and are stored as-is because they are small and not worth modelling. One or more segments are [SegmentKind::Image], holding raw pixel or sensor data, and those are worth handing to a real image codec.

Reassembling the segments in src_offset order must reproduce the original file byte for byte. That property is the entire contract, and it is what makes archival safe: we never need to understand a file completely, only the parts we choose to recompress.