moxcms/conversions/
mod.rs

1/*
2 * // Copyright (c) Radzivon Bartoshyk 2/2025. All rights reserved.
3 * //
4 * // Redistribution and use in source and binary forms, with or without modification,
5 * // are permitted provided that the following conditions are met:
6 * //
7 * // 1.  Redistributions of source code must retain the above copyright notice, this
8 * // list of conditions and the following disclaimer.
9 * //
10 * // 2.  Redistributions in binary form must reproduce the above copyright notice,
11 * // this list of conditions and the following disclaimer in the documentation
12 * // and/or other materials provided with the distribution.
13 * //
14 * // 3.  Neither the name of the copyright holder nor the names of its
15 * // contributors may be used to endorse or promote products derived from
16 * // this software without specific prior written permission.
17 * //
18 * // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 * // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 * // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 * // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22 * // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24 * // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25 * // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26 * // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 * // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29#[cfg(all(target_arch = "x86_64", feature = "avx"))]
30mod avx;
31#[cfg(all(target_arch = "x86_64", feature = "avx512"))]
32mod avx512;
33mod bpc;
34mod gray2rgb;
35mod gray2rgb_extended;
36mod interpolator;
37mod katana;
38mod lut3x3;
39mod lut3x4;
40mod lut4;
41mod lut_transforms;
42mod mab;
43mod mab4x3;
44mod mba3x4;
45mod md_lut;
46mod md_luts_factory;
47#[cfg(all(target_arch = "aarch64", target_feature = "neon", feature = "neon"))]
48mod neon;
49mod prelude_lut_xyz_rgb;
50mod rgb2gray;
51mod rgb2gray_extended;
52mod rgb_xyz_factory;
53mod rgbxyz;
54mod rgbxyz_fixed;
55mod rgbxyz_float;
56#[cfg(all(any(target_arch = "x86", target_arch = "x86_64"), feature = "sse"))]
57mod sse;
58mod transform_lut3_to_3;
59mod transform_lut3_to_4;
60mod transform_lut4_to_3;
61mod xyz_lab;
62
63pub(crate) use gray2rgb::{make_gray_to_unfused, make_gray_to_x};
64pub(crate) use gray2rgb_extended::{make_gray_to_one_trc_extended, make_gray_to_rgb_extended};
65pub(crate) use interpolator::LutBarycentricReduction;
66pub(crate) use lut_transforms::make_lut_transform;
67pub(crate) use rgb_xyz_factory::{RgbXyzFactory, RgbXyzFactoryOpt};
68pub(crate) use rgb2gray::{ToneReproductionRgbToGray, make_rgb_to_gray};
69pub(crate) use rgb2gray_extended::make_rgb_to_gray_extended;
70pub(crate) use rgbxyz::{TransformMatrixShaper, TransformMatrixShaperOptimized};
71pub(crate) use rgbxyz_float::{
72    TransformShaperFloatInOut, TransformShaperRgbFloat, make_rgb_xyz_rgb_transform_float,
73    make_rgb_xyz_rgb_transform_float_in_out,
74};