rawshift-core 0.1.1

Shared core types for rawshift (geometry, pixel samples, metadata model)
Documentation
  • Coverage
  • 95%
    247 out of 260 items documented0 out of 115 items with examples
  • Size
  • Source code size: 58.99 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.58 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • justin13888

rawshift-core

Shared core types for rawshift — geometry, pixel samples, and the format-agnostic metadata model.

This crate holds pure, stateless data structures with no decoding logic. It is depended on by both rawshift-image and rawshift-video so they share one vocabulary of types without either pulling in the other. Most consumers should depend on the rawshift facade rather than this crate directly.

What's here

  • GeometrySize, Point, Rect.
  • Pixel samplesSample, Rgb/Rgba (8-bit, 16-bit, and f32 variants), and the FromF32 conversion trait.
  • Image containers — raw/RGB image types and CFA descriptors (XTransPattern).
  • ColorBitDepth, ColorSpace.
  • Codec descriptorsCodecId, CodecInfo, CodecDirection, MetadataEmbedOptions.
  • Metadata modelImageMetadata, MetadataEntry, MetadataKey, MetadataValue, MetadataNamespace, and the MetadataExtractor trait.

Feature Flags

  • serde — derive Serialize/Deserialize for the metadata and option types.

License

Licensed under MPL-2.0.