Debian Codegraph @

src/luma.rs

raw symbols SCIP
1 //! Types for luma and luminance (grayscale) values.
2
3 pub mod channelsrust-analyzer cargo palette 0.7.6 luma/channels/;
4 #[allow(clippy::module_inception)]
5 mod lumarust-analyzer cargo palette 0.7.6 luma/luma/;
6
7 use craterust-analyzer cargo palette 0.7.6 crate/::encodingrust-analyzer cargo palette 0.7.6 encoding/::{Gammarust-analyzer cargo palette 0.7.6 encoding/gamma/Gamma#, Linearrust-analyzer cargo palette 0.7.6 encoding/linear/Linear#, Srgbrust-analyzer cargo palette 0.7.6 encoding/srgb/Srgb#};
8 use craterust-analyzer cargo palette 0.7.6 crate/::white_pointrust-analyzer cargo palette 0.7.6 white_point/::D65rust-analyzer cargo palette 0.7.6 white_point/D65#;
9
10 pub use selfrust-analyzer cargo palette 0.7.6 luma/::lumarust-analyzer cargo palette 0.7.6 luma/luma/::{Iterrust-analyzer cargo palette 0.7.6 luma/luma/Iter#, Lumarust-analyzer cargo palette 0.7.6 luma/luma/Luma#, Lumaarust-analyzer cargo palette 0.7.6 luma/luma/Lumaa#};
11
12 /// sRGB encoded luminance.
13 pub type SrgbLumarust-analyzer cargo palette 0.7.6 luma/SrgbLuma#<T = f32> = Lumarust-analyzer cargo palette 0.7.6 luma/luma/Luma#<Srgbrust-analyzer cargo palette 0.7.6 encoding/srgb/Srgb#, T>;
14 /// sRGB encoded luminance with an alpha component.
15 pub type SrgbLumaarust-analyzer cargo palette 0.7.6 luma/SrgbLumaa#<T = f32> = Lumaarust-analyzer cargo palette 0.7.6 luma/luma/Lumaa#<Srgbrust-analyzer cargo palette 0.7.6 encoding/srgb/Srgb#, T>;
16
17 /// Linear luminance.
18 #[doc(alias = "linear")]
19 pub type LinLumarust-analyzer cargo palette 0.7.6 luma/LinLuma#<Wp = D65rust-analyzer cargo palette 0.7.6 white_point/D65#, T = f32> = Lumarust-analyzer cargo palette 0.7.6 luma/luma/Luma#<Linearrust-analyzer cargo palette 0.7.6 encoding/linear/Linear#<Wp>, T>;
20 /// Linear luminance with an alpha component.
21 #[doc(alias = "linear")]
22 pub type LinLumaarust-analyzer cargo palette 0.7.6 luma/LinLumaa#<Wp = D65rust-analyzer cargo palette 0.7.6 white_point/D65#, T = f32> = Lumaarust-analyzer cargo palette 0.7.6 luma/luma/Lumaa#<Linearrust-analyzer cargo palette 0.7.6 encoding/linear/Linear#<Wp>, T>;
23
24 /// Gamma 2.2 encoded luminance.
25 pub type GammaLumarust-analyzer cargo palette 0.7.6 luma/GammaLuma#<T = f32> = Lumarust-analyzer cargo palette 0.7.6 luma/luma/Luma#<Gammarust-analyzer cargo palette 0.7.6 encoding/gamma/Gamma#<D65rust-analyzer cargo palette 0.7.6 white_point/D65#>, T>;
26 /// Gamma 2.2 encoded luminance with an alpha component.
27 pub type GammaLumaarust-analyzer cargo palette 0.7.6 luma/GammaLumaa#<T = f32> = Lumaarust-analyzer cargo palette 0.7.6 luma/luma/Lumaa#<Gammarust-analyzer cargo palette 0.7.6 encoding/gamma/Gamma#<D65rust-analyzer cargo palette 0.7.6 white_point/D65#>, T>;
28
29 /// A white point and a transfer function.
30 pub trait LumaStandardrust-analyzer cargo palette 0.7.6 luma/LumaStandard# {
31 /// The white point of the color space.
32 type WhitePointrust-analyzer cargo palette 0.7.6 luma/LumaStandard#WhitePoint#;
33
34 /// The transfer function for the luminance component.
35 type TransferFnrust-analyzer cargo palette 0.7.6 luma/LumaStandard#TransferFn#;
36 }
37
38 impl<Wp, Tf> LumaStandardrust-analyzer cargo palette 0.7.6 luma/LumaStandard# for (Wp, Tf) {
39 type WhitePointrust-analyzer cargo palette 0.7.6 luma/impl#[`(Wp, Tf)`][LumaStandard]WhitePoint# = Wp;
40 type TransferFnrust-analyzer cargo palette 0.7.6 luma/impl#[`(Wp, Tf)`][LumaStandard]TransferFn# = Tf;
41 }
42
43 /// A packed representation of Luma+Alpha in LA order.
44 pub type PackedLumaarust-analyzer cargo palette 0.7.6 luma/PackedLumaa#<P = u16> = craterust-analyzer cargo palette 0.7.6 crate/::castrust-analyzer cargo palette 0.7.6 cast/::Packedrust-analyzer cargo palette 0.7.6 cast/packed/Packed#<channelsrust-analyzer cargo palette 0.7.6 luma/channels/::Larust-analyzer cargo palette 0.7.6 luma/channels/La#, P>;
45
46 /// A packed representation of Luma+Alpha in AL order.
47 pub type PackedAlumarust-analyzer cargo palette 0.7.6 luma/PackedAluma#<P = u16> = craterust-analyzer cargo palette 0.7.6 crate/::castrust-analyzer cargo palette 0.7.6 cast/::Packedrust-analyzer cargo palette 0.7.6 cast/packed/Packed#<channelsrust-analyzer cargo palette 0.7.6 luma/channels/::Alrust-analyzer cargo palette 0.7.6 luma/channels/Al#, P>;