#[non_exhaustive]pub enum CicpProjectionError {
NotRgb,
UnmappedPrimaries,
UnmappedTransfer,
HlgDisplayRenderingLost,
DiffuseWhiteLost,
}Expand description
Full re-export of zenpixels core types (zero module name collisions!).
Failure projecting a ColorSpace losslessly to an ITU-T H.273 Cicp tuple.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotRgb
Color space is not tristimulus RGB (e.g. Gray, XYZ, Oklab, CMYK, ICC, Untagged).
UnmappedPrimaries
Primaries have no standardized H.273 ColourPrimaries code (e.g. Adobe RGB, Custom, Unknown).
UnmappedTransfer
Transfer curve has no standardized H.273 TransferCharacteristics code (e.g. Adobe RGB, custom gamma).
HlgDisplayRenderingLost
HLG display-rendering parameters (peak, black_nits, system_gamma) cannot be represented
in CICP TC=18, which carries scene-referred syntax only.
DiffuseWhiteLost
Diffuse white luminance anchor (DiffuseWhite) cannot be represented in CICP.
Trait Implementations§
Source§impl Clone for CicpProjectionError
impl Clone for CicpProjectionError
Source§fn clone(&self) -> CicpProjectionError
fn clone(&self) -> CicpProjectionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CicpProjectionError
Source§impl Debug for CicpProjectionError
impl Debug for CicpProjectionError
Source§impl Display for CicpProjectionError
impl Display for CicpProjectionError
impl Eq for CicpProjectionError
Source§impl Error for CicpProjectionError
impl Error for CicpProjectionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for CicpProjectionError
impl PartialEq for CicpProjectionError
impl StructuralPartialEq for CicpProjectionError
Auto Trait Implementations§
impl Freeze for CicpProjectionError
impl RefUnwindSafe for CicpProjectionError
impl Send for CicpProjectionError
impl Sync for CicpProjectionError
impl Unpin for CicpProjectionError
impl UnsafeUnpin for CicpProjectionError
impl UnwindSafe for CicpProjectionError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more