Skip to content

Commit

Permalink
Revert "Add DCI-P3, DCI-P3+, and Display P3"
Browse files Browse the repository at this point in the history
This reverts commit c8eb560.
  • Loading branch information
BuildTools committed Aug 13, 2024
1 parent 3c4de86 commit fd78306
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 337 deletions.
4 changes: 0 additions & 4 deletions palette/src/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@
pub use self::adobe::AdobeRgb;
pub use self::gamma::{F2p2, Gamma};
pub use self::linear::Linear;
pub use self::p3::{DciP3, DciP3Plus, DisplayP3};
pub use self::prophoto::ProPhotoRgb;
pub use self::rec_standards::{Rec2020, Rec709};
pub use self::srgb::Srgb;

pub mod adobe;
pub mod gamma;
pub mod linear;
pub mod p3;
pub mod prophoto;
pub mod rec_standards;
pub mod srgb;

Expand Down
277 changes: 0 additions & 277 deletions palette/src/encoding/p3.rs

This file was deleted.

5 changes: 2 additions & 3 deletions palette/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,8 @@ pub use oklab::{Oklab, Oklaba};
pub use oklch::{Oklch, Oklcha};
#[doc(inline)]
pub use rgb::{
AdobeRgb, AdobeRgba, DciP3, DciP3Plus, DisplayP3, GammaSrgb, GammaSrgba, LinAdobeRgb,
LinAdobeRgba, LinDciP3, LinDciP3Plus, LinDisplayP3, LinProPhotoRgb, LinProPhotoRgba,
LinRec2020, LinSrgb, LinSrgba, ProPhotoRgb, ProPhotoRgba, Rec2020, Rec709, Srgb, Srgba,
AdobeRgb, AdobeRgba, GammaSrgb, GammaSrgba, LinAdobeRgb, LinAdobeRgba, LinRec2020, LinSrgb,
LinSrgba, Rec2020, Rec709, Srgb, Srgba,
};
#[doc(inline)]
pub use xyz::{Xyz, Xyza};
Expand Down
53 changes: 0 additions & 53 deletions palette/src/rgb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,59 +150,6 @@ pub type AdobeRgb<T = f32> = Rgb<encoding::AdobeRgb, T>;
/// create a value and use it.
pub type AdobeRgba<T = f32> = Rgba<encoding::AdobeRgb, T>;

/// Non-linear DCI-P3, an RGB format used for digital movie distribution.
///
/// This is an RGB standard with a color gamut wider than that of [`Srgb`] and a
/// white point similar to that of a film projector's xenon bulb.
///
/// See [`Rgb`] for more details on how to create a value and use it.
pub type DciP3<T = f32> = Rgb<encoding::DciP3, T>;

/// Non-linear Canon DCI-P3+, an RGB format with a very wide gamut.
///
/// This is an RGB standard with a color gamut much wider than that of [`Srgb`].
/// It uses the same white point as [`DciP3`], but uses a user-defined transfer
/// function, represented here by the generic `F`.
///
/// See [`Rgb`] for more details on how to create a value and use it.
pub type DciP3Plus<F, T = f32> = Rgb<encoding::DciP3Plus<F>, T>;

/// Non-linear Display P3, an RGB format used developed by Apple for wide-gamut
/// displays.
///
/// This is an RGB standard with the same white point and transfer function as
/// [`Srgb`], but with a wider color gamut.
///
/// See [`Rgb`] for more details on how to create a value and use it.
pub type DisplayP3<T = f32> = Rgb<encoding::DisplayP3, T>;

/// Linear DCI-P3.
///
/// You probably want [`DciP3`] if you are looking for an input or output format.
/// This is the linear version of DCI-P3, which is what you would usually convert
/// to before working with the color.
///
/// See [`Rgb`] for more details on how to create a value and use it.
pub type LinDciP3<T = f32> = Rgb<Linear<encoding::DciP3>, T>;

/// Linear DCI-P3+.
///
/// You probably want [`DciP3Plus`] if you are looking for an input or output format.
/// This is the linear version of DCI-P3+, which is what you would usually convert
/// to before working with the color.
///
/// See [`Rgb`] for more details on how to create a value and use it.
pub type LinDciP3Plus<F, T = f32> = Rgb<Linear<encoding::DciP3Plus<F>>, T>;

/// Linear Display P3.
///
/// You probably want [`DisplayP3`] if you are looking for an input or output format.
/// This is the linear version of Display P3, which is what you would usually convert
/// to before working with the color.
///
/// See [`Rgb`] for more details on how to create a value and use it.
pub type LinDisplayP3<T = f32> = Rgb<Linear<encoding::DisplayP3>, T>;

/// Linear Adobe RGB.
///
/// You probably want [`AdobeRgb`] if you are looking for an input or output format.
Expand Down

0 comments on commit fd78306

Please sign in to comment.