Skip to main content

kreuzberg_libheif/
lib.rs

1//! # kreuzberg-libheif
2//!
3//! Vendored from [libheif-rs](https://github.com/Cykooz/libheif-rs) v2.7.0 — MIT,
4//! Kirill Kuzminykh (Cykooz). See `ATTRIBUTIONS.md` at the repository root.
5//!
6//! Safe wrapper around the `libheif-sys` crate for parsing HEIF / HEIC / AVIF
7//! files. The public API mirrors upstream libheif-rs v2.7.0.
8
9// only enables the `doc_cfg` feature when
10// the `docsrs` configuration attribute is defined
11#![cfg_attr(docsrs, feature(doc_cfg))]
12extern crate core;
13
14pub use color_profile::*;
15pub use context::HeifContext;
16pub use decoder::*;
17pub use encoder::*;
18pub use enums::*;
19pub use errors::{HeifError, HeifErrorCode, HeifErrorSubCode, Result};
20pub use heif::*;
21pub use image::*;
22pub use image_handle::{AuxiliaryImagesFilter, ImageHandle, ItemId};
23pub use metadata::ImageMetadata;
24pub use reader::{Reader, StreamReader};
25#[cfg(feature = "v1_19")]
26pub use security_limits::*;
27#[cfg(feature = "v1_20")]
28pub use track::*;
29pub use utils::check_file_type;
30mod color_profile;
31mod context;
32mod decoder;
33mod encoder;
34mod enums;
35mod errors;
36mod heif;
37mod image;
38mod image_handle;
39#[cfg(feature = "image")]
40pub mod integration;
41mod metadata;
42mod reader;
43#[cfg(feature = "v1_18")]
44pub mod regions;
45#[cfg(feature = "v1_19")]
46mod security_limits;
47#[cfg(feature = "v1_20")]
48mod track;
49mod utils;