Crate zune_hdr

Source
Expand description

A RADIANCE HDR decoder and encoder

§Features

  • Minimal interface, few dependencies
  • Fast.
  • No unsafe
  • Fuzz tested decoder

§Usage notes

The decoder returns data in &[f32] types with the exponent already added to the numbers it does not return raw data nor does it expose the ability to do so.

§Metadata

  • Radiance images usually store metadata in key value pairs. During decoding, we extract this metadata from the headers into a hashmap for which we provide via get_metadata method, the decoder does not in any way interpret the metadata to understand the image characteristics or colorspace, it is the caller’s work to do that.

Some important metadata include the image colorspace, which may be present or not, color primaries, exposure,gamma e.t.c,

Re-exports§

pub use zune_core;

Structs§

HdrDecoder
A simple radiance HDR decoder
HdrEncoder
A simple HDR encoder

Enums§

HdrDecodeErrors
HDR decoding errors
HdrEncodeErrors
HDR encoding errrors