Skip to main content

mini_film/
lib.rs

1#![cfg_attr(target_arch = "x86_64", feature(portable_simd))]
2
3mod adjustments;
4mod grain;
5mod hald;
6mod model;
7mod nikon;
8mod pp3;
9mod rgb_table;
10pub mod util;
11mod xmp;
12
13pub use grain::{apply_grain, apply_grain_8bit};
14pub use hald::{
15    convert_dir, convert_path, convert_xmp_to_hald, profile_display_name, profile_info_line,
16    try_convert_dir, write_hald_png, write_hald_png_with_adjustments,
17};
18pub use model::{
19    BatchSummary, CalibrationAdjustments, ConvertedProfile, GrainSettings, HaldOptions,
20    HslAdjustments, ParametricTone, ProfileAdjustments, RgbTable, SharpeningSettings, ToneCurves,
21    XmpFilmRecipe, XmpRgbTable, dummy_converted_profile, non_default_adjustments,
22};
23pub use nikon::{
24    NikonPictureControl, NikonReport, fit_nikon_picture_control,
25    fit_nikon_picture_control_from_hald, write_ncp, write_report,
26};
27pub use pp3::{
28    rawtherapee_hald_clut_profile_text, rawtherapee_profile_text, rawtherapee_resize_profile_text,
29    write_rawtherapee_profile, write_rawtherapee_resize_profile,
30};
31pub use rgb_table::{decode_rgb_table, parse_rgb_table, sample_rgb_table};
32pub use util::{
33    SUPPORTED_RAW_EXTENSIONS, configure_threads, cpu_thread_count, default_hald_dir,
34    half_cpu_thread_count, is_supported_raw_file, remove_temp_file, time_of_day_seed,
35};
36pub use xmp::{extract_film_recipe, extract_rgb_table};