| 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 | #![allow(clippy::manual_clamp, clippy::excessive_precision)] |
| 30 | #![cfg_attr(docsrs, feature(doc_cfg))] |
| 31 | #![deny(unreachable_pub)] |
| 32 | #![deny( |
| 33 | clippy::print_stdout, |
| 34 | clippy::print_stderr, |
| 35 | clippy::print_literal, |
| 36 | clippy::print_in_format_impl |
| 37 | )] |
| 38 | #![allow(stable_features)] |
| 39 | #![cfg_attr( |
| 40 | not(any(feature = "avx", feature = "sse", feature = "avx512", feature = "neon",)), |
| 41 | forbid(unsafe_code) |
| 42 | )] |
| 43 | mod chadrust-analyzer cargo moxcms 0.8.1 chad/; |
| 44 | mod cicprust-analyzer cargo moxcms 0.8.1 cicp/; |
| 45 | mod conversionsrust-analyzer cargo moxcms 0.8.1 conversions/; |
| 46 | mod datrust-analyzer cargo moxcms 0.8.1 dat/; |
| 47 | mod defaultsrust-analyzer cargo moxcms 0.8.1 defaults/; |
| 48 | mod errrust-analyzer cargo moxcms 0.8.1 err/; |
| 49 | mod gammarust-analyzer cargo moxcms 0.8.1 gamma/; |
| 50 | mod gamutrust-analyzer cargo moxcms 0.8.1 gamut/; |
| 51 | mod ictcprust-analyzer cargo moxcms 0.8.1 ictcp/; |
| 52 | mod jzazbzrust-analyzer cargo moxcms 0.8.1 jzazbz/; |
| 53 | mod jzczhzrust-analyzer cargo moxcms 0.8.1 jzczhz/; |
| 54 | mod labrust-analyzer cargo moxcms 0.8.1 lab/; |
| 55 | mod luvrust-analyzer cargo moxcms 0.8.1 luv/; |
| 56 | /// One of main intent is to provide fast math available in const context |
| 57 | /// ULP most of the methods <= 0.5 |
| 58 | mod mathrust-analyzer cargo moxcms 0.8.1 math/; |
| 59 | mod matrixrust-analyzer cargo moxcms 0.8.1 matrix/; |
| 60 | mod mlafrust-analyzer cargo moxcms 0.8.1 mlaf/; |
| 61 | mod nd_arrayrust-analyzer cargo moxcms 0.8.1 nd_array/; |
| 62 | mod oklabrust-analyzer cargo moxcms 0.8.1 oklab/; |
| 63 | mod oklchrust-analyzer cargo moxcms 0.8.1 oklch/; |
| 64 | mod profilerust-analyzer cargo moxcms 0.8.1 profile/; |
| 65 | mod readerrust-analyzer cargo moxcms 0.8.1 reader/; |
| 66 | mod rgbrust-analyzer cargo moxcms 0.8.1 rgb/; |
| 67 | mod safe_mathrust-analyzer cargo moxcms 0.8.1 safe_math/; |
| 68 | mod tagrust-analyzer cargo moxcms 0.8.1 tag/; |
| 69 | mod transformrust-analyzer cargo moxcms 0.8.1 transform/; |
| 70 | mod trcrust-analyzer cargo moxcms 0.8.1 trc/; |
| 71 | mod writerrust-analyzer cargo moxcms 0.8.1 writer/; |
| 72 | mod yrgrust-analyzer cargo moxcms 0.8.1 yrg/; |
| 73 | // Simple math analysis module |
| 74 | mod chromaticityrust-analyzer cargo moxcms 0.8.1 chromaticity/; |
| 75 | mod dt_ucsrust-analyzer cargo moxcms 0.8.1 dt_ucs/; |
| 76 | mod helpersrust-analyzer cargo moxcms 0.8.1 helpers/; |
| 77 | mod interceptorsrust-analyzer cargo moxcms 0.8.1 interceptors/; |
| 78 | mod lut_hintrust-analyzer cargo moxcms 0.8.1 lut_hint/; |
| 79 | mod matanrust-analyzer cargo moxcms 0.8.1 matan/; |
| 80 | mod srlab2rust-analyzer cargo moxcms 0.8.1 srlab2/; |
| 81 | mod xyyrust-analyzer cargo moxcms 0.8.1 xyy/; |
| 82 | |
| 83 | pub use chadrust-analyzer cargo moxcms 0.8.1 chad/::{ |
| 84 | adapt_to_d50rust-analyzer cargo moxcms 0.8.1 chad/adapt_to_d50()., adapt_to_d50_drust-analyzer cargo moxcms 0.8.1 chad/adapt_to_d50_d()., adapt_to_illuminantrust-analyzer cargo moxcms 0.8.1 chad/adapt_to_illuminant()., adapt_to_illuminant_drust-analyzer cargo moxcms 0.8.1 chad/adapt_to_illuminant_d()., |
| 85 | adapt_to_illuminant_xyzrust-analyzer cargo moxcms 0.8.1 chad/adapt_to_illuminant_xyz()., adapt_to_illuminant_xyz_drust-analyzer cargo moxcms 0.8.1 chad/adapt_to_illuminant_xyz_d()., adaption_matrixrust-analyzer cargo moxcms 0.8.1 chad/adaption_matrix()., adaption_matrix_drust-analyzer cargo moxcms 0.8.1 chad/adaption_matrix_d()., |
| 86 | }; |
| 87 | pub use chromaticityrust-analyzer cargo moxcms 0.8.1 chromaticity/::Chromaticityrust-analyzer cargo moxcms 0.8.1 chromaticity/Chromaticity#; |
| 88 | pub use cicprust-analyzer cargo moxcms 0.8.1 cicp/::{CicpColorPrimariesrust-analyzer cargo moxcms 0.8.1 cicp/CicpColorPrimaries#, ColorPrimariesrust-analyzer cargo moxcms 0.8.1 cicp/ColorPrimaries#, MatrixCoefficientsrust-analyzer cargo moxcms 0.8.1 cicp/MatrixCoefficients#, TransferCharacteristicsrust-analyzer cargo moxcms 0.8.1 cicp/TransferCharacteristics#}; |
| 89 | pub use datrust-analyzer cargo moxcms 0.8.1 dat/::ColorDateTimerust-analyzer cargo moxcms 0.8.1 dat/ColorDateTime#; |
| 90 | pub use defaultsrust-analyzer cargo moxcms 0.8.1 defaults/::{ |
| 91 | HLG_LUT_TABLErust-analyzer cargo moxcms 0.8.1 defaults/HLG_LUT_TABLE., PQ_LUT_TABLErust-analyzer cargo moxcms 0.8.1 defaults/PQ_LUT_TABLE., WHITE_POINT_D50rust-analyzer cargo moxcms 0.8.1 defaults/WHITE_POINT_D50., WHITE_POINT_D60rust-analyzer cargo moxcms 0.8.1 defaults/WHITE_POINT_D60., WHITE_POINT_D65rust-analyzer cargo moxcms 0.8.1 defaults/WHITE_POINT_D65., |
| 92 | WHITE_POINT_DCI_P3rust-analyzer cargo moxcms 0.8.1 defaults/WHITE_POINT_DCI_P3., |
| 93 | }; |
| 94 | pub use dt_ucsrust-analyzer cargo moxcms 0.8.1 dt_ucs/::{DtUchHcbrust-analyzer cargo moxcms 0.8.1 dt_ucs/DtUchHcb#, DtUchHsbrust-analyzer cargo moxcms 0.8.1 dt_ucs/DtUchHsb#, DtUchJchrust-analyzer cargo moxcms 0.8.1 dt_ucs/DtUchJch#}; |
| 95 | pub use errrust-analyzer cargo moxcms 0.8.1 err/::{CmsErrorrust-analyzer cargo moxcms 0.8.1 err/CmsError#, MalformedSizerust-analyzer cargo moxcms 0.8.1 err/MalformedSize#}; |
| 96 | pub use gamutrust-analyzer cargo moxcms 0.8.1 gamut/::filmlike_cliprust-analyzer cargo moxcms 0.8.1 gamut/filmlike_clip().; |
| 97 | pub use ictcprust-analyzer cargo moxcms 0.8.1 ictcp/::ICtCprust-analyzer cargo moxcms 0.8.1 ictcp/ICtCp#; |
| 98 | pub use jzazbzrust-analyzer cargo moxcms 0.8.1 jzazbz/::Jzazbzrust-analyzer cargo moxcms 0.8.1 jzazbz/Jzazbz#; |
| 99 | pub use jzczhzrust-analyzer cargo moxcms 0.8.1 jzczhz/::Jzczhzrust-analyzer cargo moxcms 0.8.1 jzczhz/Jzczhz#; |
| 100 | pub use labrust-analyzer cargo moxcms 0.8.1 lab/::Labrust-analyzer cargo moxcms 0.8.1 lab/Lab#; |
| 101 | pub use luvrust-analyzer cargo moxcms 0.8.1 luv/::{LChrust-analyzer cargo moxcms 0.8.1 luv/LCh#, Luvrust-analyzer cargo moxcms 0.8.1 luv/Luv#}; |
| 102 | pub use mathrust-analyzer cargo moxcms 0.8.1 math/::rounding_div_ceilrust-analyzer cargo moxcms 0.8.1 math/rounding_div_ceil().; |
| 103 | pub use matrixrust-analyzer cargo moxcms 0.8.1 matrix/::{ |
| 104 | BT2020_MATRIXrust-analyzer cargo moxcms 0.8.1 matrix/BT2020_MATRIX., DISPLAY_P3_MATRIXrust-analyzer cargo moxcms 0.8.1 matrix/DISPLAY_P3_MATRIX., Matrix3rust-analyzer cargo moxcms 0.8.1 matrix/Matrix3#, Matrix3drust-analyzer cargo moxcms 0.8.1 matrix/Matrix3d#, Matrix3frust-analyzer cargo moxcms 0.8.1 matrix/Matrix3f#, Matrix4frust-analyzer cargo moxcms 0.8.1 matrix/Matrix4f#, SRGB_MATRIXrust-analyzer cargo moxcms 0.8.1 matrix/SRGB_MATRIX., Vector3rust-analyzer cargo moxcms 0.8.1 matrix/Vector3#, |
| 105 | Vector3drust-analyzer cargo moxcms 0.8.1 matrix/Vector3d#, Vector3frust-analyzer cargo moxcms 0.8.1 matrix/Vector3f#, Vector3irust-analyzer cargo moxcms 0.8.1 matrix/Vector3i#, Vector3urust-analyzer cargo moxcms 0.8.1 matrix/Vector3u#, Vector4rust-analyzer cargo moxcms 0.8.1 matrix/Vector4#, Vector4drust-analyzer cargo moxcms 0.8.1 matrix/Vector4d#, Vector4frust-analyzer cargo moxcms 0.8.1 matrix/Vector4f#, Vector4irust-analyzer cargo moxcms 0.8.1 matrix/Vector4i#, Xyzrust-analyzer cargo moxcms 0.8.1 matrix/Xyz#, Xyzdrust-analyzer cargo moxcms 0.8.1 matrix/Xyzd#, |
| 106 | }; |
| 107 | pub use nd_arrayrust-analyzer cargo moxcms 0.8.1 nd_array/::{Cuberust-analyzer cargo moxcms 0.8.1 nd_array/Cube#, Hypercuberust-analyzer cargo moxcms 0.8.1 nd_array/Hypercube#}; |
| 108 | pub use oklabrust-analyzer cargo moxcms 0.8.1 oklab/::Oklabrust-analyzer cargo moxcms 0.8.1 oklab/Oklab#; |
| 109 | pub use oklchrust-analyzer cargo moxcms 0.8.1 oklch/::Oklchrust-analyzer cargo moxcms 0.8.1 oklch/Oklch#; |
| 110 | pub use profilerust-analyzer cargo moxcms 0.8.1 profile/::{ |
| 111 | CicpProfilerust-analyzer cargo moxcms 0.8.1 profile/CicpProfile#, ColorProfilerust-analyzer cargo moxcms 0.8.1 profile/ColorProfile#, DataColorSpacerust-analyzer cargo moxcms 0.8.1 profile/DataColorSpace#, DescriptionStringrust-analyzer cargo moxcms 0.8.1 profile/DescriptionString#, LocalizableStringrust-analyzer cargo moxcms 0.8.1 profile/LocalizableString#, LutDataTyperust-analyzer cargo moxcms 0.8.1 profile/LutDataType#, |
| 112 | LutMultidimensionalTyperust-analyzer cargo moxcms 0.8.1 profile/LutMultidimensionalType#, LutStorerust-analyzer cargo moxcms 0.8.1 profile/LutStore#, LutTyperust-analyzer cargo moxcms 0.8.1 profile/LutType#, LutWarehouserust-analyzer cargo moxcms 0.8.1 profile/LutWarehouse#, Measurementrust-analyzer cargo moxcms 0.8.1 profile/Measurement#, MeasurementGeometryrust-analyzer cargo moxcms 0.8.1 profile/MeasurementGeometry#, |
| 113 | ParsingOptionsrust-analyzer cargo moxcms 0.8.1 profile/ParsingOptions#, ProfileClassrust-analyzer cargo moxcms 0.8.1 profile/ProfileClass#, ProfileSignaturerust-analyzer cargo moxcms 0.8.1 profile/ProfileSignature#, ProfileTextrust-analyzer cargo moxcms 0.8.1 profile/ProfileText#, ProfileVersionrust-analyzer cargo moxcms 0.8.1 profile/ProfileVersion#, RenderingIntentrust-analyzer cargo moxcms 0.8.1 profile/RenderingIntent#, |
| 114 | StandardIlluminantrust-analyzer cargo moxcms 0.8.1 profile/StandardIlluminant#, StandardObserverrust-analyzer cargo moxcms 0.8.1 profile/StandardObserver#, TechnologySignaturesrust-analyzer cargo moxcms 0.8.1 profile/TechnologySignatures#, ViewingConditionsrust-analyzer cargo moxcms 0.8.1 profile/ViewingConditions#, |
| 115 | }; |
| 116 | pub use rgbrust-analyzer cargo moxcms 0.8.1 rgb/::{FusedExprust-analyzer cargo moxcms 0.8.1 rgb/FusedExp#, FusedExp2rust-analyzer cargo moxcms 0.8.1 rgb/FusedExp2#, FusedExp10rust-analyzer cargo moxcms 0.8.1 rgb/FusedExp10#, FusedLogrust-analyzer cargo moxcms 0.8.1 rgb/FusedLog#, FusedLog2rust-analyzer cargo moxcms 0.8.1 rgb/FusedLog2#, FusedLog10rust-analyzer cargo moxcms 0.8.1 rgb/FusedLog10#, FusedPowrust-analyzer cargo moxcms 0.8.1 rgb/FusedPow#, Rgbrust-analyzer cargo moxcms 0.8.1 rgb/Rgb#}; |
| 117 | pub use srlab2rust-analyzer cargo moxcms 0.8.1 srlab2/::Srlab2rust-analyzer cargo moxcms 0.8.1 srlab2/Srlab2#; |
| 118 | pub use transformrust-analyzer cargo moxcms 0.8.1 transform/::{ |
| 119 | BarycentricWeightScalerust-analyzer cargo moxcms 0.8.1 transform/BarycentricWeightScale#, InPlaceStagerust-analyzer cargo moxcms 0.8.1 transform/InPlaceStage#, InPlaceTransformExecutorrust-analyzer cargo moxcms 0.8.1 transform/InPlaceTransformExecutor#, InterpolationMethodrust-analyzer cargo moxcms 0.8.1 transform/InterpolationMethod#, Layoutrust-analyzer cargo moxcms 0.8.1 transform/Layout#, |
| 120 | PointeeSizeExpressiblerust-analyzer cargo moxcms 0.8.1 transform/PointeeSizeExpressible#, Stagerust-analyzer cargo moxcms 0.8.1 transform/Stage#, Transform8BitExecutorrust-analyzer cargo moxcms 0.8.1 transform/Transform8BitExecutor#, Transform16BitExecutorrust-analyzer cargo moxcms 0.8.1 transform/Transform16BitExecutor#, |
| 121 | TransformExecutorrust-analyzer cargo moxcms 0.8.1 transform/TransformExecutor#, TransformF32Executorrust-analyzer cargo moxcms 0.8.1 transform/TransformF32Executor#, TransformF64Executorrust-analyzer cargo moxcms 0.8.1 transform/TransformF64Executor#, TransformOptionsrust-analyzer cargo moxcms 0.8.1 transform/TransformOptions#, |
| 122 | }; |
| 123 | pub use trcrust-analyzer cargo moxcms 0.8.1 trc/::{ |
| 124 | GammaLutInterpolaterust-analyzer cargo moxcms 0.8.1 trc/GammaLutInterpolate#, ParametricCurverust-analyzer cargo moxcms 0.8.1 trc/ParametricCurve#, ToneCurveEvaluatorrust-analyzer cargo moxcms 0.8.1 trc/ToneCurveEvaluator#, ToneReprCurverust-analyzer cargo moxcms 0.8.1 trc/ToneReprCurve#, curve_from_gammarust-analyzer cargo moxcms 0.8.1 trc/curve_from_gamma()., |
| 125 | }; |
| 126 | pub use xyyrust-analyzer cargo moxcms 0.8.1 xyy/::{XyYrust-analyzer cargo moxcms 0.8.1 xyy/XyY#, XyYRepresentablerust-analyzer cargo moxcms 0.8.1 xyy/XyYRepresentable#}; |
| 127 | pub use yrgrust-analyzer cargo moxcms 0.8.1 yrg/::{Ychrust-analyzer cargo moxcms 0.8.1 yrg/Ych#, Yrgrust-analyzer cargo moxcms 0.8.1 yrg/Yrg#, cie_y_1931_to_cie_y_2006rust-analyzer cargo moxcms 0.8.1 yrg/cie_y_1931_to_cie_y_2006().}; |