jpegxl_rs/
lib.rs

1/*
2This file is part of jpegxl-rs.
3
4jpegxl-rs is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 3 of the License, or
7(at your option) any later version.
8
9jpegxl-rs is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with jpegxl-rs.  If not, see <https://www.gnu.org/licenses/>.
16*/
17
18#![cfg_attr(docsrs, feature(doc_auto_cfg))]
19#![cfg_attr(coverage_nightly, feature(coverage_attribute))]
20#![doc = include_str!("../README.md")]
21
22#[macro_use]
23extern crate derive_builder;
24
25mod common;
26pub mod decode;
27pub mod encode;
28mod errors;
29pub mod memory;
30pub mod parallel;
31pub mod utils;
32
33#[cfg(feature = "image")]
34pub mod image;
35
36#[cfg(test)]
37mod tests;
38
39pub use common::Endianness;
40pub use decode::decoder_builder;
41pub use encode::encoder_builder;
42pub use errors::{DecodeError, EncodeError};
43
44pub use parallel::resizable_runner::ResizableRunner;
45pub use parallel::threads_runner::ThreadsRunner;