Debian Codegraph @

.cargo/vendor/moxcms/src/conversions/mod.rs

raw
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"))]
30 mod avx;
31 #[cfg(all(target_arch = "x86_64", feature = "avx512"))]
32 mod avx512;
33 mod bpc;
34 mod gray2rgb;
35 mod gray2rgb_extended;
36 mod interpolator;
37 mod katana;
38 mod lut3x3;
39 mod lut3x4;
40 mod lut4;
41 mod lut_transforms;
42 mod mab;
43 mod mab4x3;
44 mod mba3x4;
45 mod md_lut;
46 mod md_luts_factory;
47 #[cfg(all(target_arch = "aarch64", target_feature = "neon", feature = "neon"))]
48 mod neon;
49 mod prelude_lut_xyz_rgb;
50 mod rgb2gray;
51 mod rgb2gray_extended;
52 mod rgb_xyz_factory;
53 mod rgbxyz;
54 mod rgbxyz_fixed;
55 mod rgbxyz_float;
56 #[cfg(all(any(target_arch = "x86", target_arch = "x86_64"), feature = "sse"))]
57 mod sse;
58 mod transform_lut3_to_3;
59 mod transform_lut3_to_4;
60 mod transform_lut4_to_3;
61 mod xyz_lab;
62
63 pub(crate) use gray2rgb::{make_gray_to_unfused, make_gray_to_x};
64 pub(crate) use gray2rgb_extended::{make_gray_to_one_trc_extended, make_gray_to_rgb_extended};
65 pub(crate) use interpolator::LutBarycentricReduction;
66 pub(crate) use lut_transforms::make_lut_transform;
67 pub(crate) use rgb_xyz_factory::{RgbXyzFactory, RgbXyzFactoryOpt};
68 pub(crate) use rgb2gray::{ToneReproductionRgbToGray, make_rgb_to_gray};
69 pub(crate) use rgb2gray_extended::make_rgb_to_gray_extended;
70 pub(crate) use rgbxyz::{TransformMatrixShaper, TransformMatrixShaperOptimized};
71 pub(crate) use rgbxyz_float::{
72 TransformShaperFloatInOut, TransformShaperRgbFloat, make_rgb_xyz_rgb_transform_float,
73 make_rgb_xyz_rgb_transform_float_in_out,
74 };