Skip to main content

Crate flashraw_core

Crate flashraw_core 

Source
Expand description

§flashraw-core

Foundation crate of FlashRaw: structured errors, bounds-checked zero-copy byte access, high-throughput bit pumps, Huffman decoding, TIFF/BMFF container parsing, sensor-domain value types, and the RawDecoder contract that every format implements.

Most users want the flashraw crate instead.

Re-exports§

pub use bytes::ByteOrder;
pub use bytes::Cursor;
pub use bytes::ReadAt;
pub use decoder::DecodeContext;
pub use decoder::DecodeUnit;
pub use decoder::FrameInfo;
pub use decoder::PackOrder;
pub use decoder::PackedPayload;
pub use decoder::RandomAccess;
pub use decoder::RawDecoder;
pub use decoder::SampleFormat;
pub use image::Limits;
pub use image::PixelData;
pub use image::RawImage;
pub use image::alloc_zeroed;
pub use image::max_nonneg_bits;
pub use integrity::CorruptReason;
pub use integrity::DataUnit;
pub use integrity::DecodeWarning;
pub use integrity::RowGeometry;
pub use integrity::SensorBytes;
pub use integrity::Truncation;
pub use metadata::DngExtras;
pub use metadata::DngProfileInfo;
pub use metadata::EXTRA_CROP_SOURCE;
pub use metadata::EXTRA_IMAGE_SIZE;
pub use metadata::ExposureInfo;
pub use metadata::GpsInfo;
pub use metadata::LensInfo;
pub use metadata::PreviewEncoding;
pub use metadata::PreviewInfo;
pub use metadata::PreviewKind;
pub use metadata::RawMetadata;
pub use orientation::OrientationMetadata;
pub use orientation::OrientationPolicy;
pub use orientation::OrientationSource;
pub use profile::Profiler;
pub use profile::Stage;
pub use types::*;

Modules§

bits
High-throughput bit readers (“bit pumps”).
bmff
ISO Base Media File Format (ISO/IEC 14496-12) box parsing, used by CR3.
bytes
Bounds-checked, zero-copy byte access.
decoder
The contract between container/format decoders and the high-level API.
exif
Standard EXIF/TIFF metadata extraction into RawMetadata.
huffman
Canonical Huffman decoding (JPEG DHT style) with lookup-table acceleration.
image
Decoded pixel storage.
integrity
Integrity of the sensor payload: structured truncation reports, decode warnings, and the range checks every format runs before it reads sensor bytes.
metadata
Normalised camera/capture metadata and embedded preview descriptors.
orientation
Where an image’s orientation comes from, and how competing records are resolved.
par
Parallel execution helpers that degrade to sequential execution when the rayon feature is disabled (e.g. single-threaded WASM) or parallelism is off.
profile
Lightweight stage profiling and a portable clock.
simd
Runtime CPU feature detection shared by SIMD kernels.
tiff
Zero-copy TIFF / TIFF-EP / DNG IFD parsing.
types
Sensor-domain value types: geometry, CFA layouts, levels, colour calibration.

Macros§

bail_corrupt
Return early with a Error::CorruptFile.
ensure_corrupt
Ensure a condition holds, otherwise return a Error::CorruptFile.

Enums§

Error
All errors produced while parsing or decoding a RAW file.

Type Aliases§

Result
Result alias used throughout FlashRaw.