diff options
author | Valentin Popov <valentin@popov.link> | 2024-07-19 15:37:58 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-07-19 15:37:58 +0300 |
commit | a990de90fe41456a23e58bd087d2f107d321f3a1 (patch) | |
tree | 15afc392522a9e85dc3332235e311b7d39352ea9 /vendor/png/src/srgb.rs | |
parent | 3d48cd3f81164bbfc1a755dc1d4a9a02f98c8ddd (diff) | |
download | fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.tar.xz fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.zip |
Deleted vendor folder
Diffstat (limited to 'vendor/png/src/srgb.rs')
-rw-r--r-- | vendor/png/src/srgb.rs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/vendor/png/src/srgb.rs b/vendor/png/src/srgb.rs deleted file mode 100644 index 2780e42..0000000 --- a/vendor/png/src/srgb.rs +++ /dev/null @@ -1,30 +0,0 @@ -use crate::{ScaledFloat, SourceChromaticities}; - -/// Get the gamma that should be substituted for images conforming to the sRGB color space. -pub fn substitute_gamma() -> ScaledFloat { - // Value taken from https://www.w3.org/TR/2003/REC-PNG-20031110/#11sRGB - ScaledFloat::from_scaled(45455) -} - -/// Get the chromaticities that should be substituted for images conforming to the sRGB color space. -pub fn substitute_chromaticities() -> SourceChromaticities { - // Values taken from https://www.w3.org/TR/2003/REC-PNG-20031110/#11sRGB - SourceChromaticities { - white: ( - ScaledFloat::from_scaled(31270), - ScaledFloat::from_scaled(32900), - ), - red: ( - ScaledFloat::from_scaled(64000), - ScaledFloat::from_scaled(33000), - ), - green: ( - ScaledFloat::from_scaled(30000), - ScaledFloat::from_scaled(60000), - ), - blue: ( - ScaledFloat::from_scaled(15000), - ScaledFloat::from_scaled(6000), - ), - } -} |