Skip to main content

alpha2_extensions/
lib.rs

1//! Extension providers for formats the host's video and image decoders do not read.
2//!
3//! A provider probes bytes (never a file name) and opens a source that returns frames by source
4//! time. The host registers providers in priority order; the engine and renderer never see them.
5//! Each format is a cargo feature, and a build without one reports that format as unsupported.
6
7#[cfg(feature = "animated-image")]
8mod animated;
9mod api;
10mod budget;
11#[cfg(feature = "exr")]
12mod exr;
13#[cfg(feature = "latex")]
14mod latex;
15#[cfg(feature = "lottie")]
16mod lottie;
17#[cfg(feature = "pdf")]
18mod pdf;
19mod progress;
20#[cfg(any(
21    feature = "animated-image",
22    feature = "image-sequence",
23    feature = "lottie"
24))]
25mod raster;
26mod registry;
27#[cfg(feature = "image-sequence")]
28mod sequence;
29#[cfg(feature = "svg")]
30mod svg;
31#[cfg(test)]
32mod tests;
33
34#[cfg(feature = "animated-image")]
35pub use animated::AnimatedImageProvider;
36pub use api::{
37    ColorOrigin, Diagnostic, ExtensionError, Format, FramePixels, LinearColor,
38    MAX_NORMALIZED_DELAY_MS, NORMALIZED_DELAY_MS, NoResources, ProbeReport, ResourceResolver,
39    SharedResolver, Timing, VisualFrame, VisualProvider, VisualSource, premultiply,
40};
41pub use budget::{
42    DEFAULT_FRAME_BUDGET, MAX_ANIMATION_FRAMES, MAX_ANIMATION_PIXELS, MAX_CANVAS_PIXELS,
43    MAX_CANVAS_SIDE, MAX_SOURCE_IMAGE_PIXELS, check_canvas, check_document_size,
44    check_image_pixels, document_limit,
45};
46#[cfg(feature = "exr")]
47pub use exr::ExrProvider;
48#[cfg(feature = "latex")]
49pub use latex::open_latex;
50#[cfg(feature = "lottie")]
51pub use lottie::LottieProvider;
52#[cfg(feature = "pdf")]
53pub use pdf::PdfProvider;
54pub use progress::{ProgressWatch, watch_progress};
55pub use registry::Registry;
56#[cfg(feature = "image-sequence")]
57pub use sequence::open_sequence;
58#[cfg(feature = "svg")]
59pub use svg::SvgProvider;